Open ArthurSens opened 11 months ago
@metalmatze, friendly ping! Would love to open a PR myself once we agree on a design :)
Sorry for the late reply. I was busy organizing PromCon, speaking at SRECon and afterward moving house.
The overall proposal looks good to me. I want to make sure to try this. If we can figure out the PromQL the rest should fall into place.
For a few days now I've been wondering how the implementation would look like for a Saturation SLO based on Prometheus metrics. I've come up with a design idea, so I'm opening this issue to discuss this further with the community.
The main idea here is to re-utilize the BoolGauge SLO as much as possible.
API:
For additional Prometheus rules, all we need to do is generate
vector(1)
if(Utilization / Capacity) > Threshold
andvector(0)
if(Utilization / Capacity) <= Threshold
. From this, we can reutilize the same prometheus rules used for BoolGauge: