Post

Grafana alerting expression and provisioning version restored

Grafana alerting expression and provisioning version restored

The Grafana chart was corrected to use a count-based alert for node failure detection, the provisioning version was bumped, and the offline CI check was updated to match the new expression shape. These changes close a drift between the catalog’s described rules and the actual runtime evaluation.

Alerting expression now counts missing nodes

The values.yaml alerting rule changed from sum(up == 0) to count(up == 0), which counts rather than sums the nodes where Prometheus reports up zero. The node‑count sub‑expression was wrapped in parentheses and given a or vector(0) fallback so the query does not error when the node set is empty. The Ready‑condition check was also adjusted to use bool 0 instead of plain 0, making the comparison explicit in the query language.

Provisioning version bumped to 25

The homelab.rst.io/alerting-provisioning-version entry was updated from 24 to 25. This single‑digit bump aligns the chart with the latest feature flags and ensures downstream dashboards reflect the new expression shape without a separate migration step.

Offline CI check adds a boundary guard

scripts/ci/offline-checks.sh gained one line after the endgroup marker near line 1600. The commit title frames this as part of the Grafana fix, and the line validates that the alerting expression matches the new count‑based shape. As with any added CI line, the check has not yet been executed against a runtime rotation scenario, so its pass/fail status remains unverified.

This post is licensed under CC BY 4.0 by the author.