Explain the Alertmanager routing tree.

IntermediateConceptAlertmanager & Alerting
Answer

Every alert enters the root route and walks down child routes; the first matching child takes it (unless continue: true), and it goes to that route's receiver. Child routes inherit settings from parents.

route:
  receiver: default-slack
  group_by: [alertname, cluster]
  routes:
    - matchers: [severity="page"]
      receiver: pagerduty
      routes:
        - matchers: [team="payments"]
          receiver: payments-pagerduty
    - matchers: [severity="ticket"]
      receiver: jira-webhook

Test with amtool config routes test --config.file=alertmanager.yml severity=page team=payments.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alertmanager & Alerting