-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unable to connect to Redis Datasource via Grafana Cloud #294
Comments
Hi @TheOldMan2000 - I'm taking over maintenance of this plugin - so forgive me if I'm missing some critical context here. This sounds like your trying to connect to your Redis instance (on your 48 core 6GB Centos machines) from your Grafana cloud account. I might be missing something here, but I don't think your VPS and your free grafana instance are going to run on the same machine. So trying to connect via localhost:6379/127.0.0.1:6379 (or for that matter a unix socket) simply isn't going to work. Now if you installed Grafana on your VPS and ran it from there, sure that should work as they would be on the same server. But as it stands you would need either a DNS name or IP address that the plugin can reach out to in order to connect to Redis. |
Hello @slorello89 Thank you for the suggestions. I’m unsure but I assumed it would work because Grafana Agent was running on the same VPS, and I have no problem at all with the other Redis plugin for Grafana Cloud, as seen in the image above. |
Hi @TheOldMan2000 - Sorry for the delayed response, I looked into it wrt the grafana agent, I don't see any indication that the Grafana Agent can use this plugin (unless I'm dramatically wrong about something - if so please feel free to correct me), so you would need to use the external-IP/hostname for your Redis instance from Grafana Cloud in order to access it. Accessing Redis on localhost:6379 from Grafana Cloud will not work since it's not there. Connect to the real host/ip and make sure your firewall is opened up and it should just work. |
Summary
Hello! Unable to connect to any of my Redis 7 instance pools on my VPS either by localhost ports or via Unix socket. Any help appreciated!
Relevant information
I have a small 48 core 6GB CentoOS 7/Virtuozzo WHM/Cpanel based cloud VPS with several small Redis Server v7.0.10 instances, each is fully working that I use for my various Apache vhosts/websites.
Each instance or pool runs under SystemD and binds to 127.0.0.0.1, they are currently un-passworded and are available via port and Unix sockets:
localhost:6379
localhost:6380
localhost:6381
… to
localhost:6386
/var/lib/redis/redis.sock
/var/lib/redis/redis2.sock
/var/lib/redis/redis3.sock
… to
/var/lib/redis/redis8.sock
I have installed the 3 related Redis plugins on my free Grafana Cloud:
When trying to connect to any instance via either localhost:6379 or redis://localhost:6379 etc, I get this error message via the Datasource Standalone tab:
getInstance error: dial tcp 127.0.0.1:6379: connect: connection refused
If I try the Unix socket connection method, I get this on the Datasource Socket tab:
getInstance error: dial unix /var/lib/redis/redis.sock: connect: no such file or directory
I can’t find any similar messages in my Apache or CSF/LFD firewall logs related to it.
I have ACL user names created (one for Grafana to eventually use) but all currently set as nopass so I’m leaving the ACL option disabled and not entering any usernames or passwords.
However when I try using the other Redis infrastructure plugin v0.0.3, that comes with the Redis Dashboard for Prometheus Redis Exporter 1.x it works fine and connects immediately. However that one doesn’t support multiple instances so it’s not ideal.
(BTW, the links to the demo Dashboard on the Datasource overview page are broken, I get a message saying Dashboard not found).
Many thanks!
The text was updated successfully, but these errors were encountered: