# Alerts using VARIABLE

**URL:** <https://community.grafana.com/t/alerts-using-variable/42464>\
**Category:** InfluxDB\
**Tags:** templating, alerting\
**Created:** [February 1, 2021, 6:02am UTC](https://community.grafana.com/t/alerts-using-variable/42464 "2021-02-01T06:02:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjay6](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sanjay6](https://community.grafana.com/u/sanjay6)\
**Post date:** [February 1, 2021, 6:02am UTC](https://community.grafana.com/t/alerts-using-variable/42464/1 "2021-02-01T06:02:19Z")

</div>

Hi, can we send alert notifications when use variable in our flux query in dashboard, Because we are facing a issue when processing it.  
Thanks,

Regards,  
SANJAY S

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 1, 2021, 7:00am UTC](https://community.grafana.com/t/alerts-using-variable/42464/2 "2021-02-01T07:00:16Z")

</div>

> **[Configure Alerting | Grafana documentation](https://grafana.com/docs/grafana/latest/alerting/alerting-rules/)**
>
> Configure alerting

> The query used in an alert rule cannot contain any template variables.

---

<div class="post-metadata">

**Author:** ![sanjay6](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sanjay6](https://community.grafana.com/u/sanjay6)\
**Post date:** [February 1, 2021, 9:03am UTC](https://community.grafana.com/t/alerts-using-variable/42464/3 "2021-02-01T09:03:57Z")

</div>

Thanks,  
Is there any other way.

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 1, 2021, 12:30pm UTC](https://community.grafana.com/t/alerts-using-variable/42464/4 "2021-02-01T12:30:48Z")

</div>

Sure, create panel/query for each variable value, so you won’t need dashboard variable at all → no problem for alerting.

Generally, Grafana is visualization tool first. Alerting is not a strong point, so if Grafana alerting doesn’t fit for your use case, then you should use another alerting. E.g. InfluxDB offers alerting itself [Create monitoring checks in InfluxDB | InfluxDB OSS 2.0 Documentation](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/checks/create/)

---

<div class="post-metadata">

**Author:** ![sanjay6](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sanjay6](https://community.grafana.com/u/sanjay6)\
**Post date:** [February 1, 2021, 12:52pm UTC](https://community.grafana.com/t/alerts-using-variable/42464/5 "2021-02-01T12:52:47Z")

</div>

Thanks,  
But alert mail is not working in InfluxDB v2.0 and I’ve tried it.  
If you worked in Influx v2 alert mail can you please send a sample task in influx and walk me through it.

Regards,  
SANJAY S

---

<div class="post-metadata">

**Author:** ![sanjay6](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sanjay6](https://community.grafana.com/u/sanjay6)\
**Post date:** [February 1, 2021, 12:54pm UTC](https://community.grafana.com/t/alerts-using-variable/42464/6 "2021-02-01T12:54:04Z")

</div>

Are there any visualization tools like grafana available?

Regards,  
SANJAY S
