SLO/Error Budget Calculator
Calculate uptime targets, allowed downtime, error budgets, and burn rates for SLO/SLA management.
Error Budget
# All periods
python3 scripts/slo.py budget 99.9
# Specific periods
python3 scripts/slo.py budget 99.9 month week day
# Named aliases
python3 scripts/slo.py budget three-nines
Burn Rate
# Consumed 15m downtime in first 15 days of month
python3 scripts/slo.py burn 99.9 15m --period month --elapsed 15d
# Simple: consumed 2h this month
python3 scripts/slo.py burn 99.9 2h
Compare Targets
python3 scripts/slo.py compare 99 99.9 99.99 99.999 --period month
Observed Uptime
# From downtime
python3 scripts/slo.py uptime --downtime 45m --period month
# From uptime
python3 scripts/slo.py uptime --uptime-seconds 2589300 --period month
Multi-Window Analysis
python3 scripts/slo.py multi-window 99.9 month:15m week:3m day:30s
Reference Table
python3 scripts/slo.py table
python3 scripts/slo.py table --period year
Output Formats
All commands support --format text|json|markdown:
python3 scripts/slo.py budget 99.9 -f json
python3 scripts/slo.py table -f markdown
Duration Syntax
Durations use: 30s, 5m, 2h, 1d, 2h30m, 1d12h. Raw seconds also accepted.
SLO Aliases
99, 99.9, 99.95, 99.99, 99.999 — direct percentages
two-nines, three-nines, four-nines, five-nines — named aliases