Calculate service level objective measurements from metrics stored in common backends in accordance with the logic set out in the SRE Workbook
pip install pyslo
pytest
Visit readthedocs for full documentation.
At this time, the Stackdriver backend is supported. Future plans include Prometheus and Azure Monitoring
- Boolean
The library pulls raw timeseries data from the metric provider and performs aggregations in memory. This is in order to standardize the computation across providers.
sli = good_events/valid_events
where
- good events = (sum of metric entries == True)
- valic_events = (sum of metric entries)