PromQL stateless issue

16 views
Skip to first unread message

fiala...@gmail.com

unread,
Aug 12, 2020, 3:00:38 AM8/12/20
to Prometheus Users
Hi, 

I would like to write a rule for alerting e.g. packet discards in percent.

My requirements are:
- trigger an alert when discards are at least 10 minutes higher than X
- close alert when discards are more then 60m equals to zero

I'm not sure, how to define it in PromQL. Because I haven't information about state of the alert in promql. Have you any suggestions?

Thank you,

Julien Pivotto

unread,
Aug 12, 2020, 3:05:17 AM8/12/20
to fiala...@gmail.com, Prometheus Users
https://fr.slideshare.net/roidelapluie/improved-alerting-with-prometheus-and-alertmanager

See the part about Hysteresis

Regards,

>
> Thank you,
>
> --
> 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 prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e3331264-0f0c-4887-b951-53cc90c17844n%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

fiala...@gmail.com

unread,
Aug 12, 2020, 4:38:09 AM8/12/20
to Prometheus Users
Thank you!

It helps.

Reply all
Reply to author
Forward
0 new messages