Adding Label Values to Alert Notifications -- How is this done?

Hi all, had a question about adding alerts.
In Grafana’s documentation here, it’s suggested that the query triggering the alert can have labels from the query templated into the alert message. As per the documentation, this is how:

Refer to the alert query labels in the alert rule name and/or alert notification message field by using the ${Label} syntax.

However, I can’t seem to get this to work. Using ${LabelName}, or {{LabelName}}, or ${{LabelName}}, nothing seems to get templated correctly.

Has anyone had any success with this? Thanks so much.

2 Likes

I am having the same issue. I am unable to use the Label in Grafana alert text.

2 Likes

Me too. Have you solved it now

2 Likes

This topic was automatically closed after 365 days. New replies are no longer allowed.