Back to results for “Monitoring”
Redis › Redis Sentinel & High Availability

How do you check the current status of a Sentinel deployment to confirm it is properly monitoring your Redis primary and replicas?

Intermediate

Answer

You connect to any Sentinel instance using redis-cli and run the SENTINEL MASTERS command to see the currently monitored primary's status, or SENTINEL SLAVES to see the status of monitored replicas, confirming Sentinel has correctly discovered and is actively monitoring your entire Redis deployment as expected.
redis-cli -p 26379 sentinel masters
redis-cli -p 26379 sentinel slaves mymaster
Real-world example A database administrator verifies a newly deployed Sentinel setup by checking that it has correctly discovered both the primary and all expected replicas, confirming the monitoring configuration is working as intended before relying on it in production.

Common follow-ups: What port does Sentinel typically run on by default?;How do you check whether Sentinel currently believes the primary is healthy or in a failure state?