# Redis DB Monitoring

# Introducción

<span style="font-weight: 400;">Plugin para la monitorización de Redis database. Obtención de métricas de rendimiento.</span>

<span style="font-weight: 400;">Revisado en Enero de 2019</span>

# Matriz de compatibilidad

<span style="font-weight: 400;">Desarrollado contra Redis DB 3.2.12</span>

# Prerequisitos

<span style="font-weight: 400;">Se requiere conexión con el servicio Tentacle asociado a su servidor de Pandora FMS (para ejecuciones locales del plugin) bajo las siguiente condicion:</span>

- <span style="font-weight: 400;">Si tiene as\_server\_plugin habilitado.</span>

<span style="font-weight: 400;">El despliegue de este plugin por binarios no requiere ningún requisito especial.</span>

<span style="font-weight: 400;">En caso de no estar compilado requiere de las siguiente librerias de perl:</span>

- <span style="font-weight: 400;">PandoraFMS::PluginTools.pm</span>
- <span style="font-weight: 400;">Redis</span>
- <span style="font-weight: 400;">Data::Dumper</span>

<span style="font-weight: 400;">Puede descargar la última versión de PandoraFMS::PluginTools.pm:</span>

<span style="font-weight: 400;"> </span>[<span style="font-weight: 400;">https://github.com/pandorafms/pandorafms/blob/develop/pandora\_server/lib/PandoraFMS/PluginTools.pm</span>](https://github.com/pandorafms/pandorafms/blob/develop/pandora_server/lib/PandoraFMS/PluginTools.pm)

# Configuración

<span style="font-weight: 400;">El fichero de configuración del plugin se divide en lineas:</span>

**Configuraciones generales del plugin**

```
#================================================================
# Plugin options
#================================================================

server=192.168.80.199:6379
password=pandora_redis
as_agent_plugin=1
as_server_plugin=0
agent_name=RedisDB
temp=/tmp/
mode=tentacle
tentacle_ip=127.0.0.1
tentacle_port=41121
metrics=all
debug=0

```

**server**

<span style="font-weight: 400;">Dirección del servidor redis.</span>

**password**

<span style="font-weight: 400;">Contraseña para autenticarse si está habilitada la autenticación en el servidor Redis.</span>

**metrics**

<span style="font-weight: 400;">Métricas a obtener con el plugin (all || server || clients || memory || persistence || stats || replication || cpu || commandstats || cluster || keyspace )</span>

**as\_agent\_plugin**

<span style="font-weight: 400;">Utilizar el plugin en en modo de agente</span>

**as\_server\_plugin**

<span style="font-weight: 400;">Utilizar el plugin en modo servidor</span>

**\[agent\_name\]**

<span style="font-weight: 400;">Nombre de agente (as\_server\_plugin)</span>

**\[temp\]**

<span style="font-weight: 400;">Directorio temporal para almacenar el xml (local)</span>

**\[mode\]**

<span style="font-weight: 400;">Modo de transferencia (tentacle/local)</span>

**\[tentacle\_ip\]**

<span style="font-weight: 400;">Ip del servidor tentacle</span>

**tentacle\_port**

<span style="font-weight: 400;">Puerto del servidor tentacle</span>

**debug**

<span style="font-weight: 400;">Modo debug</span>

# Ejecución manual

<span style="font-weight: 400;">Para ejecutar el plugin configure el archivo de configuración según las instrucciones precedentes.</span>

<span style="font-weight: 400;">Ejecución del plugin:</span>

<span style="font-weight: 400;">Versión binaria:</span>

```
./redis_monitor.64 redis_config.conf
```

<span style="font-weight: 400;">Versión código sin librerías desplegadas:</span>

```
perl -I PandoraFMS redis_monitor.pl redis_config.conf
```

<span style="font-weight: 400;">Donde, PandoraFMS es un directorio que contiene la librería PluginTools.pm</span>

# Módulos generados por el plugin

<span style="font-weight: 400;">La ejecución estándar de este plugin devolverá los siguientes módulos por defecto (con todos los bloques opcionales habilitados):</span>

**Monitorización:**

<span style="font-weight: 400;">Server:</span>

- <span style="font-weight: 400;">redis\_version</span><span style="font-weight: 400;">: Version of the Redis server</span>
- <span style="font-weight: 400;">redis\_git\_sha1</span><span style="font-weight: 400;">: Git SHA1</span>
- <span style="font-weight: 400;">redis\_git\_dirty</span><span style="font-weight: 400;">: Git dirty flag</span>
- <span style="font-weight: 400;">redis\_build\_id</span><span style="font-weight: 400;">: The build id</span>
- <span style="font-weight: 400;">redis\_mode</span><span style="font-weight: 400;">: The server's mode ("standalone", "sentinel" or "cluster")</span>
- <span style="font-weight: 400;">os</span><span style="font-weight: 400;">: Operating system hosting the Redis server</span>
- <span style="font-weight: 400;">arch\_bits</span><span style="font-weight: 400;">: Architecture (32 or 64 bits)</span>
- <span style="font-weight: 400;">multiplexing\_api</span><span style="font-weight: 400;">: Event loop mechanism used by Redis</span>
- <span style="font-weight: 400;">atomicvar\_api</span><span style="font-weight: 400;">: Atomicvar API used by Redis</span>
- <span style="font-weight: 400;">gcc\_version</span><span style="font-weight: 400;">: Version of the GCC compiler used to compile the Redis server</span>
- <span style="font-weight: 400;">process\_id</span><span style="font-weight: 400;">: PID of the server process</span>
- <span style="font-weight: 400;">run\_id</span><span style="font-weight: 400;">: Random value identifying the Redis server (to be used by Sentinel and Cluster)</span>
- <span style="font-weight: 400;">tcp\_port</span><span style="font-weight: 400;">: TCP/IP listen port</span>
- <span style="font-weight: 400;">uptime\_in\_seconds</span><span style="font-weight: 400;">: Number of seconds since Redis server start</span>
- <span style="font-weight: 400;">uptime\_in\_days</span><span style="font-weight: 400;">: Same value expressed in days</span>
- <span style="font-weight: 400;">hz</span><span style="font-weight: 400;">: The server's frequency setting</span>
- <span style="font-weight: 400;">lru\_clock</span><span style="font-weight: 400;">: Clock incrementing every minute, for LRU management</span>
- <span style="font-weight: 400;">executable</span><span style="font-weight: 400;">: The path to the server's executable</span>
- <span style="font-weight: 400;">config\_file</span><span style="font-weight: 400;">: The path to the config file</span>

<span style="font-weight: 400;">Clients:</span>

- <span style="font-weight: 400;">connected\_clients</span><span style="font-weight: 400;">: Number of client connections (excluding connections from replicas)</span>
- <span style="font-weight: 400;">client\_longest\_output\_list</span><span style="font-weight: 400;">: longest output list among current client connections</span>
- <span style="font-weight: 400;">client\_biggest\_input\_buf</span><span style="font-weight: 400;">: biggest input buffer among current client connections</span>
- <span style="font-weight: 400;">blocked\_clients</span><span style="font-weight: 400;">: Number of clients pending on a blocking call (BLPOP, BRPOP, BRPOPLPUSH)</span>

<span style="font-weight: 400;">Memory:</span>

- <span style="font-weight: 400;">used\_memory</span><span style="font-weight: 400;">: Total number of bytes allocated by Redis using its allocator (either standard </span>**libc**<span style="font-weight: 400;">, </span>**jemalloc**<span style="font-weight: 400;">, or an alternative allocator such as </span>[**tcmalloc**](http://code.google.com/p/google-perftools/)<span style="font-weight: 400;">)</span>
- <span style="font-weight: 400;">used\_memory\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
- <span style="font-weight: 400;">used\_memory\_rss</span><span style="font-weight: 400;">: Number 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 </span><span style="font-weight: 400;">top(1)</span><span style="font-weight: 400;"> and </span><span style="font-weight: 400;">ps(1)</span>
- <span style="font-weight: 400;">used\_memory\_rss\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
- - <span style="font-weight: 400;">used\_memory\_peak</span><span style="font-weight: 400;">: Peak memory consumed by Redis (in bytes)</span>
    - <span style="font-weight: 400;">used\_memory\_peak\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
    - <span style="font-weight: 400;">used\_memory\_peak\_perc</span><span style="font-weight: 400;">: The percentage of </span><span style="font-weight: 400;">used\_memory\_peak</span><span style="font-weight: 400;"> out of</span><span style="font-weight: 400;">used\_memory</span>
    - <span style="font-weight: 400;">used\_memory\_overhead</span><span style="font-weight: 400;">: The sum in bytes of all overheads that the server allocated for managing its internal data structures</span>
    - <span style="font-weight: 400;">used\_memory\_startup</span><span style="font-weight: 400;">: Initial amount of memory consumed by Redis at startup in bytes</span>
    - <span style="font-weight: 400;">used\_memory\_dataset</span><span style="font-weight: 400;">: The size in bytes of the dataset (</span><span style="font-weight: 400;">used\_memory\_overhead</span><span style="font-weight: 400;"> subtracted from </span><span style="font-weight: 400;">used\_memory</span><span style="font-weight: 400;">)</span>
    - <span style="font-weight: 400;">used\_memory\_dataset\_perc</span><span style="font-weight: 400;">: The percentage of </span><span style="font-weight: 400;">used\_memory\_dataset</span><span style="font-weight: 400;">out of the net memory usage (</span><span style="font-weight: 400;">used\_memory</span><span style="font-weight: 400;"> minus </span><span style="font-weight: 400;">used\_memory\_startup</span><span style="font-weight: 400;">)</span>
    - <span style="font-weight: 400;">total\_system\_memory</span><span style="font-weight: 400;">: The total amount of memory that the Redis host has</span>
    - <span style="font-weight: 400;">total\_system\_memory\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
    - <span style="font-weight: 400;">used\_memory\_lua</span><span style="font-weight: 400;">: Number of bytes used by the Lua engine</span>
    - <span style="font-weight: 400;">used\_memory\_lua\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
    - <span style="font-weight: 400;">maxmemory</span><span style="font-weight: 400;">: The value of the </span><span style="font-weight: 400;">maxmemory</span><span style="font-weight: 400;"> configuration directive</span>
    - <span style="font-weight: 400;">maxmemory\_human</span><span style="font-weight: 400;">: Human readable representation of previous value</span>
    - <span style="font-weight: 400;">maxmemory\_policy</span><span style="font-weight: 400;">: The value of the </span><span style="font-weight: 400;">maxmemory-policy</span><span style="font-weight: 400;"> configuration directive</span>
    - <span style="font-weight: 400;">mem\_fragmentation\_ratio</span><span style="font-weight: 400;">: Ratio between </span><span style="font-weight: 400;">used\_memory\_rss</span><span style="font-weight: 400;"> and </span><span style="font-weight: 400;">used\_memory</span>
    - <span style="font-weight: 400;">mem\_allocator</span><span style="font-weight: 400;">: Memory allocator, chosen at compile time</span>
    - <span style="font-weight: 400;">active\_defrag\_running</span><span style="font-weight: 400;">: Flag indicating if active defragmentation is active</span>
    - <span style="font-weight: 400;">lazyfree\_pending\_objects</span><span style="font-weight: 400;">: The number of objects waiting to be freed (as a result of calling </span>[<span style="font-weight: 400;">UNLINK</span>](https://redis.io/commands/unlink)<span style="font-weight: 400;">, or </span>[<span style="font-weight: 400;">FLUSHDB</span>](https://redis.io/commands/flushdb)<span style="font-weight: 400;"> and </span>[<span style="font-weight: 400;">FLUSHALL</span>](https://redis.io/commands/flushall)<span style="font-weight: 400;"> with the </span>**ASYNC**<span style="font-weight: 400;"> option)</span>
    
    <span style="font-weight: 400;">Persistence:</span>
    
    
    - <span style="font-weight: 400;">loading</span><span style="font-weight: 400;">: Flag indicating if the load of a dump file is on-going</span>
    - <span style="font-weight: 400;">rdb\_changes\_since\_last\_save</span><span style="font-weight: 400;">: Number of changes since the last dump</span>
    - <span style="font-weight: 400;">rdb\_bgsave\_in\_progress</span><span style="font-weight: 400;">: Flag indicating a RDB save is on-going</span>
    - <span style="font-weight: 400;">rdb\_last\_save\_time</span><span style="font-weight: 400;">: Epoch-based timestamp of last successful RDB save</span>
    - <span style="font-weight: 400;">rdb\_last\_bgsave\_status</span><span style="font-weight: 400;">: Status of the last RDB save operation</span>
    - <span style="font-weight: 400;">rdb\_last\_bgsave\_time\_sec</span><span style="font-weight: 400;">: Duration of the last RDB save operation in seconds</span>
    - <span style="font-weight: 400;">rdb\_current\_bgsave\_time\_sec</span><span style="font-weight: 400;">: Duration of the on-going RDB save operation if any</span>
    - <span style="font-weight: 400;">rdb\_last\_cow\_size</span><span style="font-weight: 400;">: The size in bytes of copy-on-write allocations during the last RBD save operation</span>
    - <span style="font-weight: 400;">aof\_enabled</span><span style="font-weight: 400;">: Flag indicating AOF logging is activated</span>
    - <span style="font-weight: 400;">aof\_rewrite\_in\_progress</span><span style="font-weight: 400;">: Flag indicating a AOF rewrite operation is on-going</span>
    - <span style="font-weight: 400;">aof\_rewrite\_scheduled</span><span style="font-weight: 400;">: Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete.</span>
    - <span style="font-weight: 400;">aof\_last\_rewrite\_time\_sec</span><span style="font-weight: 400;">: Duration of the last AOF rewrite operation in seconds</span>
    - <span style="font-weight: 400;">aof\_current\_rewrite\_time\_sec</span><span style="font-weight: 400;">: Duration of the on-going AOF rewrite operation if any</span>
    - <span style="font-weight: 400;">aof\_last\_bgrewrite\_status</span><span style="font-weight: 400;">: Status of the last AOF rewrite operation</span>
    - <span style="font-weight: 400;">aof\_last\_write\_status</span><span style="font-weight: 400;">: Status of the last write operation to the AOF</span>
    - <span style="font-weight: 400;">aof\_last\_cow\_size</span><span style="font-weight: 400;">: The size in bytes of copy-on-write allocations during the last AOF rewrite operation</span>

<span style="font-weight: 400;">If AOF is activated, these additional fields will be added:</span>

- <span style="font-weight: 400;">aof\_current\_size</span><span style="font-weight: 400;">: AOF current file size</span>
- <span style="font-weight: 400;">aof\_base\_size</span><span style="font-weight: 400;">: AOF file size on latest startup or rewrite</span>
- <span style="font-weight: 400;">aof\_pending\_rewrite</span><span style="font-weight: 400;">: Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete.</span>
- <span style="font-weight: 400;">aof\_buffer\_length</span><span style="font-weight: 400;">: Size of the AOF buffer</span>
- <span style="font-weight: 400;">aof\_rewrite\_buffer\_length</span><span style="font-weight: 400;">: Size of the AOF rewrite buffer</span>
- <span style="font-weight: 400;">aof\_pending\_bio\_fsync</span><span style="font-weight: 400;">: Number of fsync pending jobs in background I/O queue</span>
- <span style="font-weight: 400;">aof\_delayed\_fsync</span><span style="font-weight: 400;">: Delayed fsync counter</span>

<span style="font-weight: 400;">If a load operation is on-going, these additional fields will be added:</span>

- <span style="font-weight: 400;">loading\_start\_time</span><span style="font-weight: 400;">: Epoch-based timestamp of the start of the load operation</span>
- <span style="font-weight: 400;">loading\_total\_bytes</span><span style="font-weight: 400;">: Total file size</span>
- <span style="font-weight: 400;">loading\_loaded\_bytes</span><span style="font-weight: 400;">: Number of bytes already loaded</span>
- <span style="font-weight: 400;">loading\_loaded\_perc</span><span style="font-weight: 400;">: Same value expressed as a percentage</span>
- <span style="font-weight: 400;">loading\_eta\_seconds</span><span style="font-weight: 400;">: ETA in seconds for the load to be complete</span>

<span style="font-weight: 400;">Stats:</span>

- <span style="font-weight: 400;">total\_connections\_received</span><span style="font-weight: 400;">: Total number of connections accepted by the server</span>
- <span style="font-weight: 400;">total\_commands\_processed</span><span style="font-weight: 400;">: Total number of commands processed by the server</span>
- <span style="font-weight: 400;">instantaneous\_ops\_per\_sec</span><span style="font-weight: 400;">: Number of commands processed per second</span>
- <span style="font-weight: 400;">total\_net\_input\_bytes</span><span style="font-weight: 400;">: The total number of bytes read from the network</span>
- <span style="font-weight: 400;">total\_net\_output\_bytes</span><span style="font-weight: 400;">: The total number of bytes written to the network</span>
- <span style="font-weight: 400;">instantaneous\_input\_kbps</span><span style="font-weight: 400;">: The network's read rate per second in KB/sec</span>
- <span style="font-weight: 400;">instantaneous\_output\_kbps</span><span style="font-weight: 400;">: The network's write rate per second in KB/sec</span>
- <span style="font-weight: 400;">rejected\_connections</span><span style="font-weight: 400;">: Number of connections rejected because of</span><span style="font-weight: 400;">maxclients</span><span style="font-weight: 400;"> limit</span>
- <span style="font-weight: 400;">sync\_full</span><span style="font-weight: 400;">: The number of full resyncs with replicas</span>
- <span style="font-weight: 400;">sync\_partial\_ok</span><span style="font-weight: 400;">: The number of accepted partial resync requests</span>
- <span style="font-weight: 400;">sync\_partial\_err</span><span style="font-weight: 400;">: The number of denied partial resync requests</span>
- <span style="font-weight: 400;">expired\_keys</span><span style="font-weight: 400;">: Total number of key expiration events</span>
- <span style="font-weight: 400;">evicted\_keys</span><span style="font-weight: 400;">: Number of evicted keys due to </span><span style="font-weight: 400;">maxmemory</span><span style="font-weight: 400;"> limit</span>
- <span style="font-weight: 400;">keyspace\_hits</span><span style="font-weight: 400;">: Number of successful lookup of keys in the main dictionary</span>
- <span style="font-weight: 400;">keyspace\_misses</span><span style="font-weight: 400;">: Number of failed lookup of keys in the main dictionary</span>
- <span style="font-weight: 400;">pubsub\_channels</span><span style="font-weight: 400;">: Global number of pub/sub channels with client subscriptions</span>
- <span style="font-weight: 400;">pubsub\_patterns</span><span style="font-weight: 400;">: Global number of pub/sub pattern with client subscriptions</span>
- <span style="font-weight: 400;">latest\_fork\_usec</span><span style="font-weight: 400;">: Duration of the latest fork operation in microseconds</span>
- <span style="font-weight: 400;">migrate\_cached\_sockets</span><span style="font-weight: 400;">: The number of sockets open for </span>[<span style="font-weight: 400;">MIGRATE</span>](https://redis.io/commands/migrate)<span style="font-weight: 400;">purposes</span>
- <span style="font-weight: 400;">slave\_expires\_tracked\_keys</span><span style="font-weight: 400;">: The number of keys tracked for expiry purposes (applicable only to writable replicas)</span>
- <span style="font-weight: 400;">active\_defrag\_hits</span><span style="font-weight: 400;">: Number of value reallocations performed by active the defragmentation process</span>
- <span style="font-weight: 400;">active\_defrag\_misses</span><span style="font-weight: 400;">: Number of aborted value reallocations started by the active defragmentation process</span>
- <span style="font-weight: 400;">active\_defrag\_key\_hits</span><span style="font-weight: 400;">: Number of keys that were actively defragmented</span>
- <span style="font-weight: 400;">active\_defrag\_key\_misses</span><span style="font-weight: 400;">: Number of keys that were skipped by the active defragmentation process</span>

<span style="font-weight: 400;">Replication:</span>

- <span style="font-weight: 400;">role</span><span style="font-weight: 400;">: Value 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).</span>
- <span style="font-weight: 400;">master\_replid</span><span style="font-weight: 400;">: The replication ID of the Redis server.</span>
- <span style="font-weight: 400;">master\_replid2</span><span style="font-weight: 400;">: The secondary replication ID, used for PSYNC after a failover.</span>
- <span style="font-weight: 400;">master\_repl\_offset</span><span style="font-weight: 400;">: The server's current replication offset</span>
- <span style="font-weight: 400;">second\_repl\_offset</span><span style="font-weight: 400;">: The offset up to which replication IDs are accepted</span>
- <span style="font-weight: 400;">repl\_backlog\_active</span><span style="font-weight: 400;">: Flag indicating replication backlog is active</span>
- <span style="font-weight: 400;">repl\_backlog\_size</span><span style="font-weight: 400;">: Total size in bytes of the replication backlog buffer</span>
- <span style="font-weight: 400;">repl\_backlog\_first\_byte\_offset</span><span style="font-weight: 400;">: The master offset of the replication backlog buffer</span>
- <span style="font-weight: 400;">repl\_backlog\_histlen</span><span style="font-weight: 400;">: Size in bytes of the data in the replication backlog buffer</span>

<span style="font-weight: 400;">If the instance is a replica, these additional fields are provided:</span>

- <span style="font-weight: 400;">master\_host</span><span style="font-weight: 400;">: Host or IP address of the master</span>
- <span style="font-weight: 400;">master\_port</span><span style="font-weight: 400;">: Master listening TCP port</span>
- <span style="font-weight: 400;">master\_link\_status</span><span style="font-weight: 400;">: Status of the link (up/down)</span>
- <span style="font-weight: 400;">master\_last\_io\_seconds\_ago</span><span style="font-weight: 400;">: Number of seconds since the last interaction with master</span>
- <span style="font-weight: 400;">master\_sync\_in\_progress</span><span style="font-weight: 400;">: Indicate the master is syncing to the replica</span>
- <span style="font-weight: 400;">slave\_repl\_offset</span><span style="font-weight: 400;">: The replication offset of the replica instance</span>
- <span style="font-weight: 400;">slave\_priority</span><span style="font-weight: 400;">: The priority of the instance as a candidate for failover</span>
- <span style="font-weight: 400;">slave\_read\_only</span><span style="font-weight: 400;">: Flag indicating if the replica is read-only</span>

<span style="font-weight: 400;">If a SYNC operation is on-going, these additional fields are provided:</span>

- <span style="font-weight: 400;">master\_sync\_left\_bytes</span><span style="font-weight: 400;">: Number of bytes left before syncing is complete</span>
- <span style="font-weight: 400;">master\_sync\_last\_io\_seconds\_ago</span><span style="font-weight: 400;">: Number of seconds since last transfer I/O during a SYNC operation</span>

<span style="font-weight: 400;">If the link between master and replica is down, an additional field is provided:</span>

- <span style="font-weight: 400;">master\_link\_down\_since\_seconds</span><span style="font-weight: 400;">: Number of seconds since the link is down</span>

<span style="font-weight: 400;">The following field is always provided:</span>

- <span style="font-weight: 400;">connected\_slaves</span><span style="font-weight: 400;">: Number of connected replicas</span>

<span style="font-weight: 400;">If the server is configured with the </span><span style="font-weight: 400;">min-slaves-to-write</span><span style="font-weight: 400;"> (or starting with Redis 5 with the </span><span style="font-weight: 400;">min-replicas-to-write</span><span style="font-weight: 400;">) directive, an additional field is provided:</span>

- <span style="font-weight: 400;">min\_slaves\_good\_slaves</span><span style="font-weight: 400;">: Number of replicas currently considered good</span>

<span style="font-weight: 400;">For each replica, the following line is added:</span>

- <span style="font-weight: 400;">slaveXXX</span><span style="font-weight: 400;">: id, IP address, port, state, offset, lag</span>

<span style="font-weight: 400;">CPU:</span>

- <span style="font-weight: 400;">used\_cpu\_sys</span><span style="font-weight: 400;">: System CPU consumed by the Redis server</span>
- <span style="font-weight: 400;">used\_cpu\_user</span><span style="font-weight: 400;">:User CPU consumed by the Redis server</span>
- <span style="font-weight: 400;">used\_cpu\_sys\_children</span><span style="font-weight: 400;">: System CPU consumed by the background processes</span>
- <span style="font-weight: 400;">used\_cpu\_user\_children</span><span style="font-weight: 400;">: User CPU consumed by the background processes</span>

<span style="font-weight: 400;">Comandstats:</span>

- <span style="font-weight: 400;">cmdstat\_XXX</span><span style="font-weight: 400;">: </span><span style="font-weight: 400;">calls=XXX,usec=XXX,usec\_per\_call=XXX</span>

<span style="font-weight: 400;">Cluster</span>

- <span style="font-weight: 400;">cluster\_enabled</span><span style="font-weight: 400;">: Indicate Redis cluster is enabled</span>

<span style="font-weight: 400;">Keyspace:</span>

<span style="font-weight: 400;">dbXXX: keys=XXX,expires=XXX</span>