Design burn-rate alerts for a 99.9% availability SLO over 30 days.
AdvancedScenarioAlerting and On-Call Design
Answer
Situation read → Error budget is 0.1%. A static error threshold either pages too late or too often. Use multi-window, multi-burn-rate alerts as in the Google SRE Workbook.
What I'd do →
- Define the SLI as a recording rule per window:
sli:http_errors:ratio_rate5m,...1h,...6h,...3d. - Page when burn rate is 14.4x over 1h AND 5m (2% of budget in 1 hour).
- Page when 6x over 6h AND 30m (5% of budget in 6 hours).
- Ticket when 1x over 3d AND 6h.
- alert: ErrorBudgetFastBurn
expr: sli:http_errors:ratio_rate1h > (14.4 * 0.001) and sli:http_errors:ratio_rate5m > (14.4 * 0.001)
labels: {severity: page}
Why → The long window proves the burn is significant, the short window proves it is still happening so the alert resets quickly.
Interview tip → Know the 14.4 / 6 / 1 numbers and what fraction of budget each represents.
More on Alerting and On-Call Design
Your on-call engineers receive 300 alerts a night and have started ignoring the pager. How do you fix it?IntermediateYou are asked to design alerting for a brand-new HTTP service from scratch. What do you alert on?BeginnerA "CPU above 90%" alert wakes someone at 3 a.m., but users saw no impact. What do you change?BeginnerA new hire asks: "Should we page on symptoms or causes?" How do you answer with an example?BeginnerPayments and platform teams share one Prometheus and one Alertmanager. How do you route alerts to the right team and severity?IntermediateA database migration is scheduled for Saturday 02:00–04:00. How do you avoid pager noise without hiding real problems?Beginner