Grafanano signalmediumCluster of 11 signals
Card #3559 · Grafana

Template variables not supported in alert queries

We are unable to use template variables within alert queries, which forces us to hard-code values. This creates a significant gap in functionality and makes it difficult to set up dynamic alerts for multiple instances or hosts.

GrafanaUpdated 1d ago0.18
Pain score
0.18/ 1.00 · weighted product of four components
Reach1.00
distinct authors (log-normalized)
Recency1.00
freshness decay, half-life months
Engagement0.40
upvotes + comments, normalized
Monetization0.25
willingness-to-pay cues in evidence
§ Evidence — 3 verified quotes
Presently, you cannot use template variables in alert queries. Not having the ability to use template variables is a major gap in functionality since we have to hard code values in our queries to a...
Forum·@kshull··source ↗
I’m stuck with the “Template variables are not supported in alert queries” bug.
Forum·@nigelhorne··source ↗
If you want to alert on this query, then you will have to remove the template variable and hard code the value.
Forum·@daniellee··source ↗

Comments are a Pro feature — join the conversation, share what you've shipped, hear what others are building.

Upgrade to Pro