Postmortems and learning from incidents

Intermediate · 16 min

Write a blameless postmortem that changes something: a timeline, impact in numbers, contributing factors instead of one root cause, and owned actions.

Before thisOn-call and incident responseFlow, feedback and continuous learning

Open conf · 16 min

Postmortems and learning from incidents

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by Open confReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • A postmortem exists to change the system so the same class of failure is less likely or less harmful, not to record who made a mistake.
  • Blameless means you assume people acted reasonably given what they knew and the tools they had, and ask why the system let a reasonable action cause harm.
  • Build the document from the incident timeline, and state the impact in numbers: duration, users or requests affected, and error budget spent.
  • Real incidents rarely have one root cause. List the contributing factors, including what made detection or mitigation slow.
  • Action items need an owner, a priority and a ticket. A postmortem whose actions are never done will be written again for the next incident.

The problem: the same outage, twice

The incident is over, service is back, everyone is tired. The easy thing is to move on. Six weeks later the same failure happens again, handled by a different engineer who has never heard of the first one.

A postmortem (also called an incident review or retrospective) is a written analysis that turns one bad afternoon into lasting changes. It is the “continuous learning” part of flow, feedback and learning, done right after the system has taught you something expensive.

Blameless, and why it isn’t soft

The first rule is that the postmortem is blameless. That does not mean nobody is accountable. It means you assume everyone acted reasonably given what they knew, the time they had and the tools in front of them, and ask why the system let a reasonable action cause harm.

The reason is practical. If the outcome of an incident is finding someone to blame, people learn to hide mistakes, avoid declaring incidents and give thin answers in reviews. You then learn less, and later. “Dee ran the wrong command” is a dead end. “The command for staging and production differs by one flag, and nothing asks for confirmation” is a fix.

Air accident investigation has worked this way for decades. Pilots report near-misses because the reports are used to fix aircraft and procedures, not to punish pilots.

What goes in it

A useful template, close to what the Google SRE book describes:

  1. Summary: two or three sentences a manager can read.
  2. Impact: in numbers. How long, how many users or requests, how much error budget, any data lost.
  3. Timeline: timestamped, in UTC, from the first sign of trouble to resolution.
  4. Contributing factors: what made it possible, what made it worse, what made detection or mitigation slow.
  5. What went well: worth keeping, and easy to forget.
  6. Action items: each with an owner, priority and ticket link.

Avoid the single “root cause” heading if you can. Real incidents nearly always need several conditions at once, and naming one cause lets the others survive.

A worked example: from timeline to postmortem

I took the timeline an incident commander might have kept during a checkout outage, as plain timestamped lines:

2026-11-18T13:52Z impact  deploy v413 rolled out; checkout 502s begin
2026-11-18T13:57Z detect  ShopWebErrorBudgetFastBurn fires, pages chen
2026-11-18T14:01Z ack     chen acknowledges, declares SEV2, takes IC
...
2026-11-18T14:29Z mitigate error ratio back under 0.1%
2026-11-18T15:10Z resolve monitoring clean for 40 min; incident closed

The incident is invented. I ran a short Python script over it that works out the standard intervals and an impact estimate. It assumes 1,000 requests a minute with 21% failing through the impact window, against a 30-day budget of 43,200 failed requests at 99.9%:

$ python3 pm.py timeline.txt
time to detect      5 min
time to acknowledge 4 min
time to mitigate   37 min   (user impact window)
time to resolve   78 min
approx failed requests 7,770 = 18% of the 30-day error budget

## Timeline (UTC)
- 13:52 [impact] deploy v413 rolled out; checkout 502s begin
- 13:57 [detect] ShopWebErrorBudgetFastBurn fires, pages chen
- 14:01 [ack] chen acknowledges, declares SEV2, takes IC
- 14:04 [note] dee joins as ops lead; error ratio 21%
- 14:07 [action] rolled back to v412; error ratio unchanged
- 14:19 [note] payment provider latency normal; DB connections at pool max
- 14:26 [action] raised pool size 20 -> 40 on shop-web
- 14:29 [mitigate] error ratio back under 0.1%
- 15:10 [resolve] monitoring clean for 40 min; incident closed

The numbers frame the discussion. Detection took 5 minutes, which is the burn-rate alert doing its job. Mitigation took 37, and most of that was diagnosis. The rollback at 14:07 changed nothing, and it was 14:19 before anyone looked at the connection pool.

The contributing factors this hypothetical team might list:

  • Lunchtime traffic had grown about 30% in a month, and the database pool size was still a default set a year earlier.
  • No dashboard showed pool saturation, so nobody looked at it until 27 minutes in.
  • The deploy at 13:52 was coincidental, but it made the deploy the obvious suspect. That cost a rollback cycle.

Their action items, each with an owner and a ticket: add a pool saturation panel and a ticket-level alert at 80%; size the pool from load tests, not defaults; add “check saturation” to the checkout runbook before “roll back”. Note what is not on the list: “be more careful when deploying”. That would fix nothing, because the deploy didn’t cause it.

Making it stick

A postmortem only pays if its actions get done. Track them in the normal backlog with normal priorities, not a separate list nobody reads. Review open postmortem actions in a regular meeting. Agree beforehand what triggers a postmortem, such as any user-visible outage, data loss, or more than a set amount of budget burned, so the decision isn’t made case by case when everyone is tired. Share finished postmortems widely. Other teams learn from your incidents for free.

About the video

“Postmortem Culture at Google: How do we learn from failures and how can you too?” is a talk by Vasileios Souleles, an SRE at Google, recorded at Open conf 2023 and published on the Open conf channel in March 2024, 15 minutes 42 seconds. The description says it covers how blameless postmortems are written and used at Google, how they inform decisions and reliability, and how to start your own lightweight process. It has no chapters, and it is a small conference channel. English is judged from the title, description and channel. Bran van der Meer’s video is a practical guide to running the review meeting itself, and the SRE book chapter is the source for the template above.

Where this fits

Some incidents come from running out of capacity, like this one. The last operations lesson is about growing ahead of demand: autoscaling and capacity planning.

Check yourself

  1. 01Why does blame make future incidents worse?

    People who expect blame hide information and avoid declaring incidents, so the organization learns less and hears about problems later.

  2. 02The rollback in an incident didn't fix it. Why is that worth recording in the postmortem?

    It shows the deploy was not the cause, which saves the next responder from the same wrong lead, and it may point to a gap, such as a dashboard that made the deploy look guilty.

  3. 03What makes an action item good?

    It is specific, has a named owner and a due date or priority, is tracked in the normal ticket system, and reduces the chance or impact of a class of failure rather than this exact one.

  4. 04When should you write a postmortem?

    Against agreed triggers, such as any user-visible outage, a set amount of error budget used, data loss, or an on-call engineer asking for one, so the decision is not made case by case under pressure.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark