diff --git a/docs/changelog.md b/docs/changelog.md index cd862924..00c32bbe 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -17,6 +17,19 @@ roadmap as it read that day, and the *Done* entries keep the shape they had there. `check_docs.py` does not check this file, for the reason its module docstring gives: it is a record, not a claim about now. +## 2026-11-22 + +- **The office wall stops counting `info` alerts.** Its verdict took every + firing alert but Watchdog, so the two `HostBatteryTempNotMeasured` alerts + (on `oracle` and `prometheus`), which are `info` by design and resolve only + when a pack with a working thermistor is fitted, held it at "2 alerts + firing" in amber, and "All quiet" could not show. The alert is right; the + wall was wrong to treat `info` as something to act on. `wall.js` now counts + only `critical` and `warning`, as Alertmanager delivers and the Glance + *Estate* panel already counts, and shows any `info` alerts as one muted + line under "All quiet". Watchdog, the broken states and Caddy's + `/api/q/alerts` are unchanged. + ## 2026-11-21 - **#404 closed: `trinity`'s last gate, ADR-0023's *Independent* test, diff --git a/stacks/sensitive/README.md b/stacks/sensitive/README.md index db3de967..e6a0824c 100644 --- a/stacks/sensitive/README.md +++ b/stacks/sensitive/README.md @@ -777,6 +777,13 @@ container of its own: Caddy serves `wall/` as static files. - **It loads nothing from anywhere else.** The site's Content-Security-Policy allows only itself. There are no web fonts; the stacks fall back to the Pi's DejaVu. +- **Only what notifies counts.** The verdict and the alert list take + `critical` and `warning` alerts only, as those are what Alertmanager + delivers, the same rule the Glance *Estate* panel keeps. An `info` alert is + recorded, never notified, and some fire for good + (`HostBatteryTempNotMeasured`), so they leave "All quiet" standing and are + counted on one muted line under it ("2 info recorded"). `/api/q/alerts` + still returns every firing alert, so the page sees Watchdog. - **It says when it does not know.** No answer from Prometheus, or a Watchdog that is not firing, is shown in red as exactly that, never as "All quiet". Under a real "All quiet", two lines say how the lab stands: @@ -784,7 +791,8 @@ container of its own: Caddy serves `wall/` as static files. overdue job against its own allowance (`/api/q/backups`), and the security updates and reboots waiting (`/api/q/patches`). Overdue, failed, never succeeded or waiting is amber. What no host reports is left out rather - than shown as none, and with neither line, "Nothing is firing." stays. A host that stops reporting reads *no data*. The status bar + than shown as none, and with neither line, "Nothing is firing." stays + ("Nothing that notifies is firing." while an info alert is). A host that stops reporting reads *no data*. The status bar gives each source's age and turns amber at two and a half minutes. - **The household half comes from Home Assistant, the same way.** Each `/api/ha/NAME` rewrites to `GET /api/states/`. The rewrite ends diff --git a/stacks/sensitive/wall/wall.js b/stacks/sensitive/wall/wall.js index 9d463f75..7b6ad1c1 100644 --- a/stacks/sensitive/wall/wall.js +++ b/stacks/sensitive/wall/wall.js @@ -195,8 +195,14 @@ return; } - const faults = all - .filter((a) => a.metric.alertname !== "Watchdog") + // Only warning and critical count, as those are what Alertmanager + // delivers. An info rule is recorded, never notified, and some fire for + // good (HostBatteryTempNotMeasured), so they would hold the wall amber + // forever. They are counted on one muted line under "All quiet". + const others = all.filter((a) => a.metric.alertname !== "Watchdog"); + const info = others.filter((a) => a.metric.severity === "info").length; + const faults = others + .filter((a) => a.metric.severity !== "info") .sort((a, b) => (SEVERITY_RANK[a.metric.severity] ?? 3) - (SEVERITY_RANK[b.metric.severity] ?? 3)); if (faults.length === 0) { @@ -207,7 +213,8 @@ // patches stand. Without an answer for them, it says what it always did. const lab = labLines(); if (lab.length) for (const line of lab) q.append(line); - else q.append(el("small", null, "Nothing is firing.")); + else q.append(el("small", null, info ? "Nothing that notifies is firing." : "Nothing is firing.")); + if (info) q.append(el("small", "lab", `${info} info recorded`)); body.append(q); return; }