On Friday, 6 May 2022 at 08:43:15 UTC+1 [email protected] wrote:

>     expr: probe_http_status_code{job="smarttools_urls"}<= 199 OR 
> probe_http_status_code{job="smarttools_urls"} >= 300
>

Aside: that's probably not what you meant.  What I think you meant was:

   expr: probe_http_status_code{job="smarttools_urls"} <= 199 >= 300

These are not boolean conditions. These are filters.  "foo" is a vector of 
0 or more timeseries; "foo <= 199" is a vector containing only those 
elements where the value is <= 199 (i.e. the result has the same or fewer 
number of elements as the LHS vector).  You can then further filter this 
with >= 300.

That doesn't answer your underlying question, which will probably involve 
suppressing the alarm using some combination of "unless", "min_over_time" 
and "max_over_time".

-- 
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/23cc634f-563c-4221-81a2-d58a8fed0186n%40googlegroups.com.

Reply via email to