On-Call Runbook Automation from Alerts
Alert linked wiki runbook 404 during Sev-1; executable runbook script in repo fixed MTTR when linked from Alertmanager annotation with version pin.
Runbook as code
Scripts beside docs in git; Alertmanager annotation runbook_url to tagged release path.
Production teams running oncall runbook automation learned that runbook as code regressions appear when traffic mix shifts—uniform staging QPS missed Black Friday combinations until load replay used production timestamps.
Runbook for runbook as code: confirm blast radius, identify last config change, execute single-step rollback, capture SLI screenshots for postmortem—not ad-hoc dashboard search during Sev-1.
Instrument runbook as code with low-cardinality metrics tied to user-visible SLIs—error rate, tail latency, freshness—not vanity gauges that never correlated with past pages.
Game day for runbook as code: quarterly staging injection with rollback under fifteen minutes using linked runbook only—update runbook with what broke.
Ownership for runbook as code belongs in the service catalog with named rotation, last drill date, and known sharp edges—new engineers deploy safe canary within one week using that doc.
Change management: peer review from outside authoring team before prod promote—fresh eyes catch embedded assumptions in runbook as code configs.
Capacity note: estimate peak concurrency for runbook as code, apply 1.5–2× headroom against cloud quotas before launch week—not during first outage.
Security review for oncall runbook automation: least privilege on automation roles, short-lived credentials, immutable audit logs for production changes—break-glass expires in forty-eight hours with mandatory retrospective.
FinOps tie-in for runbook as code: attribute cloud spend to owning team via tags; monthly review of cost drivers prevents silent bill growth after config drift.
Safe automation
Auto-restart, scale, cache bust—never auto data mutation without approval webhook.
Production teams running oncall runbook automation learned that safe automation regressions appear when traffic mix shifts—uniform staging QPS missed Black Friday combinations until load replay used production timestamps.
Runbook for safe automation: confirm blast radius, identify last config change, execute single-step rollback, capture SLI screenshots for postmortem—not ad-hoc dashboard search during Sev-1.
Instrument safe automation with low-cardinality metrics tied to user-visible SLIs—error rate, tail latency, freshness—not vanity gauges that never correlated with past pages.
Game day for safe automation: quarterly staging injection with rollback under fifteen minutes using linked runbook only—update runbook with what broke.
Ownership for safe automation belongs in the service catalog with named rotation, last drill date, and known sharp edges—new engineers deploy safe canary within one week using that doc.
Change management: peer review from outside authoring team before prod promote—fresh eyes catch embedded assumptions in safe automation configs.
Capacity note: estimate peak concurrency for safe automation, apply 1.5–2× headroom against cloud quotas before launch week—not during first outage.
Security review for oncall runbook automation: least privilege on automation roles, short-lived credentials, immutable audit logs for production changes—break-glass expires in forty-eight hours with mandatory retrospective.
FinOps tie-in for safe automation: attribute cloud spend to owning team via tags; monthly review of cost drivers prevents silent bill growth after config drift.
Freshness checks
CI weekly link check and last-reviewed date in runbook frontmatter—stale triggers ticket.
Production teams running oncall runbook automation learned that freshness checks regressions appear when traffic mix shifts—uniform staging QPS missed Black Friday combinations until load replay used production timestamps.
Runbook for freshness checks: confirm blast radius, identify last config change, execute single-step rollback, capture SLI screenshots for postmortem—not ad-hoc dashboard search during Sev-1.
Instrument freshness checks with low-cardinality metrics tied to user-visible SLIs—error rate, tail latency, freshness—not vanity gauges that never correlated with past pages.
Game day for freshness checks: quarterly staging injection with rollback under fifteen minutes using linked runbook only—update runbook with what broke.
Ownership for freshness checks belongs in the service catalog with named rotation, last drill date, and known sharp edges—new engineers deploy safe canary within one week using that doc.
Change management: peer review from outside authoring team before prod promote—fresh eyes catch embedded assumptions in freshness checks configs.
Capacity note: estimate peak concurrency for freshness checks, apply 1.5–2× headroom against cloud quotas before launch week—not during first outage.
Security review for oncall runbook automation: least privilege on automation roles, short-lived credentials, immutable audit logs for production changes—break-glass expires in forty-eight hours with mandatory retrospective.
FinOps tie-in for freshness checks: attribute cloud spend to owning team via tags; monthly review of cost drivers prevents silent bill growth after config drift.
Post-incident
Postmortem action to update runbook blocks close until merged.
Production teams running oncall runbook automation learned that post-incident regressions appear when traffic mix shifts—uniform staging QPS missed Black Friday combinations until load replay used production timestamps.
Runbook for post-incident: confirm blast radius, identify last config change, execute single-step rollback, capture SLI screenshots for postmortem—not ad-hoc dashboard search during Sev-1.
Instrument post-incident with low-cardinality metrics tied to user-visible SLIs—error rate, tail latency, freshness—not vanity gauges that never correlated with past pages.
Game day for post-incident: quarterly staging injection with rollback under fifteen minutes using linked runbook only—update runbook with what broke.
Ownership for post-incident belongs in the service catalog with named rotation, last drill date, and known sharp edges—new engineers deploy safe canary within one week using that doc.
Change management: peer review from outside authoring team before prod promote—fresh eyes catch embedded assumptions in post-incident configs.
Capacity note: estimate peak concurrency for post-incident, apply 1.5–2× headroom against cloud quotas before launch week—not during first outage.
Security review for oncall runbook automation: least privilege on automation roles, short-lived credentials, immutable audit logs for production changes—break-glass expires in forty-eight hours with mandatory retrospective.
FinOps tie-in for post-incident: attribute cloud spend to owning team via tags; monthly review of cost drivers prevents silent bill growth after config drift.
Discovery
Service catalog links runbook from component—on-call starts at catalog not search.
Production teams running oncall runbook automation learned that discovery regressions appear when traffic mix shifts—uniform staging QPS missed Black Friday combinations until load replay used production timestamps.
Runbook for discovery: confirm blast radius, identify last config change, execute single-step rollback, capture SLI screenshots for postmortem—not ad-hoc dashboard search during Sev-1.
Instrument discovery with low-cardinality metrics tied to user-visible SLIs—error rate, tail latency, freshness—not vanity gauges that never correlated with past pages.
Game day for discovery: quarterly staging injection with rollback under fifteen minutes using linked runbook only—update runbook with what broke.
Ownership for discovery belongs in the service catalog with named rotation, last drill date, and known sharp edges—new engineers deploy safe canary within one week using that doc.
Change management: peer review from outside authoring team before prod promote—fresh eyes catch embedded assumptions in discovery configs.
Capacity note: estimate peak concurrency for discovery, apply 1.5–2× headroom against cloud quotas before launch week—not during first outage.
Security review for oncall runbook automation: least privilege on automation roles, short-lived credentials, immutable audit logs for production changes—break-glass expires in forty-eight hours with mandatory retrospective.
FinOps tie-in for discovery: attribute cloud spend to owning team via tags; monthly review of cost drivers prevents silent bill growth after config drift.
Frequently asked questions
Runbook as code?
Executable scripts linked from alert annotations—not wiki-only prose on-call cannot find at 3am.
Automated remediation?
Safe auto-remediation for known flakes—scale deployment, restart pod—with human approval for data mutations.
Runbook drift?
Alert fires if runbook URL 404 or last verified >90 days—platform ticket to update.
Post-incident?
Runbook update is merge blocker for severity-1 postmortem action items.
Hiring a senior Android / Flutter engineer?
I architect and ship production mobile software — Kotlin, Jetpack Compose, Flutter — for robotics, EV infrastructure, fintech, and real-time systems. Open to remote roles in Europe and the US.
Get in touch →