grafadruid/druid-grafana

The graph alert created by this druid-grafana plugin does not work

YouZhengChuan opened this issue · 3 comments

The graph can query the display data normally, but the Alert operation fails.

image

The grafana log shows the following error:

EROR[09-16|15:01:00] Alert Rule Result Error                  logger=alerting.evalContext ruleId=2 name="pkt_loss alert" error="request handler error: failed to query data: Failed to query data: rpc error: code = DeadlineExceeded desc = context deadline exceeded" changing state to=alerting```

grafana version: 8.1.3
plugin version: grafadruid-druid-datasource @ 1.2.0

Hello @YouZhengChuan
I believe this could be due to __from and __to variables usage, just like here: #88 (comment)
You can workaround it by filtering __time with something like between now and now - 10 minutes or so.
If you feel it, you can contribute the replacement of __from and _to from the backend side of the plugin (that would be awesome! and I'll be happy to provide support)

@jbguerraz @YouZhengChuan do you know if anyone is working on this? I just got hit by this and I am willing to work on it (already looking at how to do this). Here's my proposed solution, in my use cases I think users would like if the interval got populated automatically to the same value selected in Grafana time picker. So, we would just set it to the same value selected by default. What do you guys think?

Duplicates #88