I am using grafana 9.4.7
I have an alert with 3 queries and 4 expressions, in the alert notification I want pull out data from the expressions and display in the alert notification.
I am using an annotation that I found on your documentation like below:
{{ with $values }}
{{ range $k, $v := . }}
Node scale up value: {{ $values.C }}
Current Node value: {{ $values.G }}
Max Nodes value: {{ $values.E }}
{{ end }}
{{ end }}
with AlertValues as the key field name.
The alert is displaying those values but it is doing it 4 times, 1 time each for every expression. Like below. How do I make it only process 1 time for all of the expressions?
Annotations:
- AlertValues =
Node scale up value: 1
Current Node value: 2
Max Nodes value: 5
Node scale up value: 1
Current Node value: 2
Max Nodes value: 5
Node scale up value: 1
Current Node value: 2
Max Nodes value: 5
Node scale up value: 1
Current Node value: 2
Max Nodes value: 5