logzio / grafana-logzio-datasource

Apache License 2.0
6 stars 5 forks source link

Datasource does not support alerting queries #2

Open SerhiiAksiutin opened 6 years ago

SerhiiAksiutin commented 6 years ago

Hi,

I am trying to set up an alert for Hipchat (Load test room) using Grafana + Logz io (Quota View panel)

On alert tab in Grafana I am getting "The datasource does not support alerting queries" and when I try to test the rule getting this error:

firing:true
state:"alerting"
conditionEvals:" = true"
timeMs:"3.983ms"
error:"tsdb.HandleRequest() error Could not find executor for data source type: logzio"\
screen shot 2018-08-30 at 4 08 31 pm

The alert doesn't appear to work because of this. But if I pause it and then resume I will get desired notification in hipchat with the error (because of "If execution error or timeout":"set alerting state" rule)

screen shot 2018-08-30 at 4 13 23 pm

Source: https://logz.io/blog/grafana-integration/ https://logz.io/blog/enhancing-account-utilization/

eeddaann commented 6 years ago

I encountered the same issue and found a kludge solution - not recommended but better than nothing.. tl;dr: It actually overrides elasticsearch's built-in datasource (which supports alerting) to send logzio's header and it works like a charm - so no need for this datasource.

SerhiiAksiutin commented 6 years ago

Btw, I have contacted Logz.io support for the matter. They have created a future request without ETA. Future request ID is... Actually they didn't provide with one.

eeddaann commented 6 years ago

As I mentioned it depends on Grafana's back-end so for now Logz.io's guys can't really solve it from their end. I tried to find in Grafana's code how Elastic's plugin "talks" to the backend - If this plugin could use the same interface it would be great, but i suspect that it based on the plugin id. that's why I decided to change Elastic's plugin as a quick and dirty workaround.