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.
More on Alertmanager & Alerting
What does Alertmanager do that Prometheus does not?BeginnerWhat do `group_by`, `group_wait`, `group_interval` and `repeat_interval` control?IntermediateWhat is inhibition? Give an example.IntermediateWhat are silences and how do you create them?BeginnerWhat are mute time intervals and active time intervals?IntermediateHow does Alertmanager clustering work?Advanced