What is alert routing, and how do you send different alerts to different teams? [Intermediate]
Answer
Alert routing maps alerts to receivers based on labels. I route by team, service, severity, environment, and sometimes region so that the right owner receives the alert through the right channel.
Technical explanation
Routing requires consistent alert labels; missing team or service labels usually cause paging chaos.
Severity should control channel: page, ticket, chat, or email.
Routes should have a safe default receiver for unmatched alerts, but the goal is to eliminate unmatched production alerts.
Hands-on example
Alertmanager sketch:
route:
receiver: platform-default
routes:
- matchers: [team='payments', severity='page']
receiver: payments-pager
- matchers: [team='payments', severity='ticket']
receiver: payments-jira
- matchers: [environment='dev']
receiver: dev-slackPreparing for an interview?
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- How does Prometheus handle high cardinality, and why is it a problem? [Intermediate]
- What is an alerting rule, and how does it differ from a recording rule? [Basic]
- How does Prometheus storage (TSDB) work, and what is the retention model? [Intermediate]
- What is a recording rule, and when would you use one? [Basic]
- What is the difference between Thanos and Cortex/Mimir at a high level? [Intermediate]
- How do you compute a 95th percentile latency from a histogram in PromQL (histogram_quantile)? [Basic]
- What is the difference between rate() and irate()? [Basic]
- How does Prometheus integrate with Kubernetes service discovery? [Intermediate]