Video in progress
The on-call team gets dozens of alerts a day and most of them get ignored. How do you rebuild the alerts?
I move from cause-based alerts (CPU, memory, individual errors) to symptom-based ones: an SLO violation that affects users. For the SLO I set two-window burn rate alerts, and the other signals go to tickets or a dashboard.
📖 Answer
Alert fatigue is dangerous: people learn to close alerts without looking, and a real incident gets passed over the same way.
The first step is an audit. I look at the last month of alerts and ask about each one: "when this fired, did anybody do anything?" Alerts that nobody acted on are deleted or lowered in severity.
The second is moving to symptoms. Instead of "CPU 85%", "checkout's successful requests are dropping below the SLO". CPU can be high and the user notices nothing. And the opposite: CPU can be low and everything has stopped because of a deadlock.
The third is burn rate. A simple threshold on the error share is either too noisy or too slow. Burn rate measures "how fast the error budget is burning". With a 99.9% SLO, at a burn rate of 14.4, 2 percent of the 30-day budget is gone in 1 hour.
- alert: CheckoutErrorBudgetFastBurn
expr: |
(job:slo_errors_ratio:rate1h{job="checkout"} > (14.4 * 0.001))
and
(job:slo_errors_ratio:rate5m{job="checkout"} > (14.4 * 0.001))
labels:
severity: page
The long window (1h) confirms it's a real problem, and the short window (5m) confirms it's still going on, so the alert clears quickly after the fix. For slow burn (6h/30m, a smaller factor) you set a separate alert, and it doesn't wake anyone at night, it opens a ticket.
The fourth is hygiene: every page alert has a runbook link, and in Alertmanager alerts from one incident are grouped (group_by) and inhibit each other (for example, when a cluster goes down, each service shouldn't scream separately).
Measure the result: how many pages came in per week and how many of them required action.
Sign up to mark studied questions and save your progress.