On Fri, 17 Apr 2020 at 12:46, Alex Rosen <[email protected]> wrote:

> This page
> <https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/> 
> says:
> "The $value variable holds the evaluated value of an alert instance."
>
> It would be great if this also included a more explicit definition,
> because this definition isn't obvious to me. For example, if I have:
>
>
> expr: sum(increase(some_counter[3h])) by (foo) < 1
>
>
> Which part of this is the $value? It can't be the entire expression,
> because that's just a boolean value.
>
Alerts aren't booleans, every series that the alert expression returns
becomes an alert instance. So in the above expression the values of the
alerts would be the sum() - if any of them are smaller than 1.


-- 
Brian Brazil
www.robustperception.io

-- 
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/CAHJKeLoqKbDjdXFm0WtofOA82jf-FBZNYB3Wz3r%3DWVWMtazegg%40mail.gmail.com.

Reply via email to