SENIORCHAPTER 19

Runbooks, on-call rotations and alert fatigue

Write the page's runbook so a new hire can mitigate at 3 am, link it from the alert, staff the rotation so people stay, and measure the pager before it burns them out

60 MINOBSERVABILITYUPDATED 2026-11-02
PREDICT

The ErrorBudgetBurn page arrives at 03:10. The on-call follows the runbook and rolls back payments at 03:19. The checkout error ratio is back to normal at 03:20. The pager shows the alert resolved at 03:46. What is the time to mitigate?

The alert-design chapter left the demo app with two pages and a handful of tickets. A page is only as good as what the person receiving it does next. This chapter is about the three things around the page: the runbook it links to, the rotation of people who receive it, and the numbers that tell you whether the rotation is sustainable. The lab writes the runbook for the ErrorBudgetBurn page and measures it the only way that counts: someone mitigates a fault they did not choose, with and without it.

What a runbook is for

A runbook (or playbook; the terms are interchangeable) is the document a page links to. Its job is narrow: get a responder who may never have seen this failure from “my phone went off” to “users are no longer hurt” as fast and as safely as possible. It is not architecture documentation, not a postmortem, and not a list of every way the system has ever failed.

The SRE Workbook’s guidance is that every alert should have a corresponding playbook entry, and that on-call engineers update the entry when the page fires. It also notes a tension. If a runbook is a fixed sequence of commands with no decisions, a machine should run it, and the SRE book’s rule applies: a page that merits a robotic response should not be a page. So a good runbook has a particular shape. The deterministic parts (gathering the evidence, applying a known-safe mitigation) are commands to paste. The parts that need judgment are decisions, made explicit, each with the number that decides them.

The audience is the person least equipped to handle the page: the new hire on their first solo shift, at 3 am, without the context everyone else has. Ewaschuk’s advice for pages applies with more force here. If that person cannot act on it, it does not work.

Anatomy of a 3 am runbook

A runbook a stranger can execute has the same sections in the same order every time, so the responder knows where to look without reading:

section what it holds why
Header alert name and labels it covers, owner, when last tested and against what, escalation contact the responder knows at once whether the document is current
What this means one paragraph: which promise is at risk, how fast, what users see sizes the incident before anyone touches anything
First two minutes acknowledge, say so in the incident channel, do not change anything yet stops two people fixing the same thing
Confirm and size one query, expected value when healthy and when not rules out a false page in 30 seconds
Locate two or three queries and a table: what you see, likely cause, which step turns diagnosis into lookup
Mitigate one subsection per row, each a command, expected output, and the risk mitigation before root cause
Verify the SLI query again, with how long to watch a mitigation is not one until the SLI says so
Escalate who, how, and the time limit after which you must prevents heroics
Do not the actions that make it worse the AWS lesson

Five rules make the difference between that table and a document nobody can use:

Commands, not descriptions. “Check whether payments is healthy” is a description. docker compose --profile telemetry ps --format '{{.Service}} {{.State}}' is a command. A tired responder copies text; they do not translate intent into syntax.

Expected output for every command, including the empty case. A query that returns nothing looks exactly like a system with no errors. Every check says what healthy looks like, what broken looks like, and what “no output” means. Usually it means the query is wrong.

Decisions with numbers. “If errors are high” is not a decision. “If slo:sli_error:ratio_rate5m for checkout-availability is above 0.0144” is. The number comes from the alert, so the runbook and the alert agree.

Mitigation before root cause. The incidents chapter later in this module makes the same point for the whole response: stop the bleeding, then find out why. Runbook mitigations are reversible and safe to apply on a guess: roll back, restart the stopped dependency, shed load, fail over. Anything that destroys data or cannot be undone goes in the “do not” list or behind an escalation.

A time limit on going it alone. “If users are still hurt 20 minutes after the page, page the secondary” turns escalation from an admission of failure into a step. The new hire does not have to decide whether they are allowed to ask for help.

Linking alerts to runbooks

The link travels with the alert. In a Prometheus alerting rule, annotations are free-form key-value pairs; by convention summary is the one-line headline and runbook_url is the link. Annotation values are templates, so {{ $labels.slo }} and {{ $value }} work. Prometheus sends annotations with the alert; Alertmanager does not route on them but passes them to every receiver. In the webhook payload they are in each alert’s annotations, and when all alerts in a notification share one they also appear in commonAnnotations. PagerDuty, Opsgenie and Slack integrations show them in the notification.

Three practical points:

  • One runbook per symptom, not per rule. The two ErrorBudgetBurn rules share a name and differ by severity, and both SLOs share one burn rule. One runbook with a short branch per SLO beats four documents that drift apart.
  • A stable URL. Runbooks belong next to the alert rules, in the same repository, reviewed in the same pull request. A wiki page that moves breaks every page that links to it, silently.
  • Test the annotation. promtool’s unit tests compare annotations exactly, so adding a runbook_url to a rule fails the burn-rate chapter’s tests until the expected annotations are updated too. That is a feature: the link is now part of the alert’s contract, and a deleted link fails CI. The lab does this edit.

PagerDuty’s alerting principles put it bluntly: an alert should give clear steps to resolve the problem or link to a runbook, and alerts with neither are useless.

Testing runbooks

Runbooks rot faster than code because nothing executes them between incidents. A service is renamed, a port changes, a query’s label is migrated to the new semantic conventions, and the runbook still reads well. The first person to find out is the one who needs it at 3 am.

The only test is execution. Three habits keep runbooks honest:

  • Someone other than the author runs it against a real fault, reading only the runbook. Every place they hesitate, ask a question or improvise is a defect. The author is the worst tester because they fill the gaps from memory.
  • Every page updates it. The responder adds what they had to work out, and corrects what was wrong, before the incident is closed. A “last tested” line in the header shows how stale it is.
  • Game days exercise it on purpose. A fault picked by someone else, a timer, and a comparison of time to mitigate with and without the runbook. The incidents chapter turns this into a full exercise; the lab here does the small version.

And when a runbook step is dangerous, move the guard into the tool, as AWS did. A runbook that says “make sure the count is under 10” protects nobody at 3 am; a command that refuses counts over 10 does.

On-call rotations

A rotation is the schedule of who holds the pager. The structure decides how much sleep people lose and whether they stay.

Size. The SRE book’s numbers come from the 25% limit on time spent on call: with weekly shifts, a single-site 24/7 rotation needs at least eight engineers, and a two-site rotation needs at least six per site. Smaller teams can share a rotation with a neighbouring team or narrow the hours that page; they cannot work around the arithmetic.

Shift length and shape. The SRE Workbook recommends shifts of at most 12 hours. Two sites in different timezones can run follow-the-sun, each covering its own daytime, so nobody is paged at night. A single site can split each day into day and night halves, or run patterns like three days on and four off. Weekly 24-hour shifts are common and are the hardest on sleep.

Primary and secondary. Always have a backup. PagerDuty’s guide recommends an escalation timeout of 5 minutes: if the primary has not acknowledged by then, they are probably unable to respond, and the page moves to the secondary. Their third escalation level is the whole team. The secondary is also who the runbook’s escalation step names.

Response targets. The SRE book gives 5 minutes as a typical time to respond for user-facing services and 30 minutes for less time-sensitive ones. That number, not the alert threshold, is what the page-versus-ticket line from the previous chapter is protecting.

Getting people ready. New engineers shadow before they hold the pager alone. In one Workbook case study, a new team started shadowing about two months in and took primary at three. Shadowing means receiving the pages, following the runbooks, and having the primary watch.

Compensation. Out-of-hours work is work. The Workbook describes time off in lieu or cash, capped as a proportion of salary. A rotation that is unpaid and unpleasant loses its most experienced members first, and they wrote the runbooks.

Handoffs

A shift ends with a handoff, and the Workbook’s practice is symmetrical: the outgoing engineer sends one at the end of the shift, and the incoming engineer reads it at the start. A spoken handoff is enough for a quiet shift; a written one is the record for a busy one. Keep it short and the same shape every time:

  • open incidents and their state, with links
  • pages this shift: name, time, actionable or not, runbook followed or improved
  • silences in place, who set them and when they expire
  • changes in flight: deploys, migrations, maintenance windows in the next shift
  • anything that nearly paged, and anything the next person should watch

The silence line matters most. A silence set at 02:00 to stop a flapping alert and forgotten is a deleted alert that nobody reviewed.

Alert-fatigue metrics

Alert fatigue is measurable, and the SRE book says overload should be measured rather than felt. Track a small set of numbers per rotation, as a trailing average (the Workbook suggests 21 days) because pages are bursty:

metric target or signal where it comes from
pager load: incidents per shift at most 2 per 12-hour shift paging service; here the pager log
pages out of hours trend down; each one is a cost notification timestamps
actionable ratio: pages where someone did something close to 100% a one-word field on each page: acted or not
pages with a runbook link 100% runbook_url on every page rule
time to acknowledge under the response target paging service
time to mitigate trend down; compare with and without runbook SLI query against the page time
top alerts by firing time the next audit’s list ALERTS in Prometheus
pages that resolved before acknowledgement close to zero paging service

The last row is the clearest symptom of noise: if a page resolves on its own before anyone looks, it should not have paged. The actionable ratio is the one teams skip because it needs a human to fill in a field, and it is the one that tells you which alert to delete next.

Prometheus can give you the firing-time ranking directly. Every pending or firing alert writes a synthetic ALERTS series, value 1, with alertname, alertstate and the alert’s labels, once per evaluation. Counting samples and multiplying by the evaluation interval gives firing time:

sort_desc(sum by (alertname, severity) (count_over_time(ALERTS{alertstate="firing"}[1d])) * 5 / 60)

That is minutes firing per alert over the last day at the lab’s 5 s evaluation interval. Alertmanager’s own counter, alertmanager_notifications_total{integration}, gives notifications sent per integration; its per-receiver label exists only behind the receiver-name-in-metrics feature flag, so separate page and ticket integrations, or the receiver’s own logs, are how you count pages.

Where it goes wrong

  • The runbook is a wiki page of history. Fifteen paragraphs about how the system was built, the decision buried in paragraph nine. Move history to a design doc and link it from the bottom.
  • Mitigations that need permissions the on-call does not have. Test the runbook from the on-call’s account, not the author’s.
  • One runbook per alert, 200 alerts. The audit comes first. Fewer pages means fewer runbooks to keep alive.
  • Heroics instead of escalation. A responder who spends 90 minutes alone because escalating felt like failure. Put the time limit in the runbook and praise the escalation in the postmortem.
  • Measuring time to resolve the alert. It includes the alert’s own reset time, which you tuned for precision, not speed. Measure mitigation from the SLI.
  • Rotations sized for the pager load you hope for. If the team gets five incidents a shift, the fix is fewer pages or more people, and the metrics above are how you make that case.
LAB Write the burn-rate runbook and measure it against a fault you did not choose ~75 MIN
YOU NEEDDocker Desktop or Docker Engine with Compose v2the ATLAS repo cloned, working in labs/observability, with Alertmanager, the pager and prometheus/rules/alerts.yml from the alert-design labprometheus/rules/slo.yml, prometheus/rules/slo-alerts.yml and prometheus/tests/slo-alerts-test.yml from the burn-rate chapterbash, curl, jq, base64 and Python 3ideally a second person: one picks the fault, the other responds

You will measure time to mitigate without a runbook, write one, link it from the ErrorBudgetBurn alerts, keep the burn-rate unit tests green, measure again with a different responder or fault, and finish with the fatigue numbers and a handoff note.

1. Check the starting state.

cd labs/observability
docker compose --profile telemetry up -d
docker compose --profile telemetry ps --format '{{.Service}} {{.State}}' | sort
curl -s localhost:9090/api/v1/rules | jq -r '.data.groups[].rules[] | select(.type=="alerting") | "\(.labels.severity)\t\(.name)"' | sort | uniq -c
Every service running, including alertmanager and pager. Alerting rules: ErrorBudgetBurn twice (page and ticket), GatewayDown as a page, and the five tickets from the audit. If alertmanager or pager is missing, do steps 2 to 4 of the alert-design lab first.

2. Write a fault picker. One person writes and runs this; the responder does not read it. Save as roulette.sh and chmod +x roulette.sh. If you have done the incidents chapter, its gameday.sh does the same job with more faults; use either.

#!/usr/bin/env bash
# Picks one fault that breaks checkout and injects it 30-120 s from now.
#   ./roulette.sh start | reveal | stop
set -euo pipefail
cd "$(dirname "$0")"
DC="docker compose --profile telemetry"
case "${1:-}" in
  start)
    faults=(payment-errors redis-down payments-down db-frozen)
    f=${faults[$((RANDOM % 4))]}
    printf '%s\n' "$f" | base64 > .roulette
    nohup bash -c "sleep $((30 + RANDOM % 91)); case $f in
        payment-errors) FAULT_ERROR_RATE=0.3 $DC up -d payments ;;
        redis-down)     $DC stop redis ;;
        payments-down)  $DC stop payments ;;
        db-frozen)      $DC pause db ;;
      esac" > /dev/null 2>&1 &
    echo "armed: a fault arrives within 2 minutes" ;;
  reveal) base64 -d < .roulette ;;
  stop)
    $DC unpause db 2>/dev/null || true
    $DC up -d
    rm -f .roulette
    echo "cleared" ;;
  *) echo "usage: $0 start|reveal|stop" >&2; exit 2 ;;
esac
Four faults, each a different row in the runbook you are about to write: payments failing 30% of charges, Redis gone so every charge fails, payments gone so orders cannot reach it, and Postgres frozen so orders hangs until the gateway’s 15 s timeout. All four fail checkouts, so all four burn the checkout-availability budget fast enough to page.

3. The baseline: respond without a runbook. The responder opens two terminals, one following the pager:

docker compose logs -f --no-log-prefix --since 1m pager

The picker runs ./roulette.sh start. When a /page line for ErrorBudgetBurn appears, the responder copies its timestamp into a variable, mitigates with whatever they know, and then measures time to mitigate from the SLI:

PAGED=2026-11-02T03:10:12Z     # the timestamp at the start of the /page line
ttm() {
  end=$(date +%s); start=$((end - 3600))
  curl -sG localhost:9090/api/v1/query_range \
    --data-urlencode 'query=slo:sli_error:ratio_rate5m{slo="checkout-availability"}' \
    --data-urlencode start=$start --data-urlencode end=$end --data-urlencode step=15 \
  | jq -r --arg paged "$PAGED" '($paged | fromdateiso8601) as $p
      | [.data.result[0].values[] | select(.[0] > $p and (.[1] | tonumber) < 0.0144) | .[0]] | first
      | if . == null then "still burning" else "mitigated \(todate), TTM \(((. - $p) / 6 | floor) / 10) min" end'
}
ttm

Then reveal, write the result down and reset:

./roulette.sh reveal
echo "$(date -u +%F) baseline $(./roulette.sh reveal) $(ttm)" >> ttm.log
./roulette.sh stop
A page a few minutes after the fault (the one-hour window has to fill), and a TTM in minutes. The query uses the 5-minute error ratio crossing back under the page threshold of 0.0144, which is roughly when the rate of failures stops, plus up to one 5-minute window. Without a runbook, expect a first attempt to take 15 to 30 minutes, most of it spent working out which of three services and two dependencies is at fault. ttm.log is your measurement record; note who responded and whether they had seen this fault before.

4. Write the runbook. Create runbooks/error-budget-burn.md. Every command is real for this stack; every check has an expected value:

# Runbook: ErrorBudgetBurn (checkout is burning its error budget)

Covers: alert ErrorBudgetBurn, severity page and ticket, slo=checkout-availability or checkout-latency
Owner: checkout on-call      Secondary: the platform on-call
Last tested: <date> by <name> against <fault>, TTM <n> min
Escalate: if users are still hurt 20 minutes after the page, or nothing in step 4 matches, page the secondary.

## 1. What this means (read once, 30 s)
- checkout-availability: more than 1.44% of checkouts failed over both the last hour and the last
  5 minutes (or 0.6% over 6 h and 30 min). At 14.4 times the allowed rate, the 30-day budget is
  gone in about 2 days. Users see HTTP 502 from /checkout.
- checkout-latency: more than 14.4% of checkouts took longer than 500 ms on the same windows.
  Users see a slow checkout, not an error.
- severity=ticket: same, but slower. Work it in hours; do not wake anyone.

## 2. First two minutes
- Acknowledge the page.
- Post in the incident channel: "Investigating ErrorBudgetBurn <slo>. Next update in 15 min."
- Change nothing yet.

