Giter Site home page Giter Site logo

Comments (9)

mikhail-vl avatar mikhail-vl commented on July 19, 2024 1

@benjie91 Thank you for the update.
I will keep it open to add Sentinel support in the upcoming version.

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024 1

@benjie91 Sentinel supported in the upcoming version 1.2.0 and it's available to test in master.
Please follow BUILD instruction if you would like to try it.

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024

Hello @benjie91. Thank you for submitting the issue.

You should be able to see the connection errors in the grafana log:

grafana    | t=2020-08-13T05:55:52+0000 lvl=eror msg="Metric request error" logger=context userId=0 orgId=1 uname= error="rpc error: code = Unknown desc = dial tcp 127.0.0.1:6379: connect: connection refused" remote_addr=172.23.0.1

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.

from grafana-redis-datasource.

benjie91 avatar benjie91 commented on July 19, 2024

Yep I had checked the log messages and it mentioned:
... uname=admin error="Failed to check plugin health: Health check failed"
My connection string is as follow: redis://xxx-redis-master-0.xxx-redis-headless.xxx.svc.cluster.local:26379/0
I have also tried the redis port but the result is still the same.

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.

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024

@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 redis://xxx-redis-master-0.conan-redis-headless.xxx.svc.cluster.local:6379/0 and check the log files.

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.

from grafana-redis-datasource.

benjie91 avatar benjie91 commented on July 19, 2024

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.

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024

@benjie91 Thank you. I will follow the link and will try to reproduce tomorrow.

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024

Hello @benjie91. I was able to successfully connect to Redis port 6379 when forwarded port using this command

kubectl port-forward svc/SVC-NAME PORT:PORT

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.

from grafana-redis-datasource.

benjie91 avatar benjie91 commented on July 19, 2024

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.

chmod +x redis-datasource_linux_amd64

Thanks for your help and great work. Let's close the issue! =)

from grafana-redis-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.