-
Notifications
You must be signed in to change notification settings - Fork 886
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
Make redis_exporter cluster-aware #185
Comments
Thanks for raising this issue. |
Working with redis in clustered modeWhen redis is run in "clustered" mode you can connect to a single node and run
You could then use this information to connect to each node and fetch any metrics you needed. Output of INFO ALLThe output of
The tell that you're in a redis cluster is that the above includes the following:
|
Thanks, that's helpful. Just to clarify something (again, not really familiar with Amazon ElastiCache): in And a more general thought: the prometheus' way of doing things is to keep the service discovery aspect outside of the exporter (see #174 ) for related discussion so not really sure if we should start pulling this into the exporter or if this should be the job of your orchestration/service discovery system. |
Yes.
I would prefer to do this, to find the targets, but I've not been able to figure out a sane way to query the individuals nodes out. I'm going to look into it now. |
It's possible to get the endpoint for all elasticache endpoints it seems by using the following query:
I'm not entirely sure how to get Prometheus to do the same query as it uses the EC2 service discovery tooling. |
I think the way to do this would be to use the file_sd_config and have a little script periodically pull the new info via the |
Closing this issue for now as the |
One possible change is to allow a Another option, is we could pressure Amazon to include Prometheus metrics in their cloud service. 😁 |
The target param is worth looking into but would need a bit of refactoring to reduce/remove global state (see #126 ). |
Hi @oliver006 . Was is the conclusion for this? Have we found a way to get metrics from all the nodes of a Redis Cluster without using a script? @KushalP How is the script thing working out for you and do you see any overheads? Thanks. Looking for a solution for this, have the exact same use-case. |
Problem statement
Many cloud providers offer a redis cluster as a service. These serviced clusters don't allow access to all of the underlying redis instances in a simple way. Instead, they expose a single endpoint that cluster-aware clients need to connect to.
Desired outcome
Make
redis_exporter
cluster-aware such that it can connect to a single instance in the cluster and track metrics for all nodes in the cluster.The text was updated successfully, but these errors were encountered: