Logging is here!

Redis Sentinel

Agent Check Agent Check

Supported OS: Linux Mac OS Windows

Overview

Get metrics from Redis’s Sentinel service in real time to:

  • Visualize and monitor sentinels states
  • Be notified about failovers

Setup

The Redis’s Sentinel check is NOT included in the Datadog Agent package.

Installation

To install the Redis’s Sentinel check on your host:

  1. Download the Datadog Agent.
  2. Download the check.py file for Redis’s Sentinel.
  3. Place it in the Agent’s checks.d directory.
  4. Rename it to redis_sentinel.py.

Configuration

To configure the Redis’s Sentinel check:

  1. Create a redis_sentinel.d/ folder in the conf.d/ folder at the root of your Agent’s directory.
  2. Create a conf.yaml file in the redis_sentinel.d/ folder previously created.
  3. Consult the sample redis_sentinel.yaml file and copy its content in the conf.yaml file.
  4. Edit the conf.yaml file to point to your server and port, set the masters to monitor.
  5. Restart the Agent.

Validation

Run the Agent’s status subcommand and look for redis_sentinel under the Checks section.

Data Collected

Metrics

redis.sentinel.known_sentinels
(gauge)
number of sentinels detected
shown as instance
redis.sentinel.known_slaves
(gauge)
number of slaves detected
shown as instance
redis.sentinel.last_ok_ping_latency
(gauge)
number of seconds since last OK ping
shown as second
redis.sentinel.ok_sentinels
(gauge)
number of sentinels up and running
shown as instance
redis.sentinel.ok_slaves
(gauge)
number of slaves up and running
shown as instance
redis.sentinel.link_pending_commands
(gauge)
number of pending sentinel commands
shown as command
redis.sentinel.ping_latency
(gauge)
latency of a sentinel ping
shown as millisecond
redis.sentinel.failover
(count)
number of failovers detected
shown as occurrence

Events

The Redis’s Sentinel check does not include any events at this time.

Service Checks

The Redis’s Sentinel check does not include any service checks at this time.

Troubleshooting

Need help? Contact Datadog Support.

Further Reading

Learn more about infrastructure monitoring and all our integrations on our blog