SENIORPROJECTCHAPTER 25

Project: on-call ready

Put the module together: SLOs, burn-rate pages, routing, runbooks, a dashboard and probes for the demo app, checked by a script, then a game day where you do not know the fault

240 MINOBSERVABILITYUPDATED 2026-11-02

The brief

You are taking over the demo app’s checkout as its first on-call engineer. By the end, the stack in labs/observability meets this definition of ready, and a script you write in step 1 proves it:

  1. Two SLOs, recorded in prometheus/rules/slo.yml: checkout-availability (99.9%, gateway 5xx) and checkout-latency (99% under 500 ms), with unit tests in prometheus/tests/slo-test.yml that pass.
  2. Burn-rate alerts in prometheus/rules/slo-alerts.yml: ErrorBudgetBurn at severity: page and severity: ticket, tested by prometheus/tests/slo-alerts-test.yml.
  3. The holes covered. GatewayDown and the five ticket rules from the alert audit in prometheus/rules/alerts.yml; CheckoutProbeFailing, IdempotencyBroken and SyntheticProbeStale in prometheus/rules/synthetic.yml, fed by the blackbox exporter and the multi-step synthetic checkout.
  4. Every alert routable and documented. Each alerting rule has severity of page or ticket, which alertmanager/alertmanager.yml routes to the page or ticket receiver, and a runbook_url that resolves to a file under runbooks/.
  5. One incident, one page. Inhibition rules so a frozen gateway pages once, not three times, and a fast burn does not also open a ticket.
  6. A dashboard that answers the first question of every runbook: grafana/dashboards/on-call.json, uid on-call, at least six panels.
  7. A rota page at oncall/README.md: who is on call, how to escalate, where every piece above lives, and the known blind spots.
  8. A game day passed: at least two rounds with a fault you did not pick, from an extended fault list that includes faults that should page, faults that should only open a ticket, and one that should page through a probe alone.

None of this needs new technology. Most of it exists in the files you wrote in this module’s labs; the gaps are in the joins. If you skipped a lab, the inventory below names the chapter whose steps create the file. Work from that chapter’s lab and keep its file names, because the check script and the game day expect them.

file from what it holds
prometheus/rules/slo.yml, prometheus/tests/slo-test.yml slis-slos-error-budgets, steps 3 and 4 20 recording rules, slo label on every series
prometheus/rules/slo-alerts.yml, prometheus/tests/slo-alerts-test.yml burn-rate-alerts, steps 2 and 3 ErrorBudgetBurn page and ticket, five test cases
alertmanager/alertmanager.yml, pager/pager.py, the alertmanager and pager services alert-design, steps 2 to 4 routing on severity, the stand-in pager on port 9099
prometheus/rules/alerts.yml alert-design, step 8 GatewayDown and five tickets
runbooks/error-budget-burn.md, ttm() runbooks-and-on-call, steps 3 to 5 the page runbook, served on port 8088
blackbox/blackbox.yml, synthetic/checkout_probe.py, prometheus/rules/synthetic.yml, the blackbox and synthetic services synthetic-monitoring, steps 2 to 4 and 8 probes as user 999, three alerts
gameday.sh, incidents/live.md incidents-and-postmortems, steps 1 and 2 the fault picker, the incident document
critical_path.py debugging-with-traces, step 4 self time on the critical path of one trace

How you will be judged

The game day is the exam, but most of the marks are earned before it. A setup that pages correctly for every fault and has a runbook row for each scores well even if the responder is slow; a fast responder on a setup that paged three times for one fault, or paged at all for the N+1 regression, does not. The rubric at the end of the lab weights the joins.

Work in two roles if you can: a builder who does steps 1 to 7, and a facilitator who has not seen the runbooks and runs step 8 against them. Alone, you are both; the fault picker’s randomness and delay keep it honest enough.

Two pieces of the module’s advice to keep in mind. Pages are for symptoms users feel, and the SLOs are the definition of what users feel; anything else is a ticket or a panel. And a runbook is tested by execution: until someone who did not write it has followed it against a real fault, it is a draft.

