Skip to main content

Error Budget Policy Generator

v1.0.0

Generate budget-burn rules — fast/slow burn alerts and freeze policies.

Error Budget Policy
# Error Budget Policy: api-service
# SLO: 99.9% over 30 days
# Total error budget: 43 minutes

groups:
  - name: error_budget_alerts
    rules:
      # Fast burn — triggers when budget exhausted in 1h window at 14.4×
      - alert: api_service_ErrorBudgetFastBurn
        expr: |
          (rate(http_requests_total{job="api-service",code=~"5.."}[1h])
          / rate(http_requests_total{job="api-service"}[1h])) > 0.014400
        for: 2m
        labels:
          severity: page
          slo: "api-service"
        annotations:
          summary: "Fast error budget burn on api-service"
      # Slow burn — triggers when budget exhausted in 6h window at 6×
      - alert: api_service_ErrorBudgetSlowBurn
        expr: |
          (rate(http_requests_total{job="api-service",code=~"5.."}[6h])
          / rate(http_requests_total{job="api-service"}[6h])) > 0.006000
        for: 15m
        labels:
          severity: warning
          slo: "api-service"
        annotations:
          summary: "Slow error budget burn on api-service"