sloth
🦥 Easy and simple Prometheus SLO (service level objectives) generator
What is sloth?
🦥 Easy and simple Prometheus SLO (service level objectives) generator
Overview of sloth
What it is
Sloth is an open-source tool that generates Prometheus SLO (service level objective) configurations from a simple specification. It produces consistent Prometheus recording rules, alert rules, and metadata for any service, based on Google's SLO implementation and the multi-window multi-burn alert framework.
Key features
- Simple, maintainable, and understandable SLO spec
- Reliable SLO metrics and alerts based on Google SLO and multi-window multi-burn alerts
- Autogenerates Prometheus SLI recording rules in different time windows
- Autogenerates Prometheus SLO metadata rules
- Autogenerates Prometheus SLO multi-window multi-burn alert rules (Page and warning)
- SLO spec validation including a
validatecommand for GitOps and CI - Customization of labels, disabling different types of alerts
- A single uniform way of creating SLOs across different services and teams
- Automatic Grafana dashboard to see all SLOs state
- Single binary and easy-to-use CLI
- Kubernetes (Prometheus-operator) support
- Kubernetes Controller/operator mode with CRDs
- Support for different SLI types and SLI plugins
- A library with common SLI plugins
- OpenSLO support
- Safe SLO period windows for 30 and 28 days by default
- Customizable SLO period windows for advanced use cases
Use cases
Sloth is used to generate Prometheus SLO configurations for any kind of service, ensuring uniform and reliable SLO metrics and alerts across teams and services. It is suitable for teams that want to adopt Google-style SLOs with multi-window multi-burn alerting, and for organizations that need to validate SLO specs in GitOps or CI pipelines. It also supports Kubernetes environments with Prometheus-operator and CRDs.
Getting started
bashsloth generate -i ./examples/getting-started.yml
License and pricing
Sloth is open source under the Apache-2.0 license.
Based on the project's public README and repository metadata.