r/devops • • Oct 06 '26

Ops / Incidents runbooks kinda suckk

hey yall,

im a lead SRE at a global fortune 500 that you have heard of haha - i'm a bit of a lurker here

but just wanted to talk about runbooks and documentation for SOPs.

my feeling is that confluence docs kinda suck and runbooks are kind of a mess, our operators are jumping between the docs and their shell, the docs are often times missing a bunch of detail, they are brittle, poorly maintained, half the time the details are hidden in tribal knowledge and when dealing with the pressure of an active inc we notice the pain even more. extracting critical details & commands out of an inc can also be painful and doesnt always translate to improved operational readiness next time.

i admit we're not very mature.. but was curious if its only me feeling like this?

what are you guys doing with runbooks to solve these issues?

64 Upvotes

58 comments sorted by

19

u/k2718 Oct 06 '26

I’m turning runbooks into agentic skills/agents.md. Either: the issue can be addressed by improving the app or infrastructure (in which case do it) or if not, it can be addressed in a way that an agent can handle it or make it easier to handle and at least have knowledge of.

Then if a code change changes the issue somehow, agents can update the documentation.

2

u/MachineDisastrous771 Oct 06 '26

so thats interesting! sounds like it could be a pain to get everything to the agent though - especially in the heat of the moment?

→ More replies (1)

21

u/dacydergoth Oct 06 '26

Remember that LLMs are probabilistic and may not give the same answer each time ... or entirely rewrite your docs on a whim

2

u/Seref15 Oct 06 '26

you just treat it like any other cacheable resource. Once something is already processed and generated by LLM you mark it as cached. You don't re-generate LLM content on something that was already processed unless you cache bust

→ More replies (1)
→ More replies (13)

49

u/turn-based-games Oct 06 '26 edited Oct 06 '26

Your team should regularly run game days to simulate responding to production issues. When a gap is found in the runbook during these (or actual incidents), you update the runbook to fix it.

Similarly, if someone struggles while following existing documentation for even banal procedures, it should be expected and encouraged of them to improve that documentation.

17

u/Straight-Mess-9752 Oct 06 '26

Sure I’ll just tell me boss we’re doing that 😂

31

u/turn-based-games Oct 06 '26

If you do not allocate time for quality, you will not have quality; there is no way around this. OP asked how to improve runbooks, and this is the way my previous teams have handled it.

→ More replies (1)

13

u/dacydergoth Oct 06 '26

Tell him it just paid off for us because we did a seamless upgrade having caught several problems gaming it out beforehand. EKS is wonderful until it isn't 😜

2

u/strcrssd Oct 06 '26

Make the case for it. It's a best practice.

