How do you handle alerts across environments (dev, staging, prod)?
BeginnerProductionAlerting Strategy, SLOs & Runbooks
Answer
Use the same rules everywhere (rules are code, tested in lower environments first) but route by an env external label: prod pages, staging goes to a Slack channel, dev goes nowhere or to the owning team's channel. Never page anyone for dev.
route:
routes:
- matchers: [ env="prod", severity="page" ]
receiver: pagerduty-payments
- matchers: [ env=~"staging|dev" ]
receiver: slack-nonprod
More on Alerting Strategy, SLOs & Runbooks
What is the single most important rule for deciding whether an alert should page a human?BeginnerWhat severity levels do you define, and where does each one go?BeginnerWhy do mature teams alert on SLO burn rate instead of raw error rate thresholds?IntermediateIn a multi-window burn-rate alert, what is the short window for?AdvancedHow do you generate SLO alert rules without hand-writing dozens of burn-rate expressions?IntermediateHow do you pick an SLO target for a service that has never had one?Beginner