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
PrometheusServiceLevelCRD. - Pyrra does the same with a
ServiceLevelObjectiveCRD 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
More on SLIs, SLOs & SLAs
Define SLI, SLO and SLA with an example of each.BeginnerWhy should the SLA be looser than the SLO?BeginnerWhy are SLIs best expressed as a ratio of good events to valid events?IntermediateWhat is the difference between request-based and time-based (window-based) SLIs?AdvancedWhere should you measure an SLI, and what are the trade-offs?AdvancedWhat types of SLIs exist beyond availability and latency?Intermediate