How do you attach a runbook and dashboard to every alert, and enforce it?
IntermediateProductionAlerting Strategy, SLOs & Runbooks
Answer
Put them in annotations and lint for them in CI:
- alert: CheckoutHighErrorBudgetBurn
expr: ...
labels:
severity: page
team: payments
annotations:
summary: "Checkout is burning error budget 14x faster than allowed"
runbook_url: "https://runbooks.example.com/payments/checkout-burn"
dashboard_url: "https://grafana.example.com/d/checkout-slo"
A CI step fails the merge if any severity: page rule lacks runbook_url. A simple yq check or pint (Cloudflare's Prometheus rule linter) with a rule/annotation check does this.
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