Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
YouZhengChuan opened this issue Sep 16, 2021 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@YouZhengChuan
Copy link

YouZhengChuan commented Sep 16, 2021

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

@jbguerraz
Copy link
Contributor

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)

@raakasf
Copy link
Collaborator

raakasf commented Oct 8, 2021

@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?

@raakasf raakasf self-assigned this Oct 8, 2021
@raakasf raakasf added the enhancement New feature or request label Oct 8, 2021
@jbguerraz
Copy link
Contributor

Duplicates #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants