Interview Prep/Monitoring & Observability/Alerting Strategy, SLOs & Runbooks

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting Strategy, SLOs & Runbooks