$ run as a normal user# run as root (or with sudo)
The quick answer
# API error rate high (ApiErrorBudgetFastBurn)
Service: checkout-api · Owner: team-payments · Dashboard: https://grafana.example.com/d/api
Severity: page — customers cannot pay.
## 1. Check (2 minutes)
- Dashboard: which route and which status codes? Since when?
- Last deploy: `kubectl -n shop rollout history deploy/checkout-api`
- Dependencies: database and payment provider status page.
## 2. Fix the usual causes
- Started right after a deploy → roll back: `kubectl -n shop rollout undo deploy/checkout-api`
- Database connections full → see "Database connections" runbook.
- Payment provider down → switch the feature flag `payments.fallback` on.
## 3. Escalate
- Not better in 15 minutes → call the team-payments lead (on-call tool), open an incident channel.
## 4. After
- Write a short incident note: time line, cause, follow-up tasks.Step by step
- One runbook per alert — the alert has
runbook_urlin its annotations, so the link is in the page itself. - Start with meaning and impact — one line: what is broken for users, and how urgent it is.
- Check before fixing — the 3–5 things to look at first, with exact links and commands that can be copied. No "investigate the issue".
- Fix steps for known causes — the top causes from past incidents, each with the safe action (rollback, restart, scale, feature flag) and how to see that it worked.
- Escalation — who, when (time limit), and how (tool, phone), plus the incident channel.
- Keep it short — one screen if possible. Background and architecture go in a linked document.
- Store in Git next to the alert rules, reviewed in pull requests. Owner and "last tested" date on top.
- Test it — in a game day a new team member follows the runbook against a staging failure; fix every step that was unclear. Update the runbook after each real incident.
- Automate the boring steps — when a step is always the same, make it a script or a button, and link it.
Check that it worked
Every alert rule has a runbook_url that opens (a script can check all of them); a team member who does not know the service fixes a staging failure with the runbook alone in the planned time.
Common problems
| Problem | Cause | Fix |
|---|---|---|
| Runbook is out of date | Written once, never updated. | Owner + "last tested" date; update after each incident. |
| Steps say "check the logs" | Too vague for a tired person. | Exact link, command and what "bad" looks like. |
| Alert has no runbook | Created without the annotation. | Make runbook_url required in rule review (lint in CI). |
| Fix step is dangerous | Restart of a database without checks. | Add "before you do this" checks and a rollback. |
| Runbook in a wiki nobody can reach during an outage | The wiki runs on the broken platform. | Copy in Git and a static site outside the platform. |
| Too long to read at 3 a.m. | History and design mixed in. | Move background to a linked page. |
Go further
- Command pages: kubectl, journalctl, systemctl.
- Next how-tos: Define an SLO and an error budget, Send alerts to Slack or email, Roll back a Kubernetes deployment, See who is connected to a database, Write a post-incident review.
- Learn it: Operations at work — runbooks, Observability tools at work — alerts.
1Where should the link to a runbook be?
In the alert itself (the runbook_url annotation), so the person on call opens it straight from the page.
2How do you know a runbook is good?
Someone who does not know the service follows it in a drill and fixes the problem without help.