# Using value from Alert query in Alert notification

**URL:** <https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812>\
**Category:** Alerting\
**Tags:** alert-notifications, alerting\
**Created:** [February 23, 2026, 8:31am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812 "2026-02-23T08:31:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![philsmit](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@philsmit](https://community.grafana.com/u/philsmit)\
**Post date:** [February 23, 2026, 8:31am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/1 "2026-02-23T08:31:02Z")

</div>

**Grafana version: v12.1.0**

Hi,

I have the following alert with two InfluxDB queries and then two expressions, one as the alert condition and the other a reduce expression to get the count of ‘processing’.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/f/a/fad69ea79c61613cb003155c7cb093c11211a15b.png)

I’ve tried using `{{ .Values.processingCount }}` in my alert notification but this only works if the expression is set as the alert condition.

How do I populate my notification description with the value of the `processingCount` expression when it’s not set as the alert condition? In my email alert I just get `[no value]`.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/4/3/4371bfb6c505db29b755385dd8dee86a09b33aa1.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [February 23, 2026, 10:33am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/2 "2026-02-23T10:33:55Z")

</div>

try this..  
Current processing file count: {{ $values.processingCount.Value }}  
Current processing file count: {{ $values.A.Value }}%  
A : Query | Ref ID

---

<div class="post-metadata">

**Author:** ![philsmit](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@philsmit](https://community.grafana.com/u/philsmit)\
**Post date:** [February 23, 2026, 11:24am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/3 "2026-02-23T11:24:08Z")

</div>

Thanks for the quick reply. Tried your suggestions in my alert notification description:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/a/b/abefe05babd65ea3fa2736ac21b1f18bb4c320a2.png)

But in the alert email I get [no value]

![image](https://us1.discourse-cdn.com/grafana/original/3X/f/a/fa309ede85626a3e2e19faaee0a33eb266081330.png)

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [February 23, 2026, 11:35am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/4 "2026-02-23T11:35:20Z")

</div>

Set processingCount as alert condition, then use  
{{ $values.processingCount.Value }}  
If condition uses processingQL, then use  
{{ $values.processingQL.Value }}  
Ref ID must match exactly.

---

<div class="post-metadata">

**Author:** ![philsmit](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@philsmit](https://community.grafana.com/u/philsmit)\
**Post date:** [February 23, 2026, 12:35pm UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/5 "2026-02-23T12:35:47Z")

</div>

That’s the issue I am running into. When I set my expression `processingCount` as my alert condition, I **can** inject the value of the expression into my alert notification.

It’s when the expression is not part of the alert condition logic, that it’s not possible to inject the value.

My alert condition has it’s own query, but I am using a 2nd query to pull out the processing count to then inject into my notification message for additional information. It doesn’t seem possible to use the value from the 2nd query (or even a reduce expression on the same query), in the notification message?

Maybe I am missing something?

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/e/6/e6ef050676f000b42ed136b74367ec7439609e8e.png)

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [February 24, 2026, 10:27am UTC](https://community.grafana.com/t/using-value-from-alert-query-in-alert-notification/161812/6 "2026-02-24T10:27:05Z")

</div>

may be  
processingCount is set as the alert condition  
OR  
It is used inside an expression that becomes the alert condition  
Then Grafana includes it in $values.  
In my case work fine  
summary: “Free space low on {{ $labels.instance }}”  
description: |  
Host: {{ $labels.description }}  
IP: {{ $labels.instance }}  
Free Space: {{ printf “%.2f” $values.A.Value }}%

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/8/e/8ed769e20699840e68bce99f0f1560bd8d5235be.png)  
i am using prometheus  
thanks
