You are asked to design alerting for a brand-new HTTP service from scratch. What do you alert on?
BeginnerScenarioAlerting and On-Call Design
Answer
Situation read → No history, so start from the golden signals and keep the first set small.
What I'd do →
- Page on error ratio (5xx / total) and latency (p99 over threshold) at the load balancer or service level.
- Page on availability from an external blackbox probe.
- Add saturation warnings (queue depth, connection pool, disk) as tickets, not pages.
- Attach
severity,team,runbook_urland a clear summary to each rule. - Tune after two weeks of real data.
- alert: HighErrorRatio
expr: sum(rate(http_requests_total{job="api",code=~"5.."}[5m])) / sum(rate(http_requests_total{job="api"}[5m])) > 0.05
for: 10m
labels: {severity: page, team: payments}
annotations: {summary: "API 5xx ratio above 5%", runbook_url: "https://runbooks.example.com/api-5xx"}
Why → Golden signals map to what users feel. Infrastructure metrics are for diagnosis.
Interview tip → Name the four golden signals (latency, traffic, errors, saturation) and say which of them page.
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?IntermediateA "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?IntermediateA database migration is scheduled for Saturday 02:00–04:00. How do you avoid pager noise without hiding real problems?Beginner