-
Notifications
You must be signed in to change notification settings - Fork 38
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
Plugin goes down when used with Grafana Docker Container. #133
Comments
@jbguerraz I'll be happy to fix this with some pointers. |
@MohammadGhazanfar - I was facing similar issue but installing it using cli fixed the issue. Also, you can configure the druid credentials directly in |
Thanks @saketbairoliya2 ! |
Keeping this open because it still tracks an issue with the plugin. |
Any news? |
Hello @alvaro-ponce , @MohammadGhazanfar, How is the datasource configured ? does the connection test pass there ? |
Hey @jbguerraz! |
@alvaro-ponce you can work around this by provisioning the datasource using a file. See @saketbairoliya2 's above. |
I indeed reproduced the issue @MohammadGhazanfar Interesting is that if you go to explore at first, then run a query, it works. The bug on the plugin side is here: https://github.com/grafadruid/druid-grafana/blob/master/pkg/druid.go#L399 Maybe here https://github.com/grafadruid/druid-grafana/blob/master/pkg/druid.go#L392 , with something like:
Feel free to fix it @MohammadGhazanfar |
Thanks @jbguerraz ! I will look into this and submit a PR! |
@jbguerraz Created a PR here for this: #138 |
Thank you @MohammadGhazanfar ! Closing this issue since #138 is merged now 👍 |
Hi!
So, I observed something weird when working with this plugin and using the grafana docker container.
I started my grafana docker instance using this command,
Grafana started up without any issues. I was able to access it on port 3000 via the browser.
Then, I went to the plugin's section via the gear icon on bottom left of the homepage. Screenshot shown below
After this, I installed this plugin.

Now, when try to create a panel, I get this error: "An error occurred in the plugin". This happened before I can type anything.
I see these logs from the grafana container,
After this, any attempts to add a query result in continuous errors

logs says this,
I am assuming that an empty query was issued by grafana to the plugin. This caused the plugin to crash and not recover after that. However, I am not sure why this happens only on the grafana container. These exact steps seem to work fine when I run grafana locally.
An interesting thing is the difference in the log statement, the docker plugin has this
_________________________GRAFANAQUERY___________________________
whereas, when run locally, there is a space betweenGRAFANA
andQUERY
. I can also see that the log being printed here shows a space betweenGRAFANA
andQUERY
Could it be that the versions getting installed on the container and locally are different? I verified these and found them to be the same.
The same behavior was also observed when I hosted this docker instance on AWS EKS.
I will be happy to fix this myself with a few pointers.
The text was updated successfully, but these errors were encountered: