I managed to do it!!!.
If you wanna make your own subject (title) with particular labels you 
should use {{ .GroupLabels.your_label }} and put it in this row:


{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" 
}}:{{ .Alerts.Firing | len }}{{ end }}] __put here___ {{ end }}

Now my notification looks like this:

-- 
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/bf98c5a8-e5e9-4073-85b3-78029ac97d04o%40googlegroups.com.
  • [prometheus-users] Re: How ... 'Владимир organ2' via Prometheus Users
    • [prometheus-users] Re:... 'Владимир organ2' via Prometheus Users

Reply via email to