Alerting using influxdb

Hi all,

I wonder if someone can help me with getting alerts working using an Influxdb backend. I’m able to query / plot data fine, but all my alerts always fail. Doing a test rule returns

tsdb.HandleRequest() error Get "localhost:8086?db=db&epoch=s&q=SELECT+<my query here>": unsupported protocol scheme "localhost"

Any ideas?

Figured it out, just needed a night to sleep on it apparently.

I had my grafana influx connection set up with a URL of localhost:8086: it was marked with a red box in the config which was a hint, but didn’t seem to cause any trouble in the graphing. Changing this to http://localhost:8086 fixed the alerts.