---
name: sre-runbooks-slo
description: "Write incident runbooks and define SLOs; generate Prometheus multi-window burn-rate alert and recording rules from a YAML SLO, with runbook links and validation. File-only, no metrics access."
---
# SRE Runbooks & Multi-Window Burn-Rate SLOs (Lite)
## When to use
- Write an incident runbook for a paging or ticket alert.
- Define an availability or latency SLO (e.g., 99.9% over 30 days) in `slo.yaml`.
- Generate or check Prometheus multi-window burn-rate recording and alert rules.
- Validate `slo.yaml` and runbook sections offline without building the CLI.
## Agent flow
1. Identify the target service, SLI kind (availability or latency), owner, and objective in `(0, 1)`.
2. Create or inspect `slo.yaml` with `service`, `owner`, `objective`, `window`, and `sli.good` / `sli.total`.
3. Run the POSIX awk script `scripts/burn.awk` on `slo.yaml` (and optional runbook Markdown files) to validate Lite checks and compute the 14.4x / 6x / 1x burn-rate thresholds.
4. Author or update each alert's Markdown runbook using `references/runbook-template.md` and `references/burn-rate-table.md`.
5. Re-run `scripts/burn.awk` until it exits with code `0`.
## How to run the Lite script
```sh
awk -f skill/sre-runbooks-slo/scripts/burn.awk slo.yaml runbooks/*.md
```
- Prints findings as `file:line: RULE message`.
- Exits `0` when valid, `1` when findings exist, and `2` on usage errors.
— ‹guest · 2026-12-04› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.