Alerting design
Rules
- Page on symptoms, not causes: "alert on symptoms that are associated with end-user pain" (prometheus.io/docs/practices/alerting, accessed 2026-11-28). Monitoring answers "what's broken, and why?"; the page says what, dashboards say why (sre.google, "Monitoring Distributed Systems", accessed 2026-11-28).
- A page must be urgent, actionable, and need judgement: "Every page should be actionable", "Every page response should require intelligence" (same chapter). The workbook adds that "pages and tickets are the only valid ways to get a human to take action" (sre.google workbook, "Alerting on SLOs", accessed 2026-11-28); everything else is a dashboard or a log.
- Thresholds come from an agreed SLO (
slo-definition). Without one, raise an open item with options; never guess a threshold. - Every alert has an owning team, a runbook (
runbook-writing, alert variant), a dashboard link, and a severity label. Routing, channels, escalation, dedup, grouping, quiet hours, and delivery checks followalert-routingand are not redefined here: pages map to its paging rows (Critical, High), tickets to Medium or Low, with the mapping recorded from the response policy. - Burn-rate alerts are state alerts and may auto-resolve; security alerts never do (
alert-routing). - Never silence, mute, inhibit, or delete a production alert, and never desensitise one to quiet it. Retirement, demotion, and tuning are proposals to the alert's owner with evidence; security detections go to the detection engineer (
suppression-management). - Alert rules are code: reviewed, unit-tested, and handed to the orchestrator to apply with a rollback (the previous rule file).
Burn-rate alerts
Burn rate = observed error ratio ÷ (1 − SLO): "how fast, relative to the SLO, the service consumes the error budget" (workbook, "Alerting on SLOs"). The burn rate that consumes a share B of the budget within a long window W of an SLO period P is B × P ÷ W; for B = 2%, P = 30 days (720 h), W = 1 h: 0.02 × 720 ÷ 1 = 14.4.
| Budget consumed | Long window | Short window | Burn rate | Notification |
|---|---|---|---|---|
| 2% | 1 h | 5 min | 14.4 | Page |
| 5% | 6 h | 30 min | 6 | Page |
| 10% | 3 days | 6 h | 1 | Ticket |
Starting values from the workbook's recommended table for a 99.9% SLO over 30 days (accessed 2026-11-28); re-derive for other periods. Fire when the error ratio exceeds burn rate × (1 − SLO) over both the long and the short window; the short window, about 1/12 of the long one (workbook guidance), makes the alert reset soon after recovery.
# Prometheus-style sketch; recording rule names are placeholders, SLO 99.9%
- alert: <Service>ErrorBudgetFastBurn
expr: |
(<sli>:error_ratio:rate1h > (14.4 * 0.001) and <sli>:error_ratio:rate5m > (14.4 * 0.001))
or
(<sli>:error_ratio:rate6h > (6 * 0.001) and <sli>:error_ratio:rate30m > (6 * 0.001))
labels: {severity: <paging row from alert-routing>, team: <owner>, slo: <SLO id>}
annotations: {summary: <journey> is burning error budget, runbook_url: <link>, dashboard: <link>}
- Latency SLIs: error ratio = 1 − (requests within the threshold ÷ valid requests).
- No data: an SLI with no samples is unknown, not healthy; alert on absent data, routed like the burn alert it protects.
- Low traffic: the workbook's options are generating artificial traffic, combining services for monitoring, changing the product so one failure matters less (retries, fallbacks), or lowering the SLO or lengthening the window.
- Extreme targets: at 90% a total outage uses only 1.4% of the budget per hour, so the 2% page never fires; at 99.999% a month's budget lasts 26 seconds of total outage, shorter than many evaluation intervals; defend such targets by design and canaries (workbook).
Page, ticket, or dashboard
| Signal | Route | Example |
|---|---|---|
| Fast budget burn: exhaustion within hours to days | Page | 2% in 1 h, 5% in 6 h |
| Slow budget burn | Ticket | 10% in 3 days |
| Cause with harm inevitable before a human could react to the symptom | Page or ticket by time to harm | Disk full within hours, certificate expiring within days, backups failing past the RPO (backup-restore) |
| Cause absorbed by redundancy | Dashboard only | One instance down behind a balancer; high CPU with SLIs healthy |
| Monitoring itself failing | Page through an independent path | Heartbeat and delivery-error checks in alert-routing |
Alert quality
| Measure | Definition (workbook, "Alerting on SLOs") | Evidence |
|---|---|---|
| Precision | "The proportion of events detected that were significant" | Dispositions and actions per firing |
| Recall | "The proportion of significant events detected" | Incidents first reported by users or other teams |
| Detection time | "How long it takes to send notifications in various conditions" | Incident timelines |
| Reset time | "How long alerts fire after an issue is resolved" | Alert history |
| Load | Pages per shift and out-of-hours pages | Paging tool |
Google SRE sets "the maximum number of incidents per day" at "2 per 12-hour on-call shift" and calls misconfigured monitoring "a common cause of operational overload" (sre.google, "Being On-Call", accessed 2026-11-28); the owner sets the team's targets.
Retiring alerts
- Candidates: no human action in the review window, precision below the owner's threshold, duplicates of a burn-rate alert, runbooks that say "ignore" or "wait". Configuration "that is rarely exercised (e.g., less than once a quarter for some SRE teams) should be up for removal" ("Monitoring Distributed Systems").
- Propose per alert, with fire and action counts for a stated window: delete, demote to ticket or dashboard, re-derive the threshold, or fix the cause. The owner decides; the change goes through review and the orchestrator.
Deploy health gates
Feed deployment-strategy with the same SLIs per version: canary error ratio and latency SLI against stable over the bake window, a burn-rate trigger (for example the canary's burn rate above the fast-burn threshold for consecutive intervals rolls back), and budget status from the policy in slo-definition (exhausted budget blocks non-exempt releases).
Procedure
- Inventory alerts read-only: rule, severity, owner, runbook, and for a stated window fires, acknowledgements, and actions.
- SLOs from
slo-definition; stop with an open item where none is agreed. - Write recording rules and burn-rate alerts per SLO, plus no-data alerts.
- Classify every other alert with the page, ticket, or dashboard table; list retirement proposals.
- Runbook and labels per alert; map severity to the
alert-routingmatrix and hand route changes to that skill. - Test locally:
promtool check rules <file>andpromtool test rules <test.yml>(prometheus.io, accessed 2026-11-28) or the stack's equivalent, with cases for fast burn, slow burn, no burn, recovery, and no data; record the expected firing times. - Gates: specify SLO-fed health gates with
deployment-strategy. - Hand over: diff with SHA-256, test output, expected pages per week from history, one synthetic alert per route after apply (
alert-routing), rollback. - Review quality on the owner's cadence and after each incident; route gaps from
postmortemback here.
Output
| Alert | SLO or symptom | Expression and windows | Burn rate and budget share | Page / ticket | Severity row | Owner | Runbook | Test cases (pass) | Expected per week | Precision before / after |
|---|
Then retirement proposals with evidence, gate specifications, and open items with options and one Recommendation.
Quality checklist
- Every page traces to an SLO burn or an imminent, documented harm; causes without harm are dashboards.
- Burn rates and windows are derived and shown; no threshold is guessed.
- Every alert has an owner, runbook, dashboard, and severity row from
alert-routing. - Unit tests cover fast burn, slow burn, no burn, recovery, and no data, and pass.
- Quality measures are stated before and after; retirement went to the owner, not done directly.
- No production alert was silenced, muted, or deleted.
Pitfalls
- Alerting on a single short window, so every brief spike pages and recovery takes an hour to clear.
- A page for each cause (CPU, one pod, one replica) on top of the SLO page, so one incident pages five times.
- An SLO alert that reads healthy when the metric disappears.