Redis metrics
Database metric comprehensively collects the database workload and resource usage. The WhaTap monitoring service continuously collects metric data to identify bottlenecks in the database and provides data to help identify the root cause of the performance issue.
For more information about other metrics, see the following.
Metric | Description | Category |
---|---|---|
BLOCKED_CLIENTS | Number of clients waiting by BLPOP, BRPOP, BRPOPLPUSH commands | CLIENTS |
CONNECTED_CLIENTS | Number of connected clients (excluding slave node connections) | CLIENTS |
TRACKING_CLIENTS | Number of clients being tracked | CLIENTS |
CMDSTAT_XXX_CALLS | It displays the Redis command statistics. call: XXX Command execution count | COMMANDSTATS |
CMDSTAT_XXX_USEC | It displays the Redis command statistics. usec: XXX command execution time (microsecond) | COMMANDSTATS |
CMDSTAT_XXX_USEC_PER_CALL | It displays the Redis command statistics.usec_per_call : XXX command's average execution time (microsecond) | COMMANDSTATS |
USED_CPU | used_cpu_sys + used_cpu_user | CPU |
USED_CPU_SYS | CPU used in System mode | CPU |
USED_CPU_SYS_CHILDREN | CPU used by child processes in System mode when storing RDB/AOF files | CPU |
USED_CPU_USER | CPU used in User mode | CPU |
USED_CPU_USER_CHILDREN | CPU used by child processes in User mode when storing RDB/AOF files | CPU |
AVG_TTL_DB0 | Key's remaining time in DB0 (millisecond) | KEYSPACE |
AVG_TTL_DB1 | Key's remaining time in DB1 (millisecond) | KEYSPACE |
EXPIRES_DB0 | Number of keys to be expired in DB0 | KEYSPACE |
EXPIRES_DB1 | Number of keys to be expired in DB1 | KEYSPACE |
KEYS_DB0 | Number of keys in DB0 | KEYSPACE |
KEYS_DB1 | Number of keys in DB1 | KEYSPACE |
KEYS_TOTAL | Sum of KEYS_DBn | KEYSPACE |
MEM_FRAGMENTATION_RATIO | Ratio between used_memory and used_memory_rss | MEMORY |
USED_MEMORY | Bytes | MEMORY |
USED_MEMORY_PEAK | Maximum used memory (bytes) | MEMORY |
USED_MEMORY_RSS | Resident Set Size. Total physical memory (RAM) occupied by the processes | MEMORY |
AOF_ENABLED | The value is 1 if the appendonly mode in redis.conf is yes , 0 if no . If yes , appendonly.aof is read when the Redis server starts, and if no , dump.rdb is read. | PERSISTENCE |
AOF_LAST_REWRITE_TIME_SEC | Last AOF rewrite time in seconds | PERSISTENCE |
AOF_REWRITE_IN_PROGRESS | It displays 1 if the current AOF file is being stored in the background. | PERSISTENCE |
AOF_REWRITE_SCHEDULED | The value is 1 if an AOF rewrite is scheduled. If an RDB file is being stored, it is scheduled (1) because AOF files cannot be stored at the same time. After storage is complete, an AOF rewrite starts. | PERSISTENCE |
RDB_BGSAVE_IN_PROGRESS | It displayed 1 when the RDB file background save is in progress. | PERSISTENCE |
RDB_CHANGES_SINCE_LAST_SAVE | Number of data entries since the last save of the RDB file | PERSISTENCE |
RDB_CURRENT_BGSAVE_TIME_SEC | If any RDB file is being stored in the background, it is the time elapsed from the start. | PERSISTENCE |
RDB_LAST_BGSAVE_TIME_SEC | Last RDB file stored time in the background (seconds) | PERSISTENCE |
RDB_LAST_SAVE_TIME | Last RDB file successfully stored time | PERSISTENCE |
CONNECTED_SLAVES | Number of connected slaves in Master mode | REPLICATION |
REPL_BACKLOG_ACTIVE | The value is 1 in Master mode and 0 in Slave mode. | REPLICATION |
REPL_BACKLOG_SIZE | It is the repl-backlog-size setting in the redis.conf file. When the connection with the slave is disconnected, the input data is saved in the backlog-buffer, and when reconnected, the data in the backlog-buffer is sent to the slave for synchronization without sending and receiving the entire data again. | REPLICATION |
EVICTED_KEYS | Number of keys excluded by the maxmemory limit | STATS |
EXPIRED_KEYS | Number of keys deleted by the expire command | STATS |
INSTANTANEOUS_INPUT_KBPS | Current input kbps | STATS |
INSTANTANEOUS_OPS_PER_SEC | You can see the current number of commands processed per second, and how many commands are being processed per second. | STATS |
INSTANTANEOUS_OUTPUT_KBPS | Current output kbps | STATS |
KEYSPACE_HITS | If a value is returned by get key , it is increased by 1. | STATS |
KEYSPACE_MISSES | If nil is returned by get key , it is increased by 1. | STATS |
LATEST_FORK_USEC | Time taken for the last fork() (microsecond) | STATS |
MIGRATE_CACHED_SOCKETS | Cluster migrate-related value | STATS |
PUBSUB_CHANNELS | Number of channels connected by pub/sub channel | STATS |
PUBSUB_PATTERNS | Number of pattern channels connected by pub/sub pattern | STATS |
REJECTED_CONNECTIONS | Number of connections rejected by the maxclients limit | STATS |
SYNC_FULL | Number of full syncs and slave nodes in Master node | STATS |
SYNC_PARTIAL_ERR | Number of full sync errors and slave nodes in Master node | STATS |
SYNC_PARTIAL_OK | Number of full sync oks and slave nodes in Master node | STATS |
TOTAL_COMMANDS_PROCESSED | Total number of commands processed after a server startup (for both storage and inquiries) | STATS |
TOTAL_CONNECTIONS_RECEIVED | Total number of connections after a server startup | STATS |
CPU_IDLE_XOS | OS metrics collected by XOS | XOS |
CPU_IOWAIT_XOS | OS metrics collected by XOS | XOS |
CPU_SYS_XOS | OS metrics collected by XOS | XOS |
CPU_USER_XOS | OS metrics collected by XOS | XOS |
CPU_XOS | OS metrics collected by XOS | XOS |
MEM_AVAILABLE_XOS | OS metrics collected by XOS | XOS |
MEM_BUFFCACHE_XOS | OS metrics collected by XOS | XOS |
MEM_SWAPFREE_XOS | OS metrics collected by XOS | XOS |
MEM_SWAPTOTAL_XOS | OS metrics collected by XOS | XOS |
MEM_TOTAL_XOS | OS metrics collected by XOS | XOS |
MEM_USED_XOS | OS metrics collected by XOS | XOS |
MEM_XOS | OS metrics collected by XOS | XOS |
NET_RECV_BYTES_XOS | OS metrics collected by XOS | XOS |
NET_RECV_PACKETS_XOS | OS metrics collected by XOS | XOS |
NET_SEND_BYTES_XOS | OS metrics collected by XOS | XOS |
NET_SEND_PACKETS_XOS | OS metrics collected by XOS | XOS |