Not the answer you need?
Register and ask your own question!

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

mthomasmthomas ContributorCurrent User Role Novice
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.

https://github.com/grafana/grafana/issues/6254
https://github.com/grafana/grafana/issues/6488
https://github.com/grafana/grafana/c...6ec4ebd2bf668b

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

Comments

  • MykolaMykola Percona Percona Staff Role
    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 - https://github.com/delgod/pmm-server...6e7fc7b52412ce
  • mthomasmthomas Contributor Current User Role Novice
    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.
This discussion has been closed.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.