I figured out that this part using for creating *[FIRING:1] or [RESOLVED] 
and it works.*
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" 
}}:{{ .Alerts.Firing | len }}{{ end }}] {{ end }}
But I don't now what I should insert inside for getting only one label.

If I insert {{ .labels.alertname }} inside it just broke my email
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" 
}}:{{ .Alerts.Firing | len }}{{ end }}] {{ .labels.alertname }} {{ end }}


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/b23afb1c-85e8-4387-aa3a-013405a3fcb1o%40googlegroups.com.
  • [prometheus-users] Re: How ... 'Владимир organ2' via Prometheus Users

Reply via email to