Alerting & Runbooks
Design alerts that page the right people at the right time—plus how to attach runbooks so incidents are fixable quickly.
Alerts are only useful if they lead to action. Without runbooks, alerts turn into “tribal knowledge” emergencies.
Learning outcomes
You’ll be able to:
- write alert rules with clear impact
- attach/maintain runbooks
- create a minimal incident response loop
1) Alert design principles
Alert on user impact
Instead of:
- CPU > 95% Prefer:
- error rate increased
- p95 latency above SLO
- checkout failures > threshold
Include a response hint
Every alert should answer:
- what does this mean
- what should you check first
- who owns it
2) Create a runbook template
Use this structure:
Title: <service/alert name>
Impact: <what broke for users>
When: <time window or trigger conditions>
Where to look:
- Dashboard: <link>
- Logs query: <query>
- Trace examples: <link>
Likely causes:
- <cause1>
- <cause2>
Step-by-step actions:
1) ...
2) ...
Rollback/Mitigation:
- ...
Owners:
- ...
3) Example alert scenarios (and what to check)
Scenario A: Latency spikes
First checks:
- recent deploys
- DB latency / saturation
- thread pool / queue depth Mitigation:
- rollback
- scale out
- reduce expensive requests
Scenario B: Error rate increases
First checks:
- error type distribution
- downstream service health
- logs with error signature Mitigation:
- switch feature flag off
- increase retries/backoff carefully
4) Practical alert tuning workflow
- Collect baseline data (last 2–4 weeks)
- Choose thresholds aligned to SLO impact
- Test alerts in staging or using shadow mode
- Review after incidents (what fired vs what should have fired)
- Iterate (alert hygiene is continuous)
5) Next steps
Next tutorials:
- instrumenting services for better signals
- OpenTelemetry mindset
- integrating CI/CD quality gates (fail fast before production)
Frequently Asked Questions
What should be inside a runbook?
Symptoms, where to look (dashboards/log queries), likely causes, step-by-step mitigation/rollback, and owners/contact info.
How do I reduce alert fatigue?
Use impact-based alerts, add noise suppression (grouping, delays), and tune thresholds using historical data; also set alert ownership and escalation.