LAB Make the demo app on-call ready, then pass a surprise game day LONG · ~240 MIN
YOU NEEDDocker Desktop or Docker Engine with Compose v2 and about 6 GB of RAM freethe ATLAS repo cloned, working in labs/observability, with the files from this module's labs (see the inventory above)curl, jq, perl and Python 3.10+ on the hosta browser for Grafana on localhost:3000ideally a second person to act as facilitator for step 8

1. Write the readiness check first. It turns the brief into a list of failures, which is your to-do list. Save as labs/observability/oncall-check.sh and chmod +x oncall-check.sh:

#!/usr/bin/env bash
# On-call readiness check for the demo app. One line per item; exits 1 if anything fails.
set -uo pipefail
cd "$(dirname "$0")"
fails=0
ok()  { printf '  ok    %s\n' "$*"; }
bad() { printf '  FAIL  %s\n' "$*"; fails=$((fails + 1)); }
val() { curl -sG localhost:9090/api/v1/query --data-urlencode "query=$1" | jq -r '.data.result[0].value[1] // "none"'; }
DC="docker compose --profile telemetry"

echo "files"
for f in prometheus/rules/slo.yml prometheus/rules/slo-alerts.yml prometheus/rules/alerts.yml \
         prometheus/rules/synthetic.yml prometheus/tests/slo-test.yml prometheus/tests/slo-alerts-test.yml \
         alertmanager/alertmanager.yml blackbox/blackbox.yml synthetic/checkout_probe.py \
         grafana/dashboards/on-call.json oncall/README.md gameday.sh; do
  [ -f "$f" ] && ok "$f" || bad "$f is missing"
done

echo "services"
running=$($DC ps --format '{{.Service}} {{.State}}')
for s in gateway orders payments prometheus alertmanager pager blackbox synthetic grafana loki tempo; do
  grep -qx "$s running" <<<"$running" && ok "$s running" || bad "$s is not running"
done
[ "$(curl -s -o /dev/null -w '%{http_code}' localhost:8088/)" = 200 ] && ok "runbook server on :8088" \
  || bad "runbook server not answering: python3 -m http.server 8088 --directory runbooks"

echo "rules"
$DC exec -T prometheus promtool test rules /etc/prometheus/tests/slo-test.yml /etc/prometheus/tests/slo-alerts-test.yml \
  >/dev/null 2>&1 && ok "promtool unit tests pass" || bad "promtool unit tests fail: run them by hand to see which"
rules=$(curl -s localhost:9090/api/v1/rules)
broken=$(jq -r '[.data.groups[].rules[] | select(.health != "ok") | .name] | unique | join(", ")' <<<"$rules")
[ -z "$broken" ] && ok "every rule evaluates" || bad "rules failing to evaluate: $broken"
[ "$(val 'count(slo:sli_error:ratio_rate5m)')" = 2 ] && ok "both SLIs recorded" || bad "slo:sli_error:ratio_rate5m should have 2 series"
[ "$(val 'min(probe_success)')" = 1 ] && ok "blackbox probes passing" || bad "a blackbox probe is failing or missing"
[ "$(val 'min(synthetic_step_success)')" = 1 ] && ok "synthetic steps passing" || bad "a synthetic step is failing or missing"
[ "$(val 'count(ALERTS{alertstate="firing",severity="page"})')" = none ] && ok "no page firing at baseline" \
  || bad "a page is firing now: fix the system or the rule before you go on call"

echo "alerts: severity, routing, runbook"
[ "$(curl -s localhost:9090/api/v1/alertmanagers | jq '.data.activeAlertmanagers | length')" -ge 1 ] \
  && ok "Prometheus sends to Alertmanager" || bad "Prometheus has no active Alertmanager"
$DC exec -T alertmanager amtool check-config /etc/alertmanager/alertmanager.yml >/dev/null 2>&1 \
  && ok "alertmanager.yml valid" || bad "amtool check-config fails"
