Alert notification templating not working


I want to use variables in an alert notification as described in Alert notification templating | Grafana Labs.
I tested several variable syntax formats and nothing of this is working.

I send the notification to a webhook with the message ${var} and see this text in the send query. The variable is not templated. I tested it with a Text Box Variable and a constant and both are not working. Actually I want to send server names to my webhook, but however constant variables are not working.

What am I am doing wrong? Is there actually a bug?

Best Regards

1 Like

I checked myself too but seems like NOTHING IS WORKING

webhook request gave me all as it is . - - [23/Feb/2021 07:55:01] "POST /webhook HTTP/1.1" 200 -
ERROR:root:POST request,
Path: /webhook
User-Agent: Grafana
Content-Length: 431
Content-Type: application/json
Accept-Encoding: gzip

{"dashboardId":24,"evalMatches":[],"message":"error di 01\n{ \"pod\": ${pod}, \"container\": \"${container}\", \"job\": \"${job}\" }","orgId":1,"panelId":3,"ruleId":2,"ruleName":"${pod} ${job}","ruleUrl":"https://localhost/di-dashboard?tab=alert\u0026viewPanel=3\u0026orgId=1","state":"no_data","tags":{"container":"${container}","server-down":"true"},"title":"[No Data] ${pod} ${job}"} - - [23/Feb/2021 08:01:01] "POST /webhook HTTP/1.1" 200 -
1 Like

Hi guys,
Any updates on this?