fix(monitoring): drop HomelabCronJobFailing, a duplicate of KubeJobFailed #175
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/drop-duplicate-job-alert"
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?
Self-correction on #173. The bundled kube-prometheus-stack rule
KubeJobFailedalready alerts onkube_job_failed > 0with the same 15m window and routes to the same ntfy topic - shipping mine would have paged twice for every failed job.Worth recording why the duplicate looked necessary:
KubeJobFailedhas been firing this whole time, continuously, forflux-audit- because that job reported findings by exiting 1. A nightly alert for something that is working is how alert fatigue starts, and it is the actual reason nobody acted on flux-audit for months. The fix belongs at the source (#173, the exit-code contract), not in a new rule.HomelabCronJobNotSchedulingstays - nothing bundled covers a CronJob that silently stops being scheduled, which leaves no failed job to alert on at all.Verified against the live rules API:
KubeJobFailedexprkube_job_failed{job="kube-state-metrics"} > 0,for: 900- functionally identical to what I had added.