Comments (9)
@benjie91 Thank you for the update.
I will keep it open to add Sentinel support in the upcoming version.
from grafana-redis-datasource.
@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.
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.
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.
@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.
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.
@benjie91 Thank you. I will follow the link and will try to reproduce tomorrow.
from grafana-redis-datasource.
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.
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)
- Redis and Grafan: JSONPath not returning JSON object correctly HOT 4
- Simple way to query all streams and retrieve length of stream HOT 2
- Add support for FT.SEARCH and FT.AGGREGATE HOT 1
- How to configure add Redis Datasource in values.yaml
- Unable to connect to Redis Datasource via Grafana Cloud HOT 3
- Unable to hide Redis query data HOT 2
- Is this still maintained? HOT 23
- CLIENT INFO fails HOT 5
- TS.MRANGE sometimes doesn't display key in the panel HOT 4
- TS.MRANGE works intermittently HOT 2
- Add FILTER_BY_VALUE support to TS.RANGE and TS.MRANGE
- How to query a value of key without bracket ? HOT 4
- Is it possible to return multiple options when querying an array of json, instead of a single stringified array, in the Grafana dashboard? HOT 3
- Provided dashboards broken in Grafana v10
- Grafana Live: Prevent panels from going blank during dashboard refresh
- docker image Ubuntu basic import redis-datasource-2.2.0
- High and Mediuma CVEs present in latest image (2.2.0)
- TS.MRANGE LATEST HOT 1
- Building
- OSS Redis Cluster: getInstance error: cannot decode redis array into string HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-redis-datasource.