Figuring Out Labels and Values For Alerting

I am trying to figure out how to dynamically have a server name and a value added in the summary and description utilizing a MySQL data source. I am querying for two columns, Server and lagTotal. I would like to have the something like {{ $labels.Server }} or {{ $values.A }} show the server name and {{ $labels.lagTotal }} or {{ $values.B }} show up in an email dynamically. However, only the {{ $labels.Server }} or {{ $values.A }} shows in the email

I am on Grafana 9.3.1

Did you find the solution why ?

Yes. The issue was by default the alerts were on a table. I set it to time series and it worked fine

1 Like