Payments and platform teams share one Prometheus and one Alertmanager. How do you route alerts to the right team and severity?
IntermediateScenarioAlerting and On-Call Design
Answer
Situation read → Routing depends on consistent labels. Without a team label on every rule, routing becomes guesswork.
What I'd do →
- Enforce
teamandseveritylabels on every alert rule (CI check withpromtoolplus a linter). - Build the route tree on those labels.
route:
receiver: default-slack
group_by: [alertname, cluster, service]
routes:
- matchers: [team="payments", severity="page"]
receiver: payments-pagerduty
- matchers: [team="payments"]
receiver: payments-slack
- matchers: [team="platform", severity="page"]
receiver: platform-pagerduty
- Keep a catch-all receiver so unlabeled alerts are visible rather than lost.
Why → Label-based routing scales better than one route per alert name.
Interview tip → Mention matchers (the newer syntax) instead of the deprecated match/match_re.
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.AdvancedA database migration is scheduled for Saturday 02:00–04:00. How do you avoid pager noise without hiding real problems?Beginner