sloth
sloth copied to clipboard
Current burning budget, Remaining error budget(30d window, Remaining error budget (month)) are NaN
Hello! Why Current burning budget, Remaining error budget(30d window, Remaining error budget (month)) are NaN? Please explain to me what they are meaning and how can I reset them. And when do their values change?
Please explain the meaning of those labels...
This is my spec:
Thanks!
There have been some similar questions in the past. What I suspect happens is that in some 5 minute periods you have no incoming requests at all, so your divisor is 0 and the whole query evaluates to NaN
. Due to how the recording rules are built, this NaN
value can then propagate into the larger window sizes like the monthly budget.
I'd advise you to change your query to something like
1 - (
sum(rate(bucket{le="1000"}[{{.window}}]))
/
(sum(rate(count[{{.window}}]) > 0) or vector(1))
which would give you an error rate of 0 whenever there is no traffic.