Hi,

I was looking for to fetch only first alert from all received alerts in
alertmanager.yml file.
Is there a way we can achieve this?

I was doing this, but it's iterating through all alerts in the loop:

[{{ .Alerts.Firing | len }}] {{ range .Alerts -}} {{ if eq
.Labels.problem_name "OPENF" }} Open alerts {{ end }}  {{ end }}

Thanks,
Harsh Kumar

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/CABeutX4p8Kz92WN3%3DB92_TvhN2dUv%3Da1Z3-D_Bdd0X%3DmQ0k5Dw%40mail.gmail.com.

Reply via email to