## 3. Confirm and size (1 min)
```sh
cd labs/observability
q() { curl -sG localhost:9090/api/v1/query --data-urlencode "query=$1" \
      | jq -r '.data.result[] | "\(.metric | del(.__name__) | to_entries | map("\(.key)=\(.value)") | join(" "))\t\(.value[1])"'; }
q 'slo:sli_error:ratio_rate5m'
```
Expected: two lines, one per slo. Healthy is near 0. Burning is above 0.0144 for that slo.
- Both below 0.0144: the burn has stopped. Go to step 6 and watch for 5 minutes.
- No output at all: Prometheus is not answering or the rules are not loaded. Escalate.

## 4. Locate (2 min)
```sh
q 'sum by (job, route, status) (rate(http_requests_total{status=~"5.."}[2m]))'
docker compose --profile telemetry ps -a --format '{{.Service}} {{.State}}' | sort
```
Read the table top down and take the first row that matches.

| you see | likely cause | go to |
|---|---|---|
| payments is exited or missing; orders /orders 502; no payments rows in the query | payments down | 5a |
| redis is exited; payments /charge 500 | Redis down | 5b |
| db is paused; gateway /checkout 502 only, each request about 15 s | Postgres frozen | 5c |
| all running; payments /charge 500 | payments failing charges | 5d |
| slo=checkout-latency, little or no 5xx | slow dependency | 5e |
| none of these | unknown | escalate now |

## 5. Mitigate
5a. payments down
```sh
docker compose --profile telemetry start payments
```
Expected: `Started`. orders 502s stop within 30 s.

5b. Redis down
```sh
docker compose --profile telemetry start redis
docker compose --profile telemetry restart payments
```
Expected: payments 500s stop within 30 s. Risk: Redis restarts empty, so idempotency keys from
before the outage are gone and a retried charge from that period can be charged twice. Write it
in the incident doc and open a ticket to reconcile charges.

5c. Postgres frozen
```sh
docker compose --profile telemetry unpause db
```
Expected: gateway 502s stop and latency falls within 30 s.

5d. payments failing charges
```sh
docker compose logs --since 5m payments | grep -c 'charge declined by provider'
docker compose exec payments env | grep -E '^(FAULT_|SERVICE_VERSION)'
docker compose --profile telemetry up -d payments
```
Expected: a count above 0 means the provider is declining charges. Any FAULT_ value other than 0,
or a SERVICE_VERSION other than 1.0.0, is a bad config or deploy: the `up -d` rolls payments back
to the .env defaults. If the env is clean and the provider is still declining, escalate.

5e. slow dependency (latency)
```sh
q 'histogram_quantile(0.99, sum by (job, le) (rate(http_request_duration_seconds_bucket{route=~"/checkout|/orders|/charge"}[5m])))'
```
Expected: the deepest service with a p99 above 0.5 s is the slow one. If it is payments, roll back
as in 5d. If it is orders and payments is fast, check db as in 5c, then escalate.

## 6. Verify (5 min)
```sh
q 'slo:sli_error:ratio_rate5m'
```
Expected: below 0.0144 for the slo that paged, and staying there for 5 minutes. Record the time:
that is mitigation. The page itself can keep firing for up to 30 minutes (the 6-hour branch must
drain). Do not wait for it, and do not silence it.

## 7. Escalate
Page the secondary through the paging service with the alert link and what you have tried.
Keep the incident doc updated; hand over ops to them if they ask.

## 8. Before you close
- Write the mitigation time and the TTM in the incident doc.
- Fix anything in this runbook that was wrong or missing, and update "Last tested".

## Do not
- Do not run `docker compose down -v`: it deletes Postgres and Prometheus data.
- Do not `redis-cli flushall`: it deletes idempotency keys and causes double charges on retry.
- Do not restart gateway or orders to "see if it helps": it drops in-flight checkouts and hides the evidence.
A two-page document with one decision table and five mitigations. Read it as the new hire would: every step either is a command to paste, or says which step comes next and on what number. The thresholds are the alert’s own (14.4 × 0.001 = 0.0144), so the runbook and the rule cannot disagree about what “burning” means.

5. Link the runbook from the alert, and keep the tests green. Serve the runbooks directory in a terminal of its own (in production, this is the repository URL of the file):

python3 -m http.server 8088 --directory runbooks

Add a runbook_url annotation under every summary: in the alert rules, and the same line under every summary: in the burn-rate unit tests, because promtool compares annotations exactly. One perl command does both and keeps each line’s indentation:

perl -pi -e 's|^(\s+)(summary: .*\n)|$1$2$1runbook_url: "http://localhost:8088/error-budget-burn.md"\n|' \
  prometheus/rules/slo-alerts.yml prometheus/tests/slo-alerts-test.yml
grep -c runbook_url prometheus/rules/slo-alerts.yml prometheus/tests/slo-alerts-test.yml

Each expected alert in the test file now reads like this:

      - eval_time: 126m
        alertname: ErrorBudgetBurn
        exp_alerts:
          - exp_labels: { severity: page, slo: checkout-availability }
            exp_annotations:
              summary: "checkout-availability is burning error budget fast (2% in 1h or 5% in 6h)"
              runbook_url: "http://localhost:8088/error-budget-burn.md"
          - exp_labels: { severity: ticket, slo: checkout-availability }
            exp_annotations:
              summary: "checkout-availability is burning error budget (10% in 1d or 3d)"
              runbook_url: "http://localhost:8088/error-budget-burn.md"

Check and reload:

docker compose exec prometheus promtool check rules /etc/prometheus/rules/slo-alerts.yml
docker compose exec prometheus promtool test rules /etc/prometheus/tests/slo-alerts-test.yml
curl -s -X POST localhost:9090/-/reload
curl -s localhost:9090/api/v1/rules | jq -r '.data.groups[].rules[] | select(.name=="ErrorBudgetBurn") | "\(.labels.severity)\t\(.annotations.runbook_url)"'
curl -sI localhost:8088/error-budget-burn.md | head -1
grep counts 2 in the rules and 14 in the tests. SUCCESS: 2 rules found, then SUCCESS for the unit tests, then both severities with the URL, then HTTP/1.0 200 OK. Had you edited only the rules file, the tests would fail on every expected alert, because the actual annotations would carry a runbook_url that exp_annotations does not. The link is now part of what the test asserts, so deleting it later fails CI too. Since both rules carry the same URL, Alertmanager also puts it in the notification’s commonAnnotations, which is what the pager prints.

6. Measure again, with the runbook. Ideally a different person responds, someone who has not seen the faults, with only the link in the page. Run the picker as in step 3:

./roulette.sh start
# responder: wait for the /page line, note its timestamp, open its runbook= link, follow it
PAGED=...      # from the /page line
ttm
echo "$(date -u +%F) runbook $(./roulette.sh reveal) $(ttm)" >> ttm.log
./roulette.sh stop
cat ttm.log
The /page line now ends runbook=http://localhost:8088/error-budget-burn.md. With the runbook, expect 6 to 10 minutes from a responder who has never seen the fault: one confirm query, one locate query, one table row, one command. About 5 of those minutes are the measurement’s own floor: after a total failure the 5-minute error ratio needs nearly a full window of clean checkouts to fall under 0.0144, however fast the fix. Repeat until you have hit at least three of the four faults; any step where the responder hesitated, asked, or typed something not in the runbook is a defect to fix before you call the runbook done. A common one: in the db-frozen case the ps output says paused, which is easy to read past, so the table row puts it first.

7. Read the fatigue numbers. After an hour of these exercises, measure the pager the way the chapter describes:

# notifications per receiver, from the pager log
docker compose logs --no-log-prefix pager | awk '$3=="firing"{print $2}' | sort | uniq -c
# minutes each alert spent firing over the last day (5 s evaluation interval)
curl -sG localhost:9090/api/v1/query --data-urlencode \
  'query=sort_desc(sum by (alertname, severity) (count_over_time(ALERTS{alertstate="firing"}[1d])) * 5 / 60)' \
  | jq -r '.data.result[] | "\(.value[1] | tonumber | floor) min\t\(.metric.severity)\t\(.metric.alertname)"'
