Skip to main content
Version: dev

Monitoring Redis Sentinel

Collect and monitor Redis Sentinel instances for key performance metrics.

Pre-monitoring Requirements

Before adding the Redis Sentinel monitor, please ensure the following:

  1. The Redis Sentinel service is running and the sentinel port (default 26379) is accessible from the HertzBeat server.
  2. If authentication is configured on the Sentinel instance, prepare the username and password.
  3. No firewall rules are blocking the sentinel port between HertzBeat and the target host.

Configuration Parameters

ParameterParameter Help Description
Target HostThe IPv4, IPv6 address or domain name of the host being monitored. Note: do not include protocol headers, e.g. 192.168.0.1.
PortThe listening port of the Redis Sentinel instance. Default: 26379.
TimeoutTimeout value for the connection, in milliseconds. Default: 3000.
UsernameThe username used to authenticate with the Redis Sentinel instance. Optional.
PasswordThe password used to authenticate with the Redis Sentinel instance. Optional.
Collection IntervalHow often HertzBeat polls this monitor, in seconds. Minimum value: 30s.
Description/RemarksAdditional notes and descriptions for this monitor.

Collection Metrics

Metric Set: sentinel

Sentinel overview metrics collected via INFO sentinel.

Metric NameMetric UnitMetric Help Description
sentinel_mastersNoneTotal number of Redis master nodes monitored by this Sentinel instance.
sentinel_tiltNoneWhether the Sentinel is currently in TILT mode (time-skew safety mode). 1 means TILT is active, 0 means normal.
sentinel_running_scriptsNoneNumber of Lua scripts currently being executed by the Sentinel.
sentinel_timedout_scriptsNoneNumber of scripts that have timed out.
sentinel_scripts_queue_lengthNoneNumber of scripts currently waiting in the execution queue.
sentinel_simulate_failure_flagsNoneBitmask flags used for failure simulation testing (via SENTINEL SIMULATE-FAILURE).

Metric Set: master_status

Status information for each monitored Redis master node.

Metric NameMetric UnitMetric Help Description
master0NoneStatus string for the first monitored master, e.g. name=mymaster,status=ok,address=127.0.0.1:6379,slaves=1,sentinels=3.
master1NoneStatus string for the second monitored master (if present).
master2NoneStatus string for the third monitored master (if present).

Metric Set: server

Server-level information for the Sentinel process, collected via INFO server.

Metric NameMetric UnitMetric Help Description
redis_versionNoneVersion string of the Redis (Sentinel) binary.
osNoneOperating system on which the Sentinel is running.
arch_bitsNoneCPU architecture (32 or 64 bits).
process_idNonePID of the Sentinel server process.
tcp_portNoneThe TCP port on which the Sentinel is listening.
uptime_in_secondssNumber of seconds since the Sentinel process started.
uptime_in_daysdNumber of days since the Sentinel process started.
hzNoneFrequency of the server's background event loop (calls per second).
executableNoneAbsolute path to the server executable.
config_fileNoneAbsolute path to the sentinel configuration file.

Metric Set: clients

Client connection statistics, collected via INFO clients.

Metric NameMetric UnitMetric Help Description
connected_clientsNoneNumber of client connections currently open (excluding connections from replicas).
blocked_clientsNoneNumber of clients blocked waiting on a blocking command (e.g. BLPOP, WAIT).
maxclientsNoneThe configured maximum number of client connections allowed.
client_recent_max_input_bufferNoneLargest input buffer size (in bytes) seen across all current client connections.
client_recent_max_output_bufferNoneLargest output buffer size (in bytes) seen across all current client connections.

Metric Set: stats

General statistics, collected via INFO stats.

Metric NameMetric UnitMetric Help Description
total_connections_receivedNoneTotal number of connections accepted by the server since startup.
total_commands_processedNoneTotal number of commands processed by the server since startup.
instantaneous_ops_per_secNoneNumber of commands processed per second (real-time snapshot).
rejected_connectionsNoneNumber of connections rejected because the maxclients limit was reached.
total_net_input_bytesNoneTotal bytes of data received from clients since startup.
total_net_output_bytesNoneTotal bytes of data sent to clients since startup.

Metric Set: cpu

CPU consumption statistics, collected via INFO cpu.

Metric NameMetric UnitMetric Help Description
used_cpu_sysNoneSystem CPU time consumed by the Sentinel server process (kernel mode).
used_cpu_userNoneUser CPU time consumed by the Sentinel server process (user mode).
used_cpu_sys_childrenNoneSystem CPU time consumed by the background child processes (kernel mode).
used_cpu_user_childrenNoneUser CPU time consumed by the background child processes (user mode).