Skip to main content
Version: v1.6.x

Monitorin REDIS database

Collect and monitor the general performance Metrics of Redis database. Support REDIS1.0+.

Configuration parameter

Parameter nameParameter help description
Target HostThe IP, IPV6, or domain name of the monitored endpoint. Note ⚠️: Do not include protocol headers (eg: https://, http://).
PortThe HTTP port provided by Redis, default value is 6379, sentinel node`s default value is 26379
TimeoutSet the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms
UsernameDatabase connection user name, optional
PasswordDatabase connection password, optional

Collection Metric

Metric set:server

Metric nameMetric unitMetric help description
redis_versionnoneVersion of the Redis server
redis_git_sha1noneGit SHA1
redis_git_dirtynoneGit dirty flag
redis_build_idnoneThe build id
redis_modenoneThe server's mode ("standalone", "sentinel" or "cluster")
osnoneOperating system hosting the Redis server
arch_bitsnoneArchitecture (32 or 64 bits)
multiplexing_apinoneEvent loop mechanism used by Redis
atomicvar_apinoneAtomicvar API used by Redis
gcc_versionnoneVersion of the GCC compiler used to compile the Redis server
process_idnonePID of the server process
process_supervisednoneSupervised system ("upstart", "systemd", "unknown" or "no")
run_idnoneRandom value identifying the Redis server (to be used by Sentinel and Cluster)
tcp_portnoneTCP/IP listen port
server_time_usecnoneEpoch-based system time with microsecond precision
uptime_in_secondsnoneNumber of seconds since Redis server start
uptime_in_daysnoneSame value expressed in days
hznoneThe server's current frequency setting
configured_hznoneThe server's configured frequency setting
lru_clocknoneClock incrementing every minute, for LRU management
executablenoneThe path to the server's executable
config_filenoneThe path to the config file
io_threads_activenoneFlag indicating if I/O threads are active
shutdown_in_millisecondsnoneThe maximum time remaining for replicas to catch up the replication before completing the shutdown sequence. This field is only present during shutdown.

Metric set:clients

Metric nameMetric unitMetric help description
connected_clientsnoneNumber of client connections (excluding connections from replicas)
cluster_connectionsnoneAn approximation of the number of sockets used by the cluster's bus
maxclientsnoneThe value of the maxclients configuration directive. This is the upper limit for the sum of connected_clients, connected_slaves and cluster_connections.
client_recent_max_input_bufferbyteBiggest input buffer among current client connections
client_recent_max_output_bufferbyteBiggest output buffer among current client connections
blocked_clientsnoneNumber of clients pending on a blocking call (BLPOP, BRPOP, BRPOPLPUSH, BLMOVE, BZPOPMIN, BZPOPMAX)
tracking_clientsnoneNumber of clients being tracked (CLIENT TRACKING)
clients_in_timeout_tablenoneNumber of clients in the clients timeout table

Metric set:memory

Metric nameMetric unitMetric help description
used_memorybyteTotal number of bytes allocated by Redis using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc)
used_memory_humanGB/MB/KBHuman readable representation of previous value
used_memory_rssbyteNumber of bytes that Redis allocated as seen by the operating system (a.k.a resident set size). This is the number reported by tools such as top(1) and ps(1)
used_memory_rss_humanGB/MB/KBHuman readable representation of previous value值
used_memory_peakbytePeak memory consumed by Redis (in bytes)
used_memory_peak_humanGB/MB/KBHuman readable representation of previous value
used_memory_peak_percnoneThe percentage of used_memory_peak out of used_memory
used_memory_overheadbyteThe sum in bytes of all overheads that the server allocated for managing its internal data structures
used_memory_startupbyteInitial amount of memory consumed by Redis at startup in bytes
used_memory_datasetbyteThe size in bytes of the dataset (used_memory_overhead subtracted from used_memory)
used_memory_dataset_percnoneThe percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup)
allocator_allocatedbyteTotal bytes allocated form the allocator, including internal-fragmentation. Normally the same as used_memory.
allocator_activebyteTotal bytes in the allocator active pages, this includes external-fragmentation.
allocator_residentbyteTotal bytes resident (RSS) in the allocator, this includes pages that can be released to the OS (by MEMORY PURGE, or just waiting).
total_system_memorybyteThe total amount of memory that the Redis host has
total_system_memory_humanGB/MB/KBHuman readable representation of previous value
used_memory_luabyteNumber of bytes used by the Lua engine for EVAL scripts. Deprecated in Redis 7.0, renamed to used_memory_vm_eval
used_memory_lua_humanKBHuman readable representation of previous value. Deprecated in Redis 7.0
used_memory_scriptsbyteused_memory_scripts_eval + used_memory_functions (part of used_memory). Added in Redis 7.0
used_memory_scripts_humanGB/MB/KBHuman readable representation of previous value
number_of_cached_scriptsnoneThe number of EVAL scripts cached by the server. Added in Redis 7.0
maxmemorybyteThe value of the maxmemory configuration directive
maxmemory_humanGB/MB/KBHuman readable representation of previous value
maxmemory_policynoneThe value of the maxmemory-policy configuration directive
allocator_frag_rationoneRatio between allocator_active and allocator_allocated. This is the true (external) fragmentation metric (not mem_fragmentation_ratio).
allocator_frag_bytesbyteDelta between allocator_active and allocator_allocated. See note about mem_fragmentation_bytes.
allocator_rss_ratioRatio between allocator_resident and allocator_active.
allocator_rss_bytesbyteDelta between allocator_resident and allocator_active
rss_overhead_rationoneRatio between used_memory_rss (the process RSS) and allocator_resident. This includes RSS overheads that are not allocator or heap related.
rss_overhead_bytesbyteDelta between used_memory_rss (the process RSS) and allocator_resident
mem_fragmentation_rationoneRatio between usedmemory_rss and used_memory. Note that this doesn't only includes fragmentation, but also other process overheads (see the allocator* metrics), and also overheads like code, shared libraries, stack, etc.
mem_fragmentation_bytesbyteDelta between used_memory_rss and used_memory. Note that when the total fragmentation bytes is low (few megabytes), a high ratio (e.g. 1.5 and above) is not an indication of an issue.
mem_not_counted_for_evictbyteUsed memory that's not counted for key eviction. This is basically transient replica and AOF buffers.
mem_replication_backlogbyteMemory used by replication backlog
mem_clients_slavesnoneMemory used by replica clients - Starting Redis 7.0, replica buffers share memory with the replication backlog, so this field can show 0 when replicas don't trigger an increase of memory usage.
mem_clients_normalnoneMemory used by normal clients
mem_aof_buffernoneTransient memory used for AOF and AOF rewrite buffers
mem_allocatornoneMemory allocator, chosen at compile time.
active_defrag_runningnoneWhen activedefrag is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize.
lazyfree_pending_objectsnoneThe number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option)
lazyfreed_objectsnoneThe number of objects that have been lazy freed.

Metric set:persistence

Metric nameMetric unitMetric help description
loadingnoneFlag indicating if the load of a dump file is on-going
current_cow_sizebyteThe size in bytes of copy-on-write memory while a child fork is running
current_cow_size_agesecondThe age, in seconds, of the current_cow_size value.
current_fork_percnoneThe percentage of progress of the current fork process. For AOF and RDB forks it is the percentage of current_save_keys_processed out of
current_save_keys_processednoneNumber of keys processed by the current save operation
current_save_keys_totalnoneNumber of keys at the beginning of the current save operation
rdb_changes_since_last_savenoneNumber of changes since the last dump
rdb_bgsave_in_progressnoneFlag indicating a RDB save is on-going
rdb_last_save_timesecondEpoch-based timestamp of last successful RDB save
rdb_last_bgsave_statusnoneStatus of the last RDB save operation
rdb_last_bgsave_time_secsecondDuration of the last RDB save operation in seconds
rdb_current_bgsave_time_secnoneDuration of the on-going RDB save operation if any
rdb_last_cow_sizenoneThe size in bytes of copy-on-write memory during the last RDB save operation
aof_enablednoneFlag indicating AOF logging is activated
aof_rewrite_in_progressnoneFlag indicating a AOF rewrite operation is on-going
aof_rewrite_schedulednoneFlag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete.
aof_last_rewrite_time_secnoneDuration of the last AOF rewrite operation in seconds
aof_current_rewrite_time_secsecondDuration of the on-going AOF rewrite operation if any
aof_last_bgrewrite_statusnoneStatus of the last AOF rewrite operation
aof_last_write_statusnoneStatus of the last write operation to the AOF
aof_last_cow_sizenoneThe size in bytes of copy-on-write memory during the last AOF rewrite operation
module_fork_in_progressnoneFlag indicating a module fork is on-going
module_fork_last_cow_sizenoneThe size in bytes of copy-on-write memory during the last module fork operation

Metric set:stats

Metric nameMetric unitMetric help description
total_connections_receivednoneTotal number of connections accepted by the server
total_commands_processednoneTotal number of commands processed by the server
instantaneous_ops_per_secnoneNumber of commands processed per second
total_net_input_bytesbyteThe total number of bytes read from the network
total_net_output_bytesbyteThe total number of bytes written to the network
instantaneous_input_kbpsKB/SThe network's read rate per second in KB/sec
instantaneous_output_kbpsKB/SThe network's write rate per second in KB/sec
rejected_connectionsnoneNumber of connections rejected because of maxclients limit
sync_fullnoneThe number of full resyncs with replicas
sync_partial_oknoneThe number of accepted partial resync requests
sync_partial_errnoneThe number of denied partial resync requests
expired_keysnoneTotal number of key expiration events
expired_stale_percnoneThe percentage of keys probably expired
expired_time_cap_reached_countnoneThe count of times that active expiry cycles have stopped early
expire_cycle_cpu_millisecondsnoneThe cumulative amount of time spent on active expiry cycles
evicted_keysnoneNumber of evicted keys due to maxmemory limit
keyspace_hitsnoneNumber of successful lookup of keys in the main dictionary
keyspace_missesnoneNumber of failed lookup of keys in the main dictionary
pubsub_channelsnoneGlobal number of pub/sub channels with client subscriptions
pubsub_patternsnoneGlobal number of pub/sub pattern with client subscriptions
latest_fork_usecnoneDuration of the latest fork operation in microseconds
total_forksnoneTotal number of fork operations since the server start
migrate_cached_socketsnoneThe number of sockets open for MIGRATE purposes
slave_expires_tracked_keysnoneThe number of keys tracked for expiry purposes (applicable only to writable replicas)
active_defrag_hitsnoneNumber of value reallocations performed by active the defragmentation process
active_defrag_missesnoneNumber of aborted value reallocations started by the active defragmentation process
active_defrag_key_hitsnoneNumber of keys that were actively defragmented
active_defrag_key_missesnoneNumber of keys that were skipped by the active defragmentation process
tracking_total_keysnoneNumber of keys being tracked by the server
tracking_total_itemsnoneNumber of items, that is the sum of clients number for each key, that are being tracked
tracking_total_prefixesnoneNumber of tracked prefixes in server's prefix table (only applicable for broadcast mode)
unexpected_error_repliesnoneNumber of unexpected error replies, that are types of errors from an AOF load or replication
total_error_repliesnoneTotal number of issued error replies, that is the sum of rejected commands (errors prior command execution) and failed commands (errors within the command execution)
dump_payload_sanitizationsnoneTotal number of dump payload deep integrity validations (see sanitize-dump-payload config).
total_reads_processednoneTotal number of read events processed
total_writes_processednoneTotal number of write events processed
io_threaded_reads_processednoneNumber of read events processed by the main and I/O threads
io_threaded_writes_processednoneNumber of write events processed by the main and I/O threads

Metric set:replication

Metric nameMetric unitMetric help description
rolenoneValue is "master" if the instance is replica of no one, or "slave" if the instance is a replica of some master instance. Note that a replica can be master of another replica (chained replication).
connected_slavesnoneNumber of connected replicas
master_failover_statenoneThe state of an ongoing failover, if any.
master_replidnoneThe replication ID of the Redis server.
master_replid2noneThe secondary replication ID, used for PSYNC after a failover.
master_repl_offsetnoneThe server's current replication offset
second_repl_offsetnoneThe offset up to which replication IDs are accepted
repl_backlog_activenoneFlag indicating replication backlog is active
repl_backlog_sizebyteTotal size in bytes of the replication backlog buffer
repl_backlog_first_byte_offsetnoneThe master offset of the replication backlog buffer
repl_backlog_histlennoneSize in bytes of the data in the replication backlog buffer

Metric set:cpu

Metric nameMetric unitMetric help description
used_cpu_sysnoneSystem CPU consumed by the Redis server, which is the sum of system CPU consumed by all threads of the server process (main thread and background threads)
used_cpu_usernoneUser CPU consumed by the Redis server, which is the sum of user CPU consumed by all threads of the server process (main thread and background threads)
used_cpu_sys_childrennoneSystem CPU consumed by the background processes
used_cpu_user_childrennoneUser CPU consumed by the background processes
used_cpu_sys_main_threadnoneSystem CPU consumed by the Redis server main thread
used_cpu_user_main_threadnoneUser CPU consumed by the Redis server main thread

Metric set:errorstats

Metric nameMetric unitMetric help description
errorstat_ERRnoneERR count
errorstat_MISCONFnoneMISCONF count

Metric set:cluster

Metric nameMetric unitMetric help description
cluster_enablednoneIndicate Redis cluster is enabled

Metric set:commandstats

Metric nameMetric unitMetric help description
cmdstat_setnoneset command stat
cmdstat_getnoneget command stat
cmdstat_setnxnonesetnx command stat
cmdstat_hsetnonehset command stat
cmdstat_hgetnonehget command stat
cmdstat_lpushnonelpush command stat
cmdstat_rpushnonerpush command stat
cmdstat_lpopnonelpop command stat
cmdstat_rpopnonerpop command stat
cmdstat_llennonellen command stat