Course map

Topic 206 / Core

Root cause analysis and postmortems

Chapter 12.6 · Incidents and Readiness

What and why

Incident response (→ 205) stops at mitigation deliberately; the full diagnosis happens afterward, in a postmortem — a written record of what happened, why, and what will change, built to be blameless: the goal is information about the system, not a verdict about a person. Root cause analysis is the diagnostic work the postmortem documents, and it almost always finds several contributing factors that had to align, not one single cause. Builds on: → 205 (incident management and response).

Diagram

Postmortem template:

Section Purpose
Timeline first signal to full resolution, with timestamps
Impact concrete, measured scope (duration, requests affected, error budget consumed → 204)
Contributing factors the chain of conditions that had to align — plural, rarely singular
Action items each with a named owner and a target date
What went well what limited the damage or sped the response, kept too

How it works

  1. Reconstruct the timeline from logs, traces, and alerts (→ 201), not memory — write it as soon as possible after resolution, while the evidence is still fresh and available.
  2. State impact in measured terms: duration, requests or users affected, and how much error budget (→ 204) the incident actually consumed.
  3. List contributing factors as a chain, not a single cause — a config gap, a skipped canary stage, and a missing alert are each individually necessary but none alone sufficient; naming all of them finds more fixable gaps than naming one.
  4. Write action items that are specific, each with a named owner and a target date — an item with no owner is a wish, not a commitment.
  5. Review and write blamelessly: describe actions and conditions ("the deploy skipped canary because the pipeline allowed it"), never individual fault ("X deployed without checking") — blame makes the next incident's information harder to get, because people start hiding it.

Practical example

(illustrative, continuing → 204's arithmetic). Timeline: 14:02 alert fires, 14:05 on-call acknowledges, 14:10 root config identified, 14:14 rollback deployed, 14:16 error rate normal. Impact: 14 minutes at a 40% error rate, consuming 14 × 0.4 = 5.6 minutes of error budget. Contributing factors: (1) a config-validation gap let a bad value through, (2) the canary deployment stage was skipped under time pressure, (3) no alert existed on the specific metric the bad config broke until this incident. Three action items follow, each with a named owner and a date — for instance, adding the missing validation check, re-enabling the canary gate, and adding the missing alert.

When to use it

  • Use for every incident above a defined severity threshold — even ones that "resolved themselves" quickly still had a cause worth finding before it recurs at a worse time.
  • Avoid stopping at "human error" as the root cause — it's rarely actionable and almost always hides a systemic, fixable gap (a missing validation, a skipped safeguard) one level down.
  • Failure scenarios: action items with no owner, never completed, guaranteeing a repeat incident; a blame-focused writeup that teaches people to hide information in the next incident instead of sharing it; a postmortem written days later from memory, missing details logs and traces (→ 201) would have preserved exactly.
  • Simpler alternative: for a very minor, low-severity incident, a short informal note (what happened, one action item, one owner) may satisfy the same purpose without the full template — reserve the full template for incidents that actually burned meaningful budget (→ 204) or user trust.

Practice

(process kind — fill the template; 20–30 min). Using the practical example's incident (or a real one you've experienced), write a complete postmortem following the template above: timeline, impact (with error-budget minutes computed, not estimated), at least two contributing factors, and 2–3 action items each with a named owner and a date. Done when someone who wasn't present during the incident can read it and understand exactly what happened and what will change, without needing to ask who was responsible.

Key takeaway

A postmortem is a blameless, written record — timeline, measured impact, plural contributing factors, owned action items — that turns an incident into a fixed gap instead of a repeat. Done when you can: write a postmortem whose impact section computes error-budget minutes exactly and whose every action item has a named owner and date. Used next in → 207 (production readiness, where open action items are tracked as launch-blocking gaps).

References

Site Reliability Engineering, 2nd edition — see references.md.

Source directory

Search the guide