Interview Prep/SRE & Reliability/Burn-Rate Alerts & Alertmanager

`amtool config routes test severity=page team=payments` returns `default-receiver` instead of `payments-pager`.

IntermediateTroubleshootingBurn-Rate Alerts & Alertmanager
Answer

Likely causes → An earlier sibling route matches first without continue: true, or the payments route sits under a parent route whose matchers do not match these labels, or matchers use the wrong label name.

Diagnose →

amtool config routes show --config.file=alertmanager.yaml
amtool config routes test --config.file=alertmanager.yaml --verify.receivers=payments-pager severity=page team=payments

Fix → Reorder routes so more specific ones come first, fix the matchers, or add continue: true where an alert should reach multiple receivers.

Prevent → Add amtool config routes test --verify.receivers cases to CI for each team.

All SRE & Reliability questions

More on Burn-Rate Alerts & Alertmanager