You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i have a a few http SLO's based on status="5xx") and this is deployed in kubernetes without using operator. So when i deploy i also get the recording rules created as configmaps which i then template and add to prometheus.
However, I've got a situation where i want to create a very similar SLO based on the same metric, but i actually don't have a status code that actually represents an outage if you whish.
SO this works and creates the configmaps (pyrra recording rules for prometheus) but doesnt return the data outage in the image below:
But this wont do what i need it to do, as below are the expressions that actually show me the data i require and an alert that will trigger, but id like to turn that into the SLO similar above.
Time Series Data: http_client_requests_seconds_count{io_kompose_service="app1",namespace="namespace1",uri="my-url.com"}
Ok in 1) i see the data and the gap, which is what i want to base my SLO on that gap (no metrics) but i see that i need to have the status="code" in the SLO above to actually create the recording rules, if i simply change the status to outcome="whatever" or if i change the entire expression to point nr:2 which is what i want then I don't get the recording rules created, which means the SLO cannot function correctly.
Is the another type of SLO - meaning indicator:ratio:errors: that i can use that would make this work.
Hope this makes sense.....
IOW if you look at the image you can see the gap, if i had to add status="5xx" to the expression in 1) i don't see that gap. So this means that based on the current SLO, i wont be able to pickup the gap in data and there for the SLO will be inaccurate.
Or Custom SLO? but i require the recording rules to be created aswell.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Guys,
So i have a a few http SLO's based on status="5xx") and this is deployed in kubernetes without using operator. So when i deploy i also get the recording rules created as configmaps which i then template and add to prometheus.
However, I've got a situation where i want to create a very similar SLO based on the same metric, but i actually don't have a status code that actually represents an outage if you whish.
SO this works and creates the configmaps (pyrra recording rules for prometheus) but doesnt return the data outage in the image below:
But this wont do what i need it to do, as below are the expressions that actually show me the data i require and an alert that will trigger, but id like to turn that into the SLO similar above.
Time Series Data:
http_client_requests_seconds_count{io_kompose_service="app1",namespace="namespace1",uri="my-url.com"}
Prometheus Alert:
absent(http_client_requests_seconds_count{io_kompose_service="app1",namespace="namespace1",outcome="SUCCESS",uri="my-url.com})
Ok in 1) i see the data and the gap, which is what i want to base my SLO on that gap (no metrics) but i see that i need to have the status="code" in the SLO above to actually create the recording rules, if i simply change the status to outcome="whatever" or if i change the entire expression to point nr:2 which is what i want then I don't get the recording rules created, which means the SLO cannot function correctly.
Is the another type of SLO - meaning indicator:ratio:errors: that i can use that would make this work.
Hope this makes sense.....
IOW if you look at the image you can see the gap, if i had to add status="5xx" to the expression in 1) i don't see that gap. So this means that based on the current SLO, i wont be able to pickup the gap in data and there for the SLO will be inaccurate.
Or Custom SLO? but i require the recording rules to be created aswell.
Beta Was this translation helpful? Give feedback.
All reactions