Alerting
Cheat sheet · https://pcornel.dk/topic.php?topic=6107
Answer
Alerting turns telemetry into notifications when conditions need human action, through rules, routing, grouping and on-call channels.
Remember
Alert on symptoms that need action now; send causes to dashboards or tickets. Every alert needs an owner and a runbook. Use for: to avoid flapping.
First checks
curl -s localhost:9090/api/v1/alerts— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
rule evaluates → pending → firing → Alertmanager routes → notification → runbook
Where it usually breaks
Failures include noisy static thresholds, alerts on missing telemetry without distinguishing collector outage, label churn creating duplicate alerts, routing loops, broad silences and alerts that name a symptom but give no owning service or verification link.
Alerting verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Thresholds | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Rate-of-change and absence alerts / Deduplication | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Grouping | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Inhibition/silencing | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6107