Alerts working but getting some errors - bad response code 400 and Template variables

Hi,

I have setup a simple test alert, via email. It is working and we get the email when the alert fires - all good. When I TEST the alert it throws a “bad response code 400” error - see uploaded image.
[IMG2=JSON]{“data-align”:“none”,“data-size”:“full”,“src”:“https://www.percona.com/forums/filedata/fetch?filedataid=544&type=thumb”}[/IMG2]

Also get the following error in grafana.log :-

Googling the errors seems to point to a Grafana bug that has been fixed in version 4.1.1.

[URL]https://github.com/grafana/grafana/issues/6254[/URL]
[URL]https://github.com/grafana/grafana/issues/6488[/URL]
[URL=“fix(influxdb): fixes bug when using regexps/numbers in tags · grafana/grafana@56340bf · GitHub”]https://github.com/grafana/grafana/c...6ec4ebd2bf668b[/URL]

Any thoughts on this very welcome and if these errors are caused by a grafana bug, I assume they will be resolved by the next PMM release with an updated grafana version?

thanks

VERSIONS: 1.0.7 PMM server and clients

grafana definitely will be updated in the next release.
But it can take some time.

if you want to be alpha tester,
you can use “” container with grafana 4.1.1


docker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
delgod/pmm-server:1.0.7.grafana41

or build you own from the sources - [URL=“https://github.com/delgod/pmm-server/commit/bb3bac739621133c5733ab58ab6e7fc7b52412ce”]https://github.com/delgod/pmm-server...6e7fc7b52412ce[/URL]

Thanks Mykola.

I upgraded the pmm-server to that “…delgod/pmm-server:1.0.7.grafana41” you kindly provided and re-created the alert.

That cleared the red box error when creating the alert “Template variables are not supported in alert queries”.

When I TEST RULE within the alert create, still getting the error “error tsdb.HandleRequest() error bad_response: bad response code 400”. I’ll dig into that since may be a problem our end.