All in one solution for calculating SLOs. Built on top of google/slo-generator.
- Looks through a GCS bucket and finds all SLO manifests (example)
- Calculates the SLOs according to shared configuration
- Exposes calculated prometheus metrics
- Sleeps for a given interval
Feel free to create a Pull Request that allows for more setups, as it is this project is meant to work in a very specific way:
- Made to run in GKE
- SLO manifests are stored in GCS bucket
Alerts still need to be created 'manually'. It's hard to have one way of alerting.
Before this, we at Heureka Group ran slo-generator in API mode with a cronjob listing the bucket and pushing it to the API. This caused a number of issues. This solution should be way more efficient.
It's not out of the box ready. Because as everything, this is being put together in a bit of a rush.
- In docker-compose
- Replace
OMNI_SLO_GENERATOR_SLO_GCS_BUCKET
with a bucket you want to test against - Add SA credentials with permissions for that bucket into
sample/credentials.json
- Adjust your desired backends in
sample/config.yaml
- Replace