# notifications Alertmanager sent, per integration
curl -sG localhost:9090/api/v1/query --data-urlencode \
  'query=sum by (integration) (increase(alertmanager_notifications_total[1d]))' \
  | jq -r '.data.result[] | "\(.metric.integration)\t\(.value[1])"'
A handful of /page notifications, one per exercise plus any repeats while a fault ran past the page route’s one-hour repeat_interval. ErrorBudgetBurn dominates firing minutes, page and ticket both, because the ticket’s long windows keep it up for hours after each burst, which is why the ticket route repeats only daily. Every notification went through the webhook integration, so Alertmanager’s own counter cannot split pages from tickets here: in production, pages and tickets use different integrations, and the paging service reports acknowledgement times and how many pages resolved on their own. Write the counts for this shift in the handoff note.

8. Write the handoff. Create oncall/handoff.md and fill it for the shift you ran:

# Handoff: <outgoing> to <incoming>, <date> <time> UTC

## Open incidents
- none / <link, state, next action, owner>

## Pages this shift
| time (UTC) | alert | actionable? | runbook followed? | TTM | runbook changed? |
|---|---|---|---|---|---|

## Silences in place
| matchers | set by | expires | why |
|---|---|---|---|

## Changes in flight
- deploys, migrations, maintenance in the next shift

## Watch
- anything that nearly paged, anything you would check first
curl -s localhost:9093/api/v2/silences | jq -r '.[] | select(.status.state=="active") | "\(.createdBy)\t\(.endsAt)\t\(.comment)"'
A one-screen note. The curl lists active silences for the silences table; after this lab it should print nothing. If it prints a silence you did not mean to leave, that is the most valuable line in the handoff.
Introduce runbook rot. In step 4 of the runbook, change status=~"5.." to status=~"5xx", a plausible edit by someone who thinks in status classes. Run ./roulette.sh start with a responder who follows the runbook literally. The locate query returns nothing; nothing in the table matches “no 5xx rows” except the latency row, so the responder heads to 5e or escalates while checkouts fail. Nothing told them the query was wrong, because an empty PromQL result looks like a healthy system. Fix it, and add a line under the query: “No output while step 3 shows a burn means this query is broken: escalate.” Then add a CI check that runs every query in the runbook against Prometheus and fails on a parse error, which catches some rot, though not this one. Only execution catches all of it.
DECIDE

Half of last quarter's ErrorBudgetBurn pages were payments failing after a bad config push, and the runbook's fix was the same every time: roll payments back to the previous version, which took the on-call 6 to 10 minutes including diagnosis. The team has a week to spend on on-call. What do you do with it?

READING
  1. BOOK
    The Site Reliability Workbook, chapter 8: On-Call Google SRE, edited by Betsy Beyer et al., 2018

    The practical companion to this chapter: shift lengths, handoffs, pager load as a 21-day trailing average, playbooks updated on every page, and case studies of a new team ramping up and a team in overload. Read: the Google and Evernote case studies, then 'Scenario: A team in overload'.

  2. BOOK
    Site Reliability Engineering, chapter 11: Being On-Call Andrea Spadaccini, edited by Kavita Guliani, 2016

    Where the numbers come from: 25% on call, eight engineers single-site and six per site dual-site, two incidents per 12-hour shift, 5 and 30 minute response targets, and the argument for measuring operational overload. Read: the whole chapter; it is short.

  3. DOC
    PagerDuty Incident Response: Being On-Call

    A company's own on-call policy, published: what the on-call is and is not responsible for, a 5-minute escalation timeout, always a backup schedule, and the whole team as the third level. Skip the PagerDuty app setup.

  4. POST
    Summary of the Amazon S3 Service Disruption in the Northern Virginia (US-EAST-1) Region Amazon Web Services, 2017

    The incident behind the Why: a playbook step with a mistyped input, and fixes that moved the guard rail from the document into the tool. Read the first four paragraphs and the list of changes.

  5. DOC
    Prometheus: Alerting rules

    Annotations and their templating ($labels, $value), for and keep_firing_for, and the synthetic ALERTS series the fatigue query counts. Ten minutes.

  6. POST
    My Philosophy on Alerting Rob Ewaschuk

    Its sections on playbooks and on tracking and reducing pages are the short version of this chapter's argument; read them after the alert-design chapter's pass through the rest.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Synthetic monitoring and black-box probes →