Skip to content

How-to guide

How to write a runbook

A runbook is written once in daylight and read during an outage in the dark. Write it for a tired person who has never seen this alert before.

2 min read9 sectionsUpdated

On this page

Key points

  • Start from the alert: one runbook per alert, linked from it.
  • Five parts: meaning, impact, confirm, act, escalate.
  • Commands must be copy-paste safe.
  • Every incident is a runbook review.

The template

runbook-template.mdmarkdown
# <Alert name>

## What this alert means
One or two sentences in plain words.

## Impact
Who is affected and how badly. Severity guidance.

## Confirm
Links to the dashboard, trace search or log query that shows the problem.

## Act (safe steps first)
1. ...
2. ...
If X, do Y. Otherwise Z.

## Escalate when
- ...
Owner: <team>    Last verified: <date>

A worked example

runbooks/payment-errors.mdmarkdown
# Payment provider error rate high

## What this alert means
More than 5% of calls from the checkout service to the payment provider failed in the last 5 minutes.

## Impact
Customers cannot pay. SEV1 if above 20% for 5 minutes, otherwise SEV2.

## Confirm
- APM → checkout → outgoing calls to payments-api: error rate and p95.
- Provider status page (link).
- Logs: service:checkout level:error "payment" in the last 15 minutes.

## Act
1. If the provider status page shows an incident: switch the checkout banner on
   (admin → Settings → Checkout notice) and post on our status page.
2. If only our calls fail: check the last deploy of checkout. If within 1 hour, roll back:
       ./deploy rollback checkout
3. If errors are timeouts: confirm the client timeout is 10 s and retries are 2 (config: payments.yaml).

## Escalate when
- Not improving 15 minutes after rollback → page the payments team lead.
- Any sign of duplicate charges → page the payments lead immediately.

Owner: payments team    Last verified: 2026-10-20

Writing rules

  • Short sentences, numbered steps, one action per step.
  • Link, do not describe: a link to the exact dashboard beats "open the APM page and filter by…".
  • Mark dangerous steps clearly, and put them after the safe ones.
  • Use placeholders like <pod-name> that cannot be run by accident.
  • State the decision points: "if errors are timeouts…".

Keeping runbooks alive

In each postmortem, ask three questions: did a runbook exist, did the responder find it, and was it right? Update it the same day. Remove runbooks for alerts you deleted. Give each one an owner and a "last verified" date, and review the oldest ones each quarter.

VitalRix notebooks are useful while you investigate: markdown next to live charts, log streams and traces, created straight from an incident with the time window frozen. The steps that worked become the runbook. See the runbook definition for runbook vs playbook.

Frequently asked questions

Where should runbooks live?

Somewhere searchable and version-controlled, reachable during an outage, and linked from the alert itself so nobody has to search.

How long should a runbook be?

One screen if possible. If it is much longer, it probably covers several alerts or belongs in a playbook.

Check it now, free

  • Runbook template: A free runbook template for on-call engineers: when it applies, impact, quick checks, mitigation, escalation and verification, ready to copy.
  • Incident report template: A free, copy-ready incident report template for software and IT teams: summary, impact, timeline, root cause and actions, with tips for good reports.
  • SLA template for SaaS and IT services: A free service level agreement (SLA) template for SaaS and IT services: uptime commitment, measurement, exclusions, support response times and service credits.
  • Incident communication templates: Copy-ready incident update templates for each stage: investigating, identified, monitoring and resolved, plus internal updates and writing rules.
  • Incident severity matrix: a template you can use: A practical incident severity matrix: SEV1 to SEV4 definitions by customer impact, response expectations, who to page and how to classify quickly.
  • What is AIOps?: AIOps explained: what AI for IT operations does well, where it falls short, practical uses such as noise reduction and change analysis.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.