Reference query values in AlertValues annotation

Hi, I have a Query that looks like the following, with Azure Monitor as Data Source.

How can I use the values from the Query in an AlertValues annotation?

I tried the following,

{{ with $values }}
**Alert**: Disk usage > 90%
- **Name**: {{ $values.Usage }}
- ** Used disk space**:  {{  $values.C % }}
{{ end }}

but that returns;
image

Many thanks!

1 Like