An alert only a human can clear is already being ignored

This is my homelab: single-node Kubernetes clusters on Talos, one Prometheus and Alertmanager on the hub cluster, one operator. Nothing here describes an employer's systems. The incident and its dates come from my notes and commits; the alert rule, the routing and the command output quoted below were read from the running hub on 30 November 2026.
An alert that fires means something is wrong now. The whole practice rests on that assumption, and a backup job on the hub broke it.
At 03:30 on 14 June 2026 the job ran, saved its snapshot, and then failed at the prune: a
restore-drill pod killed earlier had left a lock in the repository, the story told in
A backup you haven't restored is a rumour. KubeJobFailed fired and
named restic-backup-29689530. The fix, one restic unlock before the backup, was committed by
late morning. That afternoon the alert was still up.
Nothing about the backup was wrong any more, and the alert was still correct, because the alert had never been listening for the backup. It was a fire bell wired to the ash, and the ash does not cool.
Read what the rule counts, and what it says clears it
The stock rule ships with kube-prometheus-stack, and its own text says how it goes quiet:
kubectl --context admin@cave -n monitoring get prometheusrule -o yaml | grep -A10 'alert: KubeJobFailed'
# the description is the reset procedure: "Removing failed job after investigation should clear this alert"
The expression is kube_job_failed > 0 held for fifteen minutes, and kube_job_failed is one
series per Job object whose Failed condition is set. Objects outlive runs. The CronJob keeps
failed Jobs as history, three of them in that CronJob's manifest (failedJobsHistoryLimit: 3), and the
history limits count successes and failures separately, so a run that succeeds never retires one
that failed. Why finished objects stay in the API at all, and who owns their removal, is the
subject of A metric can be accurate and still be history.
Even the name records the moment. A CronJob names each Job after its scheduled time in minutes since the epoch, and 29689530 minutes is 03:30 on 14 June, Sydney time. That record was never going to change. This finds every one of them still held in the API:
kubectl --context admin@cave get jobs -A -o json | jq -r '
.items[] | . as $j | .status.conditions[]?
| select(.type == "Failed" and .status == "True")
| [$j.metadata.namespace, $j.metadata.name, .lastTransitionTime] | @tsv'
# one row per failed Job the rule can still see; the time is the failure, and it never moves
It keys on the Failed condition and not on .status.failed, which counts failed pods: a Job
that retries once and then succeeds carries a failed pod and is not a failed Job. On the hub, on
30 November, it printed nothing.
Ask who silences the bell
My notes for 14 June say I triggered a clean run by hand and cleared the alert. They do not say how it cleared, and the rule is plain that the clean run alone changes nothing it counts. What removes the series is a deletion: the failed Job, or the CronJob that owns it. That CronJob was retired later the same day, along with the USB disk it wrote to. Either way, a person did it.
In June the alert reached nothing but the Alertmanager page; the phone receiver was wired later
that month, and the same shape came back twice. On 11 July a run of the NAS backup failed, and its
Job, restic-backup-nas-29728470, held KubeJobFailed up for three weeks while the backups
themselves stayed healthy. It cleared on 1 August, when I deleted the Job. In late September a
cert-manager upgrade hook failed, its delete policy kept the failed Job, and it paged my phone for
five days.
Today every alert outside a short mute list goes to my phone through ntfy, with
repeat_interval: 4h and send_resolved: true. The stock rule is still loaded on the hub
unchanged. I have not fixed that.
The interruption is the small cost. A bell that rings every four hours over a fire that is out teaches one lesson, and the lesson does not stay with the rule that taught it. It generalises to the channel. The next real alert arrives at someone well practised in dismissing that sound, and an alert nobody reads is worse than none, because a gap at least leaves you knowing you are blind.
Wire the bell to the heat
The failure count answers a question nobody needs answered at three in the morning. The useful one is narrower: did the thing that was supposed to happen, happen recently.
kubectl --context admin@cave -n backup get cronjob restic-backup-nas \
-o jsonpath='{.status.lastSuccessfulTime}{"\n"}'
# 2026-11-29T17:30:27Z on 30 November: 04:30 local, so last night's backup ran and finished
The CronJob controller writes that field on every successful run. Nobody tidies it, and no record of an old failure can hold it back. The lab's backup alerts key on its age, and that rule, with its own blind spots for a job that has never succeeded or has been deleted, is written out in A metric can be accurate and still be history. A freshness rule goes green the moment a run succeeds. A failure count goes green when somebody sweeps.
The underlying fault was worth fixing too, and it was: the nightly job runs restic unlock before
it backs up, so a dead drill pod can no longer fail the prune that started this.
Every alert needs a way home
Even the human step is configuration. Set ttlSecondsAfterFinished on a CronJob's jobTemplate
and the controller deletes each finished Job, failed ones included, once that many seconds have
passed, and the series goes with it. The cost is the evidence: the Job's pods and their logs go too,
so the TTL has to outlast the rule's fifteen minutes and the time you need to read why the run
failed. The lab's backup CronJobs do not set it.
Before a rule ships, write down the path from red back to green and check who walks it. If the system walks it by recovering, the rule is measuring the system. If a person walks it with an action that is not also the fix, deleting a record or acknowledging a ghost, the rule is measuring housekeeping, and every repeat spends trust the channel will need later.
Some alerts latch on purpose, and a page that must be acknowledged should stay up until somebody does. The fault here is more specific: a failed run is an event, and the rule models it as a standing state, then sends that state again every four hours. An event that must be seen once is a notification. Send it once, and leave the standing question to the rule that reads the runs.
Wire the bell to the heat, not to the ash.
From the lab: the nightly backup has cleared stale locks before every run since 14 June 2026; the stock failed-Job rule still runs unchanged on the hub.

