Interview Prep/Monitoring & Observability/Alerting and Alertmanager

Alerts route to the default receiver even though a team route exists

IntermediateTroubleshootingAlerting and Alertmanager
Answer

Likely causes → Route order: an earlier sibling route matches first and has continue: false (default), or the team label is missing on the alert.

Diagnose →

amtool config routes show --config.file=alertmanager.yml
amtool config routes test --config.file=alertmanager.yml --verify.receivers=payments-slack team=payments severity=critical

Fix → Reorder routes (specific first), add missing team labels to rules, use continue: true where an alert should reach multiple receivers.

Prevent → Keep route tests in CI.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager