How do you alert when an entire region fails, but not when a single pod restarts?
IntermediateScenarioAlerting and On-Call Design
Answer
Situation read → You want to aggregate to the right level. Per-pod alerts are noise, aggregate alerts catch real loss.
What I'd do →
- Alert on the aggregate success ratio per region:
sum by (region) (rate(http_requests_total{code!~"5.."}[5m])) / sum by (region) (rate(http_requests_total[5m])) < 0.95. - Add a traffic-drop alert comparing the region to its own history, since a dead region may stop emitting errors altogether.
- Use an external blackbox probe per region, so you do not depend on the region's own monitoring.
- Pod restarts become a dashboard panel or a ticket with a rate threshold.
Why → A region outage can look like "no data", so aggregate and external views are both required.
Interview tip → Mention that probes must run from outside the failure domain.
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?BeginnerDesign burn-rate alerts for a 99.9% availability SLO over 30 days.AdvancedPayments and platform teams share one Prometheus and one Alertmanager. How do you route alerts to the right team and severity?Intermediate