Interview Prep/SRE & Reliability/Backups, DR & Runbook Automation

The runbook linked from a page returns 404, and the on-call engineer improvised for 30 minutes.

BeginnerTroubleshootingBackups, DR & Runbook Automation
Answer

Likely causes → The wiki moved, the runbook was renamed, or it was never written; alert annotations hard-code URLs that nobody validates.

Diagnose →

curl -s localhost:9090/api/v1/rules | jq -r '.data.groups[].rules[] | select(.type=="alerting") | .annotations.runbook_url' \
  | sort -u | while read u; do printf '%s %s\n' "$(curl -s -o /dev/null -w '%{http_code}' "$u")" "$u"; done

Fix → Restore or write the runbook, update the annotation.

Prevent → Keep runbooks in Git next to the alert rules, require runbook_url in CI linting, and run the link checker above on a schedule.

All SRE & Reliability questions Roadmap: Backup & disaster recovery

More on Backups, DR & Runbook Automation