while IFS=$'\t' read -r name sev url; do
  case "$sev" in page|ticket) ;; *) bad "$name: severity '$sev' is not page or ticket"; continue ;; esac
  $DC exec -T alertmanager amtool config routes test --config.file=/etc/alertmanager/alertmanager.yml \
    --verify.receivers="$sev" alertname="$name" severity="$sev" >/dev/null 2>&1 \
    || bad "$name ($sev) does not route to the $sev receiver"
  if [ "$url" = "-" ]; then bad "$name ($sev) has no runbook_url"; continue; fi
  file="runbooks/${url##*/}"; file="${file%%#*}"
  [ -f "$file" ] && ok "$name ($sev) -> $file" || bad "$name: runbook_url points at $file, which does not exist"
done < <(jq -r '.data.groups[].rules[] | select(.type == "alerting")
           | [.name, (.labels.severity // "-"), (.annotations.runbook_url // "-")] | @tsv' <<<"$rules" | sort -u)
for pair in "GatewayDown:CheckoutProbeFailing" "ErrorBudgetBurn:ErrorBudgetBurn"; do
  grep -q "${pair%%:*}" alertmanager/alertmanager.yml && grep -A3 'source_matchers' alertmanager/alertmanager.yml \
    | grep -q "${pair##*:}" && ok "inhibit rule mentions $pair" || bad "no inhibit rule for $pair"
done

echo "dashboard"
panels=$(curl -s -u admin:admin localhost:3000/api/dashboards/uid/on-call | jq '.dashboard.panels | length' 2>/dev/null)
[ "${panels:-0}" -ge 6 ] && ok "on-call dashboard has $panels panels" || bad "dashboard uid on-call missing or under 6 panels"

echo
if [ "$fails" -eq 0 ]; then echo "ON-CALL READY"; else echo "$fails item(s) to fix"; exit 1; fi

Run it against the stack as your earlier labs left it:

cd labs/observability
docker compose --profile telemetry up -d
./oncall-check.sh
A list with FAIL lines. Typical for someone who did every lab: the dashboard, oncall/README.md and the runbook server missing; GatewayDown, the five tickets and the three synthetic alerts with no runbook_url; and no inhibit rule for GatewayDown:CheckoutProbeFailing. If whole files are missing, go back to the chapter named in the inventory and do those steps first. Each amtool config routes test call takes about a second, so the alerts section takes ten to fifteen seconds.

2. Prove the SLO layer before you build on it.

docker compose exec prometheus promtool test rules /etc/prometheus/tests/slo-test.yml /etc/prometheus/tests/slo-alerts-test.yml
q() { curl -sG localhost:9090/api/v1/query --data-urlencode "query=$1" | jq -r '.data.result[] | "\(.metric.slo // .metric.alertname)\t\(.value[1])"'; }
q 'slo:error_budget_remaining:ratio'
q 'slo:sli_error:ratio_rate1h / on(slo) slo:error_budget:ratio'
SUCCESS for both test files, each listing its rule files. Budget remaining per SLO (whatever earlier labs spent; it can be negative in a young stack, which is fine for the exercise), and a 1-hour burn rate near 0 for both SLOs at baseline. If either burn rate is above 1 with no fault running, the latency SLO is usually the reason: a fault flag left in .env. Clear every FAULT_ line from .env and run docker compose --profile telemetry up -d.

3. Give every alert a runbook. runbooks/error-budget-burn.md exists. Write the rest, using the same anatomy (what it means, first two minutes, confirm, locate, mitigate, verify, escalate, do not):

  • runbooks/gateway-down.md for GatewayDown: confirm with docker compose --profile telemetry ps gateway and curl -m 3 localhost:8080/health; the states to tell apart are exited, paused and running-but-hung; mitigation is start, unpause or restart; verify on up{job="gateway"} and probe_success.
  • runbooks/checkout-probe-failing.md for CheckoutProbeFailing: first check whether GatewayDown or ErrorBudgetBurn is also firing (then follow that runbook); otherwise the probe’s own debug=true view from the synthetic chapter, then {service_name="gateway"} |= "canonical" | user="999" in Loki for the probe’s own requests.
  • runbooks/idempotency-broken.md for IdempotencyBroken: this one is money. Confirm with docker compose exec redis redis-cli dbsize and keys 'charge:order-*' | head; the decision is whether to stop charging (scale payments to zero, docker compose --profile telemetry stop payments) while you find out why stored keys vanished; escalation is to whoever owns payments, immediately.
  • runbooks/tickets.md with one ## section per ticket alert (ServiceCrashLooping, OrdersTooManyStatements, CollectorExportFailing, RuleEvaluationFailing, AlertmanagerNotificationsFailing, SyntheticProbeStale), each with the query that confirms it and who owns the fix.

Then add runbook_url annotations. The runbooks chapter’s perl command handled slo-alerts.yml; for the other two files, add a line under each rule’s summary: by hand, for example:

        annotations:
          summary: "Prometheus cannot scrape the gateway: checkout is probably unreachable"
          runbook_url: "http://localhost:8088/gateway-down.md"

Ticket rules point at a section: "http://localhost:8088/tickets.md#orderstoomanystatements". Start the runbook server in a terminal of its own and reload Prometheus:

python3 -m http.server 8088 --directory runbooks
docker compose exec prometheus promtool check rules /etc/prometheus/rules/alerts.yml /etc/prometheus/rules/synthetic.yml
curl -s -X POST localhost:9090/-/reload
./oncall-check.sh | grep -E 'runbook|FAIL'
SUCCESS for both files and one ok ... -> runbooks/<file>.md line per alerting rule, eleven in all. ErrorBudgetBurn appears twice (page and ticket), both pointing at error-budget-burn.md. The anchor after # is not checked by the script; check one by opening it in a browser.

4. One incident, one page. Freeze the gateway for three minutes and count pages:

In a second terminal, follow the pager with docker compose logs -f --no-log-prefix --since 1m pager. Then:

docker compose --profile telemetry pause gateway
sleep 240
docker compose --profile telemetry unpause gateway
Two /page lines within a minute of each other, names=GatewayDown and names=CheckoutProbeFailing, for one fault. ErrorBudgetBurn stays silent: a frozen gateway exports nothing, so the SLI has no samples, which is the hole these two alerts exist to cover. Two pages for one incident is the join to fix.

Add an inhibition to alertmanager/alertmanager.yml, after the existing entries under inhibit_rules::

  # The gateway is not answering scrapes: the checkout probe failing is the same incident.
  - source_matchers: ['alertname="GatewayDown"']
    target_matchers: ['alertname="CheckoutProbeFailing"']

No equal: list: the probe’s instance is a URL and the gateway’s is gateway:8080, so there is no shared label to match on, and in this one-gateway stack any GatewayDown explains any failed checkout probe. Reload and repeat the freeze:

docker compose exec alertmanager amtool check-config /etc/alertmanager/alertmanager.yml
curl -s -X POST localhost:9093/-/reload
docker compose --profile telemetry pause gateway; sleep 240; docker compose --profile telemetry unpause gateway
This time it depends on which fires first. CheckoutProbeFailing needs four failed 15-second probes plus its 1-minute for:, about two minutes; GatewayDown needs a 2-minute for: after the first failed scrape. If the probe alert wins the race, its page goes out before the inhibition exists and you still get two. Fix the race in the rule rather than the routing: raise CheckoutProbeFailing’s for: to 2m, so GatewayDown is always firing first when both are true, and repeat. One /page line, GatewayDown. In the Alertmanager UI the probe alert shows as suppressed. A probe that fails while the gateway is up still pages on its own, which is what it is for.

5. Build the on-call dashboard. Start from this file, grafana/dashboards/on-call.json, which has three of the panels:

{
  "uid": "on-call",
  "title": "on-call: checkout",
  "schemaVersion": 39,
  "time": { "from": "now-3h", "to": "now" },
  "refresh": "30s",
  "panels": [
    {
      "type": "stat", "title": "Error budget remaining (30d window)",
      "gridPos": { "x": 0, "y": 0, "w": 8, "h": 6 },
      "datasource": { "type": "prometheus", "uid": "prometheus" },
      "fieldConfig": { "defaults": { "unit": "percentunit", "decimals": 1 } },
      "targets": [ { "refId": "A", "expr": "slo:error_budget_remaining:ratio", "legendFormat": "{{slo}}" } ]
    },
    {
      "type": "timeseries", "title": "Burn rate (page line at 14.4)",
      "gridPos": { "x": 8, "y": 0, "w": 16, "h": 6 },
      "datasource": { "type": "prometheus", "uid": "prometheus" },
      "targets": [
        { "refId": "A", "expr": "slo:sli_error:ratio_rate1h / on(slo) slo:error_budget:ratio", "legendFormat": "{{slo}} 1h" },
        { "refId": "B", "expr": "slo:sli_error:ratio_rate5m / on(slo) slo:error_budget:ratio", "legendFormat": "{{slo}} 5m" }
      ]
    },
    {
      "type": "table", "title": "Firing alerts",
      "gridPos": { "x": 0, "y": 6, "w": 24, "h": 6 },
      "datasource": { "type": "prometheus", "uid": "prometheus" },
      "targets": [ { "refId": "A", "expr": "ALERTS{alertstate=\"firing\"}", "instant": true, "format": "table" } ]
    }
  ]
}

Add at least three more, each answering a question a runbook asks in its first five minutes. Which service is returning errors (sum by (job, status) (rate(http_requests_total{status=~"5.."}[1m])))? Is the edge answering from outside (probe_success and synthetic_step_success)? Which version is each service on (count by (job, service_version) (http_server_request_duration_seconds_count))? Is checkout slow, and where (gateway p99 with exemplars turned on, from the debugging-with-traces lab)? Is a dependency down (up for each job)? Then link it from every runbook’s first section.

sleep 15
curl -s -u admin:admin localhost:3000/api/dashboards/uid/on-call | jq '{title: .dashboard.title, panels: [.dashboard.panels[].title]}'
The title and six or more panel titles. In Grafana the dashboard is in the ATLAS lab folder. At baseline: budget stats unchanged, burn rates near zero, the alerts table empty. The test of the dashboard is in step 8: did the responder open it and get the answer from it?

6. Write the rota page. oncall/README.md holds what a new person needs on their first shift:

# Checkout on-call

Primary: <name>     Secondary: <name>     Rotation: weekly, handover Monday 10:00 UTC
Escalation: primary 5 min -> secondary 5 min -> payments owner (<name>) for anything with money in it

## Where things are
- Pager: `docker compose logs -f --no-log-prefix pager` (stands in for the paging service)
- Dashboard: http://localhost:3000/d/on-call
- Runbooks: http://localhost:8088/ (source: labs/observability/runbooks/)
- SLOs: prometheus/rules/slo.yml; pages: slo-alerts.yml, alerts.yml, synthetic.yml; routing: alertmanager/alertmanager.yml
- Readiness: ./oncall-check.sh must print ON-CALL READY before a shift starts

## What pages, and what does not
| alert | severity | means |
|---|---|---|

## Known blind spots
-

Fill the alerts table from curl -s localhost:9090/api/v1/rules. For blind spots, write down at least: Prometheus itself being down (nothing evaluates any rule; the synthetic chapter’s break), Alertmanager or the pager being down (AlertmanagerNotificationsFailing cannot deliver through a dead integration), and anything that does not touch checkout.

A one-page document with eleven alert rows: four pages (ErrorBudgetBurn, GatewayDown, CheckoutProbeFailing, IdempotencyBroken) and seven tickets. Writing the blind spots down is the point: a dead-man’s switch for the alerting path is the observing-the-platform chapter in module four, and naming the hole now is what makes it someone’s job.

7. Run the check until it passes.

./oncall-check.sh
Every line ok and ON-CALL READY at the end. Commit-worthy: in a real team this script runs in CI against a staging stack, and a FAIL blocks the change that caused it.

8. The surprise game day. The facilitator (or you, without looking too hard) extends the incidents chapter’s gameday.sh. Replace its FAULTS=(...) line with:

FAULTS=(slow-payments payment-errors bad-deploy redis-down db-frozen payments-crash gateway-frozen n-plus-one redis-flushed)

add three cases inside inject(), after payments-crash):

    gateway-frozen) $DC pause gateway ;;
    n-plus-one)     FAULT_N_PLUS_ONE=1 $DC up -d orders ;;
    redis-flushed)  $DC exec -T redis redis-cli FLUSHALL ;;

