fix(monitoring): add the release label PrometheusRules need to be evaluated #174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/prometheusrule-release-label"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Prometheus CR selects on
ruleSelector.matchLabels.release=kube-prometheus-stack. A PrometheusRule without that label applies cleanly, appears inkubectl get prometheusrule, and is then silently ignored forever. There is no error anywhere to notice.Two rulesets were in that state:
homelab-scheduled-jobs- added in #173 minutes ago. Caught because the alerts it should have fired for 11 failing jobs never appeared.homelab-app-health- inert for its entire existence.HomelabAppDown,HomelabAppDegraded,HomelabAppRestartSpikeand six recording rules. Nothing has been watching for "a deployment has had zero ready capacity for 10 minutes"; the alert exists in git and does not exist in Prometheus.Verification
Against the live
/api/v1/rulesendpoint - loaded groups werehomelab-node-health.alertsandlitellm-cost-control.alertsand neither of the above. Those two carry the label, which is why they work. All four rule files in the repo now carry it.Same disease as #173: a check that fails by doing nothing, and looks healthy from every angle except the one nobody checks.