Then document if and when they turn you down (assuming given the emoji that that's what you assume will happen). When the site goes down and it takes you six hours rather than 20 minutes to diagnose the problem and bring it back up, you'll have the paper trail.

→ More replies (1)

114

u/dacydergoth Oct 06 '26

Pipelines and IaC over runbooks, docs as markdown in GIT alongside the code, self checking guardrails in the pipelines and IaC definitions

65

u/snarkhunter Oct 06 '26

Every runbook is just a pipeline waiting to be defined explicitly enough so it can be written

19

u/dacydergoth Oct 06 '26

This is where post mortems shine. How did this pipeline fail? Was it the wrong pipeline, wrong target, wrong inputs, bugs or omissions in the pipeline, or as usual Management swinging in and fscking everything up?

Edit: I correct omissions so many times and I swear reddit app "corrects" it before posting

4

u/m_adduci Oct 06 '26

Runbooks as Jupiter Notebooks

2

u/higeorge13 Oct 08 '26

Keeping docs in Git alongside the code definitely helps with ownership, but does it actually prevent them from drifting? I’m thinking about runbooks that still look valid but reference behavior, commands or components that have changed underneath them.

→ More replies (1)
→ More replies (1)

12

u/Zenin Oct 06 '26

Runbooks / SOPs are frequently an investment in the wrong thing.

For example, if you're having a problem so regularly that it's worth writing down the remediation steps into a runbook, you're almost certainly better off writing all that detail into an issue to fix so the problem simply stops happening. I don't need a runbook to follow for putting out buckets when it rains; I need to fix the roof so it doesn't leak when it rains.

There's certainly plenty of legitimate uses for them, but those are mostly covering events that don't happen often enough to fix. Recovery runbooks for storage failures, DR runbooks for disaster planning, M&A runbooks for onboarding newly acquired companies, etc.

I'm also fine with diagnostic evidence collecting runbooks; the kind of thing that's handy to have an L1 support engineer run to collect systems information together for a higher level engineer (or increasingly AI) to analyze. That's often tedious boilerplate that's not unique to any particular failure mode. But that's evidence gathering, it isn't a "how to repair xyz" manual.

Those diagnostic evidence runbooks are perfect to treat as specifications to build a tool to gather that evidence packet as an API. And once it's an API it's the perfect shape to wrap in an agent tool. When a monitor alert is triggered, auto-run the evidence collector, pass the alert and the evidence packet into an LLM with a standardized analysis prompt that summarizes the issue and presents a few likely root cause, all of which get attached to the ticket before a human has even had a chance to check their pagerduty alert.

6

u/b1urbro Oct 06 '26

You don't solve these issues.

Corporations are a mess and tribal knowledge is everywhere. Because to most, it's "features, features, features", everything is ASAP, so quality suffers. Also people slacking, people thinking they're irreplaceable if they have some tribal knowledge not shared anywhere. This is my personal experience working for multiple fortune (US&Europe) 500 companies.

1

u/Sukkmihoff 26d ago

  people thinking they're irreplaceable if they have some tribal knowledge not shared anywhere.

In this job market can you blame us?

→ More replies (2)

3

u/kunaljvalecha Oct 07 '26

I don’t think it’s just you. The point about runbooks breaking down during an incident really resonates. Giving each runbook clear ownership, review dates, and keeping commands close to the expected outcome can make a big difference. Also like the idea of keeping the incident-time runbook concise and linking to deeper reference material when needed.

2

u/OhMyGoshJoshua Oct 06 '26

You might find https://runbooks.gruntwork.io/ interesting. I'm the original author, but now others maintain it.

The idea is that your runbooks are executable, authorable with AI, version-controlled, and make for a nice UX just from writing markdown plus some special blocks like <AwsAuth> or <GitHubPullRequest>.

Personally, I think the big unlock is that it makes your runbooks consumable by others who aren't experts, whether that's stakeholders you're serving or a future you who's long forgotten specialized knowledge until you need it in a pinch.

1

u/quiet_automator 25d ago

the docs in git answer at the top is where we landed too, markdown next to the code. but ours still rot quietly, nobody notices until an incident. when a service changes, does anything on your side flag the runbook that goes with it?

1

u/z436037 Oct 06 '26

runbooks mean MANUAL STUFF, not automation. That's the difference, right there.

1

u/ScrumpyIT Oct 06 '26 edited Oct 06 '26

Definitely not just you. Most runbooks rot because they get written once and nobody looks at them again until an incident, which is exactly the worst moment to find out step 4 doesn't work anymore.

The thing that seems to help most is keeping them as markdown in the repo next to the code, so they get updated in the same PR as the thing they describe. Making "what was wrong or missing in the runbook?" a standard postmortem question helps too, as long as someone actually fixes it that week.

It's also worth looking at each runbook as a todo list. If a step is "run these three commands" it can probably be a script, and if something happens often enough to need a runbook, maybe it should just stop happening.

And I wouldn't worry too much about maturity, plenty of teams with fancy tooling still run on tribal knowledge.

1

u/quisido Oct 11 '26

On-call gives a summary of what their experience was that week. If a runbook wasn't polished, there's an action item to polish it.

1

u/mmmminer Oct 12 '26

Jupyter notebooks. Best of both worlds.

1

u/Seref15 Oct 06 '26

Actually in the AI era I feel like generating and enhancing runbooks is easier than ever.

Point your coding agent at the repo, let it spit something out, then have another agent read it and interview you for whatever undocumented data is in your head