and in stop), replace the $DC unpause db 2>/dev/null || true line with two:

    $DC unpause db 2>/dev/null || true
    $DC unpause gateway 2>/dev/null || true

The responder sets up the incident document from the incidents chapter (incidents/live.md), opens the pager log and the on-call dashboard, and is allowed only what production would give them: the pager, the runbooks, Grafana, Prometheus, Loki, Tempo and docker compose ps. No reading gameday.sh, .gameday/, .env or docker inspect. Then:

./gameday.sh start

Each round lasts until the responder declares the incident resolved, or 45 minutes with no page (some faults should never page). For each round, record in oncall/gameday-score.md:

| round | first page (UTC) | alert(s) and receiver | runbook followed | mitigated (UTC, from ttm) | resolved | fault named | reveal |
|---|---|---|---|---|---|---|---|

Close each round with ./gameday.sh reveal, compute time-to-page from .gameday/injected_at to the first /page line, and reset with ./gameday.sh stop. Run at least two rounds; three if the first two drew the same kind of fault.

Each fault has an expected response, and the rubric scores against it. Most draws page through ErrorBudgetBurn within 2 to 30 minutes depending on how fast they burn; one pages through GatewayDown alone; one pages through IdempotencyBroken alone, with every SLO green; one should not page at all and must produce a /ticket line about 40 minutes in. The table in the solution notes lists each. If a round pages twice for one fault, or pages for the fault that should only ticket, that is a finding for step 9 regardless of how fast the responder was.

