Interview Prep/Monitoring & Observability/Alerting and On-Call Design

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 →

  1. Enforce team and severity labels on every alert rule (CI check with promtool plus a linter).
  2. 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
  1. 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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and On-Call Design