30. Observability
1
The picture to keep in your head2
30.1 Why do you need observability?3
30.2 What are the three pillars?4
30.3 What are golden signals, RED and USE?5
30.4 What are SLI, SLO and SLA?6
30.5 What are error budgets?7
30.6 How do you alert without noise?8
30.7 What makes a good dashboard?9
30.8 How do you debug an incident, step by step?10
Memory card and where the analogy breaks11
Practice: five levels12
Interview questions13
Solutions14
Sources15
Code lab30. Observability
30.6 How do you alert without noise?
3 min read+10 XP
In the car: If the "check engine" light came on every time you went over a speed bump, you'd tape over it, and miss the day it mattered. Good warning lights are rare, clear and always mean "do something".
In the system: Bad alerting burns people out and hides real problems. Principles:
- Page on symptoms users feel, not on causes. "Checkout error budget burning fast" is worth waking someone; "CPU at 85% on one server" usually isn't (it may be fine, and if it isn't, the symptom alert will fire).
- Every page must be actionable and urgent. If the right response is "look at it tomorrow", it's a ticket, not a page.
- Use SLO burn-rate alerts. The Google SRE Workbook recommends multiwindow, multi-burn-rate alerts. For example, page when the burn rate is at least 14.4 over the last hour (2% of a 30-day budget gone in an hour) and still that high over the last 5 minutes (so it stops paging once the problem is fixed); open a ticket for slower burns over longer windows.
In the chapter's code: a 2% error ratio over the hour and 3% over the last 5 minutes pages; the same hour but only 0.05% in the last 5 minutes (already recovered) doesn't; a slow 0.3-0.4% burn doesn't page either (it's a ticket).
More habits:
- Route by ownership: the team that owns checkout gets checkout pages.
- Group and deduplicate: one incident, one page, not fifty.
- Review alerts regularly: delete or downgrade any alert that fired without needing action.
- Link every alert to a runbook and a dashboard.
Memory code: "A warning light should mean 'stop now', never 'speed bump'."