Inhibit rules query

30 views
Skip to first unread message

Radha R4

unread,
Apr 30, 2020, 1:25:06 PM4/30/20
to Prometheus Users
I have alertmanager rules defined as below

My query is if memoryHigh alert comes up,will they be routed to receiver ChannelA as per the route match rule or will they be inhibited as per inhibit rule? Does the inhibit rule takes precendence here?
  routes:
- match_re:
namespace: monitoring
receiver: channelA
inhibit_rules:
- target_match:
alertname: memoryHigh
namespace: monitoring
source_match:
alertname: Inhibit
equal:
- prometheus

Julius Volz

unread,
May 1, 2020, 5:21:22 AM5/1/20
to Radha R4, Prometheus Users
Yes, the inhibit rule takes precedence, so no notifications should be sent out as long as the inhibit condition is true.

E.g. if you have:

* an alert {alertname="memoryHigh", namespace="monitoring", prometheus="myprometheus"}
* an alert {alertname="Inhibit", prometheus="myprometheus"}

...then you will not get a notification for that first alert. Depending on your other routes, you may still get a notification for the second one though (if it's not routed to a no-op receiver).

--
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/0dfc3f5a-615e-4f62-84af-9962e709d11f%40googlegroups.com.

Rad Kairav

unread,
May 1, 2020, 11:54:51 AM5/1/20
to Julius Volz, Prometheus Users
Thankyou Julius :)
Reply all
Reply to author
Forward
0 new messages