fix(alerting): correct the inert starter set and add an OOM rule #147
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/alert-rules"
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?
Investigating what it would take to alert on last night's incidents turned up two errors in this directory that would have broken flip-on, plus one rule worth writing now.
CORRECTIONS (both verified against the live cluster):
olly. Every PrometheusRule object here namedolly-platform, which does not exist — 12 references across the README and rules.yaml.Credit where due: the rest of the README was already honest. Its "what is MISSING" table correctly said no evaluator, no Alertmanager, and no receiver exist. That is still true and this change does not alter it.
NEW RULE: a workload-health group alerting on containers killed for memory use. Three Binjovi replicas OOM-crash-looped for over an hour tonight with nothing observing it. kube_pod_container_status_last_terminated_reason is present in the store and the expression was replayed across the incident window. The restart term keeps the alert quiet after recovery, since the termination reason otherwise stays set for the life of the container.
Deliberately NOT a CrashLoopBackOff rule: replaying kube_pod_container_status_waiting_reason{reason="CrashLoopBackOff"} over the same window returns ZERO series, because the 30 second scrape never observed the waiting state. That rule would have read as coverage and caught nothing.
TWO SIGNALS DELIBERATELY LEFT UNWRITTEN, and the README says why:
The set remains inert and no contact point is configured; that decision is still open and is recorded as open rather than quietly defaulted.
https://claude.ai/code/session_01LeVatedQ4sCA1u6LHjo7B5
f328fd8372fb74d162d0fb74d162d0c893811974