Skip to content

Monitoring glossary

What is a runbook?

A runbook is a short, step-by-step guide for handling a specific alert or task, written so that anyone on call can follow it at 3 a.m.

2 min read9 sectionsUpdated

On this page

Key points

  • One runbook per alert or task, linked from the alert itself.
  • Steps, not essays: check this, run this, if X then Y.
  • Include how to verify that the fix worked and when to escalate.
  • Update it after every incident where it was wrong or missing.

Runbook vs playbook

AspectRunbookPlaybook
ScopeOne alert or procedureA whole class of situations
ContentExact steps and commandsRoles, communication, decision points
Example"Disk above 90% on db-1""Major incident response"

An example runbook

runbooks/disk-full.mdmarkdown
# Disk usage above 90% on a database host

**Alert:** disk_used_percent > 90 for 10 minutes on db-*
**Impact:** at 100% the database stops accepting writes.
**Owner:** platform team

## 1. Check how fast it is filling
- Open the host's disk chart for the last 24 hours.
- Growing more than 5% per hour? Treat as SEV2 and page the secondary.

## 2. Find what is using space
    sudo du -xh /var --max-depth=2 | sort -h | tail -20

## 3. Safe actions
- Old WAL or logs under /var/log/postgresql older than 7 days: compress or delete.
- Never delete files in the data directory.

## 4. Verify
- Disk below 80% and stable for 15 minutes.

## 5. Escalate if
- Usage keeps climbing, or the cause is table growth: page the database owner.

What makes a runbook useful

  • Linked from the alert so nobody searches a wiki during an incident.
  • Commands copy-paste safely, with placeholders clearly marked.
  • Decision points are explicit: "if X, do Y; otherwise Z".
  • Safe vs dangerous actions are separated.
  • Owned and dated, with a review after each use.

Read how to write a runbook for a template and a review process. In VitalRix, notebooks are a good home for investigation notes that later become runbooks, with live charts beside the steps.

A minimal template

Every runbook can follow the same five headings: what the alert means, impact, how to confirm, what to do (safe actions first) and when to escalate. Keeping the structure identical across runbooks means the on-call engineer always knows where to look, even for a runbook they have never opened before.

Keeping runbooks current

  • After every incident, ask: did a runbook exist, was it found, was it right?
  • Give each runbook an owner and a "last verified" date.
  • Delete runbooks for alerts that no longer exist.
  • Test the commands in a staging environment when the system changes.

Frequently asked questions

Should runbooks be automated?

Automate the steps that are safe and repetitive. Keep a runbook for the judgement calls and for when automation fails.

Where should runbooks live?

Somewhere version-controlled or searchable that on-call can reach even during an outage, linked from every alert.

  • Runbook template: A free runbook template for on-call engineers: when it applies, impact, quick checks, mitigation, escalation and verification, ready to copy.
  • 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.
  • 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.

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.