Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAlerting - False alerts and Missing alerts #2938
Comments
This comment has been minimized.
This comment has been minimized.
|
@parikhravish Prometheus alerts are not event-based, they are state-based. As long as a particular label combination is present in the output of an alerting rule, that particular labeled alert will keep firing to the Alertmanager. Alertmanager then makes events (notifications) out of these states by applying grouping, waiting, and re-notification rules to the states. Only if an alert element stops being present in the output of an alerting rule, Prometheus tells Alertmanager to explicitly resolve it. In that case, if an alert appears, disappears, then re-appears, you will get two notifications. But not if the alert state stays firing all the time. |
This comment has been minimized.
This comment has been minimized.
|
Yes so for example in my case following is the situation: Service A Working fine - No Alert Basically I am trying to differentiate between an event continuing vs new event for the same service(Same label sets.) |
This comment has been minimized.
This comment has been minimized.
|
@parikhravish I see. So this is about the Alertmanager side (the issue probably belongs there then). As far as I know, Alertmanager should send out a new notification if an alert was resolved in Alertmanager previously and then becomes active again. /cc @fabxc to confirm / deny. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@parikhravish Yes, as far as I understand it, it should be an Alertmanager issue. |
This comment has been minimized.
This comment has been minimized.
|
For documentation purposes, this was moved to prometheus/alertmanager#904. Please close here. |
parikhravish
closed this
Jul 13, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
parikhravish commentedJul 12, 2017
What did you do?
Alert generated for an event(Label sets). Followed by this the event repeated a few times, However since prometheus generates the alert id based on the label sets it made a determination that this was a continuation alert vs new alert and due to the repeat interval no new alert was sent.
What did you expect to see?
Alert sent whenever the event repeats it self, not when it is a continuation.
What did you see instead? Under which circumstances?
New event did not generate a new alert because the label sets were the same.
Environment
Docker
System information:
Darwin ML07DTSG15KG8WL 15.6.0
insert output of
uname -srmherePrometheus version:
1.7.1
insert output of
prometheus -versionhereAlertmanager version:
0.7.1
insert output of
alertmanager -versionhere (if relevant to the issue)Prometheus configuration file: