I have Grafana OSS 11.4.0 on a RaspberryPi4 and for some time now I fail to get values from Alerts into the notification emails (that used to work before some new version of Grafana changed things and from there on it does not work anymore).
I am at a point where I wonder if something in my system may be faulty because I cannot seem to get anything from the annotation section expand to something at all.
I have this summary section in my alert:
Summary:
Values: {{ $values }}
Value: {{ $value }}
index values F {{ index $values "F" }}
values.F.Value {{ $values.F.Value }}
Values.F: {{ $values.F }}
Valuestring: {{ .ValueString }}
and my template for the notification is just the basic default.message. When I receive an email, it looks like this:
Maybe someone has an idea what I can do to get this working again (the idea is to include the last values of the various queries by using a reduced range like in the screenshot value F is a reduced A - the alert rule is based on a classic condition (expression M)
(the idea is to include the last values of the various queries by using a reduced range like in the screenshot value F is a reduced A - the alert rule is based on a classic condition (expression M)
Great! Thank you for this tip. What still confuses me, is the fact that the documentation explains to use templating within the annotations - if I look at the diagram at Templates there is templating used in the annotation {{index $labels “instance”}} and then carried over to the notification template by using .Alerts.Annotations.summary - I thought I tried exactly this but either I failed getting it right or something is odd here.
Anyways, I finally can get hold of values in my alarm emails again