Alert configuration with $__interval variable in query

Hi,
I am using prometheus as data source and I know that the template variables are not supported in alert queries. But, what about $__interval variable?

I don’t see any error message when I click on alert configuration. However, I am getting the following error when I check the state history.

Error: tsdb.HandleRequest() error bad_data: 1:90: parse error: missing unit character in duration

Can someone please confirm the above?
I tried configuring the alert evaluation interval as “1m”

thanks,

2 Likes

Can anyone please share your suggestions?

Hi @anoopmohanpzr.

Did you figure out what is going on when using the $__interval variable? I’m facing the same problem.

Thanks.

I have the same problem, is there any ways to solve it?