Alerts using VARIABLE

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