redis_exporter: Export key value/length does not work with Redis cluster.
Describe the problem
A node of a Redis cluster can redirect queries to the proper node. A cluster-aware Redis client is expected to connect to the specified node to retry a request. redis_exporter does not support that. Export key value/length does not work with a cluster.
What version of redis_exporter are you running?
- 1.9.0
Running the exporter
./redis_exporter -redis.addr redis-cluster-endpoint:6379 -check-single-keys channel:updates
INFO[0000] Redis Metrics Exporter v1.9.0 build date: 2020-07-07-02:25:01 sha1: 3e15a27ef8657e77100a55f10895e1a4fee70f79 Go: go1.14.4 GOOS: linux GOARCH: amd64
INFO[0000] Providing metrics at :9121/metrics
ERRO[0022] MOVED 3527 10.0.1.100:6379
Expected behavior Connect to the specified node to retry a request.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (13 by maintainers)
yes. The change should be minimal. I will raise a PR and discuss further there.
I will do that. I will share what I am planning to do as soon as it is ready.
Thanks for making me aware of redisc - didn’t know about that.
I’m a little pressed for time right now but I can review and merge a PR for the README if you submit one.