-
What Grafana version and what operating system are you using?
Grafana 8.1.2 with NGAlert enabled -
What are you trying to achieve?
I want to see alert name in notifications titles using my own template -
How are you trying to achieve it?
I’ve created template:
{{ define "template_title" }}
[{{.Status}}] {{ .Labels.alertname }}
{{ end }}
and set it as templated title of the Slack message.
I get this code here - Message templating | Grafana documentation
-
What happened?
Alert message in Slack is empty with just status
-
What did you expect to happen?
I expect to get normal alert message -
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No
- Did you follow any online instructions? If so, what is the URL?
Message templating | Grafana documentation