What is a runbook?
BeginnerConceptReliability, monitoring & incidents
Answer
In one line: A runbook is a step-by-step guide for handling a specific operational task or alert — what to check, what commands to run and when to escalate — so anyone on call can respond quickly and consistently.
What a good runbook includes:
- Title and trigger — which alert or situation it's for ("Orders API 5xx rate high").
- Impact — what users experience and how serious it is.
- Quick checks — dashboards to open, queries to run.
- Diagnosis steps — common causes and how to confirm each.
- Fix / mitigation steps — exact commands, with what "good" looks like afterwards.
- Escalation — who to contact if the steps don't work.
- Links — dashboards, logs, architecture diagram, related post-mortems.
- Last reviewed date and owner.
Example snippet:
## Alert: OrdersHighErrorRate
1. Check Grafana "Orders overview" — is it all endpoints or one?
2. Was there a deployment in the last 30 minutes? (Argo CD → orders → History)
- Yes → roll back: `helm rollback orders -n orders`
3. Check payments dependency: `kubectl -n orders logs deploy/orders | grep -i timeout`
- Timeouts to payments → page the payments on-call.
4. Database connections > 90%? Scale replicas down to reduce load and page the DBA on-call.
Escalate to: #orders-team, then the engineering manager on-call.
Good practices:
- Link every alert to its runbook (in the alert annotation).
- Update runbooks after incidents — post-mortem action items often include runbook changes.
- Keep them short and current — an outdated runbook can be worse than none.
- Automate over time — repeated runbook steps become scripts, then automatic remediation ("runbook automation").
Example of value: after a junior engineer handled a 3 a.m. disk-full alert in 5 minutes using the runbook, the team automated the fix entirely with log rotation and an auto-expanding volume.
Tip for interviews: mention linking alerts to runbooks and evolving runbooks into automation.
More on Reliability, monitoring & incidents
What are SLAs, SLOs and SLIs?BeginnerWhat is an error budget, and how is it used?IntermediateWhat are the four golden signals of monitoring?BeginnerWhat is the difference between metrics, logs and traces?BeginnerWhat makes a good alert? How do you avoid alert fatigue?BeginnerWhat is an incident, and what is incident management?Beginner