From 771493b4034218bfe567691c134640de5be643c5 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Wed, 25 Nov 2026 02:52:14 +0000 Subject: [PATCH] docs(lab): stop claiming the loki scrape job watches readiness compose.yaml and prometheus.yaml both said the loki job observes readiness. It reads /metrics, which answers while /ready returns 503, as the audit of alexander on 2026-11-13 found for four days. Both comments now name what is watched: InstanceDown and LokiIngestionStalled. Co-Authored-By: Claude Opus 5.5 --- docs/changelog.md | 8 ++++++++ stacks/lab/compose.yaml | 9 +++++++-- stacks/lab/prometheus/prometheus.yaml | 8 +++++--- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 9a00eea89..49c2d4d07 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -74,6 +74,14 @@ docstring gives: it is a record, not a claim about now. scrape, `make snmp-verify`, Home Assistant's api-ssl session, `routeros` lines in Loki and a second `make backup-switch` all passed. +- **The lab no longer claims to watch Loki's readiness.** `stacks/lab/compose.yaml` + and `prometheus.yaml` both said the `loki` scrape job observes readiness. It + reads `/metrics`, which answers while `/ready` returns 503. The audit of + `alexander` on 2026-11-13 found `/ready` at 503 for four days with ingest + running, and a re-check on 2026-11-25 saw one 503 and then 45 of 45 at 200. + Both comments now name what is watched: the process, through + `InstanceDown`, and ingest, through `LokiIngestionStalled`. + ## 2026-11-24 - **An audit of `Saruman`, read-only, found its management plane open to a diff --git a/stacks/lab/compose.yaml b/stacks/lab/compose.yaml index 599c0eadd..2cd07f26f 100644 --- a/stacks/lab/compose.yaml +++ b/stacks/lab/compose.yaml @@ -183,8 +183,13 @@ services: # --------------------------------------------------------------------------- # Log store. No healthcheck, for the reason written out against the `loki` # service in stacks/observability/compose.yaml: the image is distroless and - # holds no shell, wget or curl to probe with. Readiness is observed by the - # `loki` scrape job in prometheus.yaml instead. + # holds no shell, wget or curl to probe with. Nothing watches /ready either: + # the `loki` scrape job reads /metrics, which answers whatever /ready says. + # The audit of alexander on 2026-11-13 found /ready returning 503 for four + # days while ingest ran normally, and it flapped again on 2026-11-25. What + # is watched is the process (InstanceDown on `up{job="loki"}`) and ingest + # (LokiIngestionStalled). Check readiness by hand with + # `curl -s localhost:3100/ready` on this host. # --------------------------------------------------------------------------- loki: <<: *service-defaults diff --git a/stacks/lab/prometheus/prometheus.yaml b/stacks/lab/prometheus/prometheus.yaml index 9f9dbd8cb..fde39226b 100644 --- a/stacks/lab/prometheus/prometheus.yaml +++ b/stacks/lab/prometheus/prometheus.yaml @@ -40,9 +40,11 @@ scrape_configs: static_configs: - targets: ["localhost:9090"] - # This is also loki's readiness check. The image is distroless and can carry - # no compose healthcheck, so `up{job="loki"}` is the only thing that observes - # it — the same arrangement, and the same reasoning, as the estate's. + # Not a readiness check. This reads + # /metrics, which answers while /ready returns 503, so `up{job="loki"}` says + # the process is serving and nothing more. The image is distroless and can + # carry no compose healthcheck, so the process (InstanceDown) and ingest + # (LokiIngestionStalled) are what is watched; compose.yaml has the detail. - job_name: loki static_configs: - targets: ["loki:3100"]