-
Notifications
You must be signed in to change notification settings - Fork 39
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
Connection issue to redis deployed in k8s #38
Comments
Hello @benjie91. Thank you for submitting the issue. You should be able to see the connection errors in the grafana log:
Have you tried to connect to Sentinel port 26379 or to Redis port 6379? Datasource supports only Redis connection. Sentinel and Cluster API will be introduced in upcoming versions. |
Yep I had checked the log messages and it mentioned: If you need more info, my grafana instance is also deployed on kubernetes and they are able to talk to each other as I tried pinging the redis url too from the grafana instance. Other things that I have tried include portforwarding the redis port to my local computer and using localhost to connect too in case the connection is made from my computer instead of the server. |
@benjie91 Port 26379 is Sentinel port and it's not supported in the current version. Sometimes, Grafana after failed health-check got stuck and may not accept the new URL parameter. Could you please try to recreate Datasource as Is it the correct link I can follow to install and try the bitnami/Redis helm chart? https://docs.bitnami.com/tutorials/deploy-redis-sentinel-production-cluster/. Also, just want to confirm that your are using Grafana 7.X. |
Yes, I'm using Grafana v7.1.3! You can also follow that link you provided. I have tried connecting directly to the master redis which is 6379 and the log message is still the same as before. |
@benjie91 Thank you. I will follow the link and will try to reproduce tomorrow. |
Hello @benjie91. I was able to successfully connect to Redis port 6379 when forwarded port using this command
Did you provide a password when configured Data source? There was no correct error message displayed when the PING command failed, which is now fixed in master. You can try to build datasource following https://github.com/RedisTimeSeries/grafana-redis-datasource/blob/master/BUILD.md instructions to see if master will work for you. Meanwhile, I will add Sentinel support. |
I was able to resolve the issue. It was not related to the connection but rather because when I copied the plugin into the grafana plugin directory, I did not change the permission the redis driver to executable. It took a while for me to troubleshoot.
Thanks for your help and great work. Let's close the issue! =) |
@benjie91 Thank you for the update. |
@benjie91 Sentinel supported in the upcoming version 1.2.0 and it's available to test in master. |
Summary
Connection issue to redis deployed in k8s.
Relevant information
I have setup a redis-sentinel database using bitnami/redis helm chart. However, on connecting to it, it always say plugin health check failed. No helpful logs as well to debug this issue.
The text was updated successfully, but these errors were encountered: