HI,

I am not able to make this query to work precise enough. Hopefully, someone 
can help me out.

This Query works fine. It returns 1 if the result is less than 98
100*sum(http_service_api{apiCode="0"}) by (method) / ignoring (apiCode) 
group_left() sum(http_service_api{} )  by (method) < bool 98

This is the part I am having issues with. I need to add all ones within a 
period of time where the result was lower than 98.
So the query is:

sum_over_time(sum(100*sum(http_service_api{apiCode="0"}) by (method) / 
ignoring (apiCode) group_left() sum(http_service_api{} )  by (method) < 
bool 98) by (method)[1d:1m]) 

I should expect the number to increase every time the result is less than 
98, I this but I also see it decreasing. I have not been able to figure 
out  why?

Any idea is appreciated. 

Thanks in advanced

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9decf191-cf6d-4194-a092-d714e2cfdab5n%40googlegroups.com.

Reply via email to