9. Postmortem and one fix. For the worst round, write a postmortem with the incidents chapter’s template (incidents/postmortem-template.md) and fix the single action item with the biggest effect on the next round: a runbook row, an inhibition, a dashboard panel, a for: duration. Re-run ./oncall-check.sh, then one more game-day round to show the fix.

A postmortem whose timeline is built from telemetry (pager log, ALERTS series, the SLI over time), whose contributing factors are about the setup rather than the responder, and one merged change. The final round’s score is your submission’s headline number.
Rename the burn-rate alert: in prometheus/rules/slo-alerts.yml change both alert: ErrorBudgetBurn lines to alert: CheckoutBudgetBurn, a plausible tidy-up, and reload. Run ./oncall-check.sh: it passes, because the new name still has a severity that routes, and still carries its runbook_url. Now run a payment-errors round. The page arrives, and the ticket for the same SLO arrives too: both inhibit rules from the alert-design chapter match on alertname="ErrorBudgetBurn", which no longer exists, so suppression silently stopped. The unit tests fail (they assert the old name), which is the only thing that would have caught it in CI. Add a line to oncall-check.sh that fails when an alertname mentioned in alertmanager.yml has no rule, then put the name back.

Rubric

100 points. Submit the labs/observability files listed in the brief, the output of ./oncall-check.sh, oncall/gameday-score.md and the postmortem.

area points full marks
SLOs and burn-rate alerts 15 both unit-test files pass; the two SLOs as specified; ErrorBudgetBurn page and ticket unchanged from the burn-rate chapter or changed with a reason and updated tests
coverage of the holes 10 GatewayDown and the probe alerts present; the README’s blind-spot list names at least Prometheus, Alertmanager and the pager
routing and inhibition 15 every alert routes to page or ticket (script passes); a frozen gateway produces one page; a fast burn produces no ticket while the page fires
runbooks 15 one per page alert and a section per ticket alert; every command runs on this stack; each has an expected value per check and an escalation line
dashboard 10 six or more panels, each answering a question a runbook asks; linked from the runbooks
rota page 5 rota, escalation path, where things are, alerts table matching the rules
game day: alerting 15 for each round, the expected alert fired through the expected receiver and nothing else did; the N+1 round produced a ticket and no page
game day: response 10 incident document kept (declaration, timeline, updates); mitigation within 15 minutes of the page for paging faults; fault named or the gap written down
postmortem and fix 5 blameless, timeline from telemetry, one change made and re-tested
Solution notes: what each fault should do

Times are from injection with at least an hour of clean history, at the default 5 requests per second. A young stack pages sooner, because the long windows hold less clean data to dilute the burn.

fault what the user sees expected alert(s) roughly when runbook path mitigation
slow-payments (30% of charges 1.5 to 3 s) 30% of checkouts slow ErrorBudgetBurn page, slo="checkout-latency" (burn rate 30) about 30 min (the 1 h branch needs 0.3 × t / 60 min ≥ 0.144) error-budget-burn: latency row; TraceQL { span.fault.slow_delay_s > 0 } or the critical-path script points at payments docker compose --profile telemetry up -d payments (back to .env defaults)
payment-errors (8%) 8% of checkouts fail ErrorBudgetBurn page, availability (burn rate 80) about 11 min errors only on payments /charge, provider message in logs recreate payments
bad-deploy (1.1.0, 3% errors) 3% fail ErrorBudgetBurn page, availability (burn rate 30) about 30 min errors start with service_version="1.1.0" on payments roll back: recreate payments with .env defaults
redis-down every checkout fails ErrorBudgetBurn page, availability 1 to 2 min payments 500s with Redis connection errors; ps shows redis exited docker compose --profile telemetry start redis
db-frozen every checkout hangs 15 s then fails ErrorBudgetBurn page for both SLOs, grouped as two notifications (group_by: [alertname, slo]) 1 to 3 min gateway 502 after about 15 s; ps shows db paused docker compose --profile telemetry unpause db
payments-crash every checkout fails fast ErrorBudgetBurn page, availability 1 to 2 min orders payments unreachable; ps shows payments exited start payments
gateway-frozen checkout unreachable GatewayDown page only; CheckoutProbeFailing suppressed 2 to 3 min gateway-down: paused unpause gateway
n-plus-one nothing measurable OrdersTooManyStatements ticket only; no page about 40 min (15 m rate, then for: 30m) tickets.md; db_client_operations_total per order rises from 3 to about 5 next working day: turn the flag off, then the code review
redis-flushed nothing yet; the next retried charge is charged twice IdempotencyBroken page; SLOs green within one probe interval, 15 to 30 s idempotency-broken: dbsize near zero stop the bleeding (stop payments or block retries), find out why keys vanished; restoring Redis is a data question, escalate

Common gaps the game day exposes:

  • Two pages for db-frozen. One per SLO, because the routing groups by slo. Defensible (two promises are broken) or not (one incident). Either keep it and say so in the runbook, or add an inhibition that lets the availability page mute the latency page; the rubric accepts both with a reason.
  • Paging on n-plus-one. Someone added a page rule on statements per order. That is a cause; the alert-design chapter made it a ticket on purpose.
  • redis-flushed dismissed because every dashboard is green. The probe is the only witness; the runbook must say that green SLOs do not make this a false alarm.
  • slow-payments mitigated by restarting gateway. The page names checkout-latency; the trace names payments. The fix is a runbook step that opens one slow exemplar and runs the critical-path script, before any restart.
  • Time-to-page counted as response time. A 30-minute page on a 3% fault is the design (it is a slow burn); score the responder from the page, and judge the 30 minutes in the alerting rubric line instead.

A passing oncall-check.sh with the inhibition and runbooks in place, and a game day where every round matched the table’s alert column, scores 85 or more before the response and postmortem lines.

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.