What is OpenSLO, and what do Sloth and Pyrra do?

AdvancedConceptSLIs, SLOs & SLAs
Answer
  • OpenSLO is a vendor-neutral YAML specification for declaring SLOs, SLIs and alert policies as code.
  • Sloth is a generator: you write a short SLO spec (service, objective, error and total queries) and it produces Prometheus recording rules for every window plus multi-window burn-rate alerts. It runs as a CLI or a Kubernetes controller with a PrometheusServiceLevel CRD.
  • Pyrra does the same with a ServiceLevelObjective CRD and adds a UI showing budget and burn rate.

They remove the copy-paste errors of hand-writing 7 recording rules and 4 alerts per SLO.

sloth generate -i slos/checkout.yaml -o rules/checkout-slo.rules.yaml
All SRE & Reliability questions Roadmap: SRE & incident response

More on SLIs, SLOs & SLAs