I have this scenario with prometheus-alert manager alerting:
alert condition: K_status != 3
The alert gets triggered fine and when the value changes back to 3, the alert resolves correctly as well.
The problem starts when it has already alerted based on K_status != 3 and then the telemetry goes missing. Now, it triggers a resolution, which is not correct.
if I add a condition to check if the metric exists or not along with the main condition, will it alert and resolve correctly even when telemetry goes missing? Eg:
K_status != 3 and on (port) K_status
So, it triggers an alert when both conditions satisfy. Now if telemetry goes missing, the 2nd condition will not satisfy, correct? So, in this case will the alert resolve?
--
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/3d859fbf-c188-435e-8bb1-a402410424a3%40googlegroups.com.
The alert should resolve if the query does not give any results.
On Tue, May 26, 2020, 11:22 AM Arnav Bose <arnav...@gmail.com> wrote:
--I have this scenario with prometheus-alert manager alerting:
alert condition: K_status != 3
The alert gets triggered fine and when the value changes back to 3, the alert resolves correctly as well.
The problem starts when it has already alerted based on K_status != 3 and then the telemetry goes missing. Now, it triggers a resolution, which is not correct.
if I add a condition to check if the metric exists or not along with the main condition, will it alert and resolve correctly even when telemetry goes missing? Eg:
K_status != 3 and on (port) K_status
So, it triggers an alert when both conditions satisfy. Now if telemetry goes missing, the 2nd condition will not satisfy, correct? So, in this case will the alert resolve?
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 promethe...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/oUVvsp3IgTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fbbdab5f-7a2c-4dbd-9a9f-db31061b2c96%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/oUVvsp3IgTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/16061c18-255e-43e4-ae0b-55f586ce84dc%40googlegroups.com.
