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