Grafana Alerting

Hi All ,

When i am trying to setup alerting mechanism in grafana i am facing the below issue .

" Template Variables are not supported in alert queries"

I am getting above error . as per my analysis i found that i need to use regular expression instead of variables . Can some one help me to write the queries with regular expressions
Below is the query i am using right now .

sum (rate(node_cpu_seconds_total{mode!=‘idle’,mode!=‘user’,mode!=‘system’,mode!=‘iowait’,mode!=‘irq’,mode!=‘softirq’,instance=~"$node:$port",job=~"$job"}[5m])) * 100
Please help on this .