sentinel_master_ok_sentinels and sentinel_master_ok_slaves not available
joostdebruijn opened this issue · 3 comments
Describe the problem
I don't see the metrics sentinel_master_ok_sentinels and sentinel_master_ok_slaves when monitoring a Redis Sentinel instance (running v7.2.5), but other Sentinel metrics are visible:
# HELP redis_sentinel_master_sentinels The number of sentinels monitoring this master
# TYPE redis_sentinel_master_sentinels gauge
redis_sentinel_master_sentinels{master_address="<>:6379",master_name="<>"} 4
# HELP redis_sentinel_master_slaves The number of slaves of the master
# TYPE redis_sentinel_master_slaves gauge
redis_sentinel_master_slaves{master_address="<>:6379",master_name="<>"} 2
# HELP redis_sentinel_master_status Master status on Sentinel
# TYPE redis_sentinel_master_status gauge
redis_sentinel_master_status{master_address="<>:6379",master_name="<>",master_status="ok"} 1
# HELP redis_sentinel_masters The number of masters this sentinel is watching
# TYPE redis_sentinel_masters gauge
redis_sentinel_masters 1
# HELP redis_sentinel_running_scripts Number of scripts in execution right now
# TYPE redis_sentinel_running_scripts gauge
redis_sentinel_running_scripts 0
# HELP redis_sentinel_scripts_queue_length Queue of user scripts to execute
# TYPE redis_sentinel_scripts_queue_length gauge
redis_sentinel_scripts_queue_length 0
# HELP redis_sentinel_simulate_failure_flags Failures simulations
# TYPE redis_sentinel_simulate_failure_flags gauge
redis_sentinel_simulate_failure_flags 0
# HELP redis_sentinel_tilt Sentinel is in TILT mode
# TYPE redis_sentinel_tilt gauge
redis_sentinel_tilt 0
What version of redis_exporter are you running?
1.57.0
Running the exporter
/usr/local/bin/redis_exporter \
--redis.addr="redis://localhost:26379" \
--web.listen-address="0.0.0.0:9122" \
--redis.user=\
--redis.password=
Just to make sure, I upgraded to the latest version (v1.61.0), but the metrics aren't visible.
Oh weird, thanks for raising this issue!
I don't use sentinel myself and I have no idea why these metrics are missing. If someone wants to take a look and submit a fix I'm happy to help with reviewing it.
Thanks for replying! During troubleshooting to find some pointers for a fix, I enabled debug mode and I saw the user was missing some permissions in the ACL... My bad!
For anyone interested in the right permissions for monitoring a Sentinel:
-@all +@connection -command +client -hello +info -auth +sentinel|masters +sentinel|replicas +sentinel|slaves +sentinel|sentinels +sentinel|ckquorum