Sloth is an easy-to-use tool that generates reliable and uniform Prometheus SLOs with multi-window multi-burn alerting for effective service level objective management.
🦥 Easy and simple Prometheus SLO (service level objectives) generator
Sloth is designed for SREs, DevOps engineers, and reliability teams who want to define, generate, and manage Prometheus-based Service Level Objectives (SLOs) consistently across services. It simplifies the creation of SLOs, automates alerting rules, and integrates with Kubernetes environments to ensure reliable monitoring and compliance with service reliability goals.
Sloth is actively maintained and designed for extensibility with upcoming improvements to support more flexible SLO generation. Users should leverage the validation command in CI pipelines to enforce SLO spec correctness. It is recommended to customize alert labels and routing keys to fit organizational incident response workflows. Kubernetes users can benefit from the operator mode for native integration.
Download the latest Sloth binary from the GitHub releases page
Make the binary executable (chmod +x sloth)
Place the binary in your system PATH for easy CLI access
Alternatively, build from source using Go if preferred
Integrate Sloth into your CI/CD pipeline for SLO spec validation
sloth generate -i ./examples/getting-started.yml
Generates Prometheus SLO recording rules, alerts, and metadata from the specified SLO spec file.
sloth validate -i ./examples/getting-started.yml
Validates the SLO specification file to ensure correctness and compliance before generating rules.