Closed gillg closed 11 months ago
By wrinting that issue... I'm wondering if it's not because I point the exporter to a readonly endpoint... It's still strange because the other metrics vary when my application hit the RW endpoint, so it's not really consistent in that case.
Can you run with the debug flag enabled to see what the difference might be?
Ok, I added the debug flag and the data get by "info" on the readonly endpoints is different. I manualy made some checks, and in fact the RO endpoint in pointing to the slave replica. It's not pointing to the master as read only... It's a little bit confusing but that explains why hit & misses are wrong.
But... if redis expose shared data like the number of commands and their type on the replica, I don't understand why it's not consistent with the hit/miss values. Do you think the correct approach in that case is to monitor the RW endpoint or the two endpoints ?
Yeah, monitor the RW instance. Or all of them, but separately (e.g. don't scrape a round-robin load-balanced endpoint)
Describe the problem When I compare
INFO Stats
keyspace_* with the exporter value I see a problem. The exporter always displays "0" whereINFO
is displaying:What version of redis_exporter are you running? Please run
redis_exporter --version
if you're not sure what version you're running.Running the exporter REDIS_ADDR=redis://xxxxxxxxxx-ro.xxxxxx.ng.0001.xxxxx.cache.amazonaws.com:6379
Screenshots