fix(monitoring): add release label so node-health rules actually load #111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/node-health-rule-selector"
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?
Latent bug found while adding DiskPressure alerts (#109): homelab-node-health lacked the release=kube-prometheus-stack label the Prometheus ruleSelector requires, so NONE of its alerts (NodeDown included) have ever loaded. This label fixes it.
The homelab-node-health PrometheusRule (NodeDown, NodeExporterAbsent, and the new DiskPressure/root-fs alerts) was never loaded by Prometheus: its ruleSelector matches {release: kube-prometheus-stack} and this rule lacked that label. It has been dead since creation ~22d ago, so no node-health alert has ever fired. Adding the label makes the operator select it. Verified: the label is the only difference from the working stock node-exporter PrometheusRule.