Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions stacks/lab/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions stacks/lab/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down