Lesson 4 of 9 · 25m
Alerts That Wake Humans for Reasons
Design symptom-based alerts with clear ownership, severity, runbook context, and deduplication so pages demand action instead of training people to ignore them.
Alert fatigue is not caused by too much courage or too little coffee. It is caused by pages that do not represent user harm, cannot be acted on, or resolve themselves before a human understands them. Every page is an interruption with interest: it costs sleep now and trust later. If an alert cannot change what a responder does, it should not wake one.
Page symptoms, not internal trivia
Users do not care that CPU was high. They care that login is slow, payments fail, messages do not send, or data is stale. Internal metrics are excellent diagnostics but usually poor paging conditions.
good page candidates:
- elevated 5xx ratio for checkout for 10 minutes
- p95 login latency above objective for 15 minutes
- queue oldest message age exceeding processing deadline
- no successful backup completion in 26 hours
poor page candidates:
- one CPU spike for two minutes
- a single exception type with no user-impact linkage
- disk usage crossed 60%
- a worker restarted onceResource alerts can still matter when they predict imminent harm, but they need evidence and a time horizon. "Disk will fill in 20 minutes" is actionable. "Disk is 70% full" is often routine.
Write the alert as an operational contract
alert: CheckoutErrorRatioHigh
expr: |
sum(rate(http_requests_total{service="checkout",status=~"5.."}[10m]))
/
sum(rate(http_requests_total{service="checkout"}[10m])) > 0.02
for: 10m
labels:
severity: page
team: commerce
service: checkout
annotations:
summary: "Checkout is returning an elevated rate of server errors"
dashboard: "https://grafana.internal/d/checkout-overview"
runbook: "https://runbooks.internal/checkout-errors"The annotation is part of the control. If a responder cannot tell what changed, where to look, and what mitigation is safe, the alert is unfinished.
Deduplicate by incident identity
One database failure can produce pages from the API, workers, queues, cron jobs, and synthetic probes. Group alerts by service or incident cause where possible. Prometheus Alertmanager grouping is not cosmetic; it preserves responder attention:
route:
receiver: commerce-oncall
group_by: ["service", "env"]
group_wait: 30s
group_interval: 5m
repeat_interval: 4hDo not use grouping to hide independent failures. The goal is one coherent incident notification, not silence.
Every alert needs a maintenance loop
Track firing count, acknowledgment time, resolution time, action taken, and whether the alert identified real user impact. Delete or downgrade alerts that repeatedly require no action. Tune thresholds with incident evidence, not vibes. A quarterly review is cheaper than a burned-out on-call rotation.
Field notes
- If a human is expected to "just watch" an alert, make it a dashboard or ticket instead of a page.
- Include the currently affected scope in the alert: percentage of requests, region, tenant class, or dependency.
- Do not page on raw counts when traffic volume varies wildly; ratios and rates adapt better.
- Synthetic checks are valuable but can false-page from probe network failure. Verify reachability paths before declaring application downtime.
- Silences expire. Permanent silence is a deleted alert wearing a fake mustache.
Was this lesson helpful?