I’m currently facing an issue with accessing the results of a Query Expression within my custom notification template for Managed Grafana alerts. Despite configuring everything correctly (to my knowledge), when I try to use the template variable {{ .Values.value }}
to display the query result value in my alarms, it consistently returns 0
, indicating that the actual value is not being fetched or accessed correctly. Attached is a screenshot of the Metric expression setup for context.
I have already invested a considerable amount of time trying to troubleshoot and resolve this issue but to no avail. If anyone here has encountered a similar problem or has insights on how to properly access and use Query Expression results in custom notification templates for alerts in Managed Grafana, your guidance would be greatly appreciated. Below is a snippet of how I’m attempting to access the value in the template:
*Value*: {{ .Values.value }}
Thank you in advance for your help and suggestions!