sre-runbookslisted
Install: claude install-skill pfangueiro/claude-code-agents
# SRE Runbooks
## Overview
Operational runbook templates and SRE practices for production reliability. Covers on-call workflows, incident response, postmortems, capacity planning, and chaos engineering.
## SLI/SLO Definition Template
```yaml
service: payment-api
owner: payments-team
tier: critical
slis:
availability:
description: "Ratio of successful HTTP responses (non-5xx) to total responses"
query: "sum(rate(http_requests_total{service='payment-api', status!~'5..'}[5m])) / sum(rate(http_requests_total{service='payment-api'}[5m]))"
good_event: "HTTP response with status < 500"
valid_event: "All HTTP responses (excluding health checks)"
latency:
description: "Ratio of requests served faster than 300ms"
query: "sum(rate(http_request_duration_seconds_bucket{service='payment-api', le='0.3'}[5m])) / sum(rate(http_request_duration_seconds_count{service='payment-api'}[5m]))"
threshold: 300ms
percentile: p99
slos:
availability:
target: 99.95%
window: 30d
error_budget: 21.9 minutes/month
latency:
target: 99.0%
window: 30d
description: "99% of requests complete within 300ms"
error_budget_policy:
budget_available: # >50% remaining
- "Ship features normally"
- "Conduct chaos experiments"
- "Allow risky deployments with rollback plan"
budget_warning: # 20-50% remaining
- "Prioritize reliability work alongside features"
- "Review recent incidents for patterns"
- "No chaos experiments