Grafana alerts configuring issue

Hello! I have a Grafana dashboard for Jmeter test results monitoring (Apache JMeter Dashboard using Core InfluxdbBackendListenerClient was used as a template). I have to configure an alert for the Response time graph. I have the following query in metrics:

and alert rule . I get an error in the alerts tab

Template variables are not supported in alert queries

Test rule gives the result:

firing:false
state:“no_data”
conditionEvals:“false = false”
timeMs:“9.992ms”
logs:Array[2]
0:Object
message:“Condition[0]: Query Result”
data:Array[0]
1:Object
message:“Condition: Eval: false, Query Returned No Series (reduced to null/no value)”
data:null

I understand the issue in metric query, and my query seems to have just built-in variables, not template variables.
Could you please help me? thank you in advance :blush: