Redis metrics
Database metrics comprehensively collect 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.
agent_status_summary
This category collects metrics related to agent status every 10 seconds.
Fields
Field name | Unit | Description | Remarks |
---|---|---|---|
inActTime | Millisecond(ms) | Amount of time the agent remains inactive | - |
isActive | - | Whether the agent is active or not | true / false |
isRestart | - | Whether the agent has been recently restarted | true / false |
lastActTime | Millisecond(ms) | Time when the agent was last activated | 0 : If disabled |
oid | - | Unique IDs for each agent in the project | - |
startTime | Millisecond(ms) | Timestamp when the agent was started. | - |
db_redis_counter
Tags
The following lists the tags that are collected in the db_redis_counter
category.
Tag name | Description | Remarks |
---|---|---|
oname | Agent name | Unique value |
Field
The following lists the fields that are collected in the db_redis_counter
category.
Metrics | Description | Category |
---|---|---|
active_defrag_hits | Number of hits during active defragmentation. | Memory |
active_defrag_key_hits | Number of keys hit in defragmentation. | Memory |
active_defrag_key_misses | Number of keys lost in defragmentation. | Memory |
active_defrag_misses | Number of hits lost during active defragmentation. | Memory |
active_defrag_running | Status of current active defragmentation. | Memory |
allocator_active | Amount of memory active in the allocator. | Memory |
allocator_allocated | Amount of memory allocated by the allocator. | Memory |
allocator_frag_bytes | Number of bytes of memory fragmentation that occurred in the allocator. | Memory |
allocator_frag_ratio | Percentage of memory fragmentation that occurred in the allocator. | Memory |
allocator_resident | Amount of memory actually being used by the allocator. | Memory |
allocator_rss_bytes | Number of bytes of memory actually being used by the allocator. | Memory |
allocator_rss_ratio | Percentage of RSS that occurred in the allocator. | Memory |
aof_current_rewrite_time_sec | Time (seconds) spent to rewrite AOF. | Persistence |
aof_enabled | Whether AOF(Append Only File) is enabled or not. It is 1 when the appendonly mode in the redis.conf file is yes , 0 when the mode is no . In case of yes , the appendonly.aof file is read when the Redis server starts, and in case of no , the dump.rdb file is read. | Persistence |
aof_last_cow_size | It is the COW (Copy On Write) size at the time of the last AOF rewrite. | Persistence |
aof_last_rewrite_time_sec | Time (seconds) spent for the last AOF rewrite. | 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 |
aof_rewrites | Number of AOF rewrite operations performed. | Persistence |
aof_rewrites_consecutive_failures | Number of consecutively failed AOF rewrites. | Persistence |
async_loading | Whether asynchronous data loading is in progress or not. | Persistence |
avg_ttl_db0 | Key's remaining time (milliseconds) in DB0. | Keyspace |
avg_ttl_db1 | Key's remaining time (milliseconds) in DB1. | Keyspace |
blocked_clients | Number of clients waiting by BLPOP , BRPOP , and BRPOPLPUSH commands. | Clients |
client_recent_max_input_buffer | Recent maximum input buffer size of the client. | Clients |
client_recent_max_output_buffer | Recent maximum output buffer size of the client. | Clients |
clients_in_timeout_table | Number of clients in the timeout table. | Clients |
cluster_connections | Number of connections within the cluster. | Clients |
cmdstat_auth_calls | Number of calls to the AUTH command. | Commandstats |
cmdstat_auth_failed_calls | Number of failed calls to the AUTH command. | Commandstats |
cmdstat_auth_rejected_calls | Number of rejected calls to the AUTH command. | Commandstats |
cmdstat_auth_usec | Total microseconds taken for the AUTH command. | Commandstats |
cmdstat_auth_usec_per_call | Average microseconds per AUTH command call. | Commandstats |
cmdstat_client|list_calls | Number of calls to the CLIENT LIST command. | Commandstats |
cmdstat_client|list_failed_calls | Number of failed CLIENT LIST command calls. | Commandstats |
cmdstat_client|list_rejected_calls | Number of rejected CLIENT LIST command calls. | Commandstats |
cmdstat_client|list_usec | Total microseconds taken for the CLIENT LIST command. | Commandstats |
cmdstat_client|list_usec_per_call | Average microseconds per CLIENT LIST command call. | Commandstats |
cmdstat_cluster|info_calls | Number of calls to the CLUSTER INFO command. | Commandstats |
cmdstat_cluster|info_failed_calls | Number of failed CLUSTER INFO command calls. | Commandstats |
cmdstat_cluster|info_rejected_calls | Number of rejected calls to the CLUSTER INFO command. | Commandstats |
cmdstat_cluster|info_usec | Total microseconds taken for the CLUSTER INFO command. | Commandstats |
cmdstat_cluster|info_usec_per_call | Average microseconds per CLUSTER INFO command call. | Commandstats |
cmdstat_cluster|nodes_calls | Number of calls to the CLUSTER NODES command. | Commandstats |
cmdstat_cluster|nodes_failed_calls | Number of failed CLUSTER NODES command calls. | Commandstats |
cmdstat_cluster|nodes_rejected_calls | Number of rejected calls to the CLUSTER NODES command. | Commandstats |
cmdstat_cluster|nodes_usec | Total microseconds taken for the CLUSTER NODES command. | Commandstats |
cmdstat_cluster|nodes_usec_per_call | Average microseconds per CLUSTER NODES command call. | Commandstats |
cmdstat_command_calls | Number of calls to the COMMAND command. | Commandstats |
cmdstat_command_failed_calls | Number of failed calls to the COMMAND command. | Commandstats |
cmdstat_command_rejected_calls | Number of rejected calls to the COMMAND command. | Commandstats |
cmdstat_command_usec | Total microseconds taken for the COMMAND command. | Commandstats |
cmdstat_command_usec_per_call | Average microseconds per COMMAND command call. | Commandstats |
cmdstat_command|docs_calls | Number of calls to the COMMAND DOCS command. | Commandstats |
cmdstat_command|docs_failed_calls | Number of failed calls to the COMMAND DOCS command. | Commandstats |
cmdstat_command|docs_rejected_calls | Number of rejected calls to the COMMAND DOCS command. | Commandstats |
cmdstat_command|docs_usec | Total microseconds taken for the COMMAND DOCS command. | Commandstats |
cmdstat_command|docs_usec_per_call | Average microseconds per COMMAND DOCS command call. | Commandstats |
cmdstat_config|get_calls | Number of calls to the CONFIG GET command. | Commandstats |
cmdstat_config|get_failed_calls | Number of failed CONFIG GET command calls. | Commandstats |
cmdstat_config|get_rejected_calls | Number of rejected calls to the CONFIG GET command. | Commandstats |
cmdstat_config|get_usec | Total microseconds taken for the CONFIG GET command. | Commandstats |
cmdstat_config|get_usec_per_call | Average microseconds per CONFIG GET command call. | Commandstats |
cmdstat_info_calls | Number of calls to the INFO command. | Commandstats |
cmdstat_info_failed_calls | Number of failed calls to the INFO command. | Commandstats |
cmdstat_info_rejected_calls | Number of rejected calls to the INFO command. | Commandstats |
cmdstat_info_usec | Total microseconds taken for the INFO command. | Commandstats |
cmdstat_info_usec_per_call | Average microseconds per INFO command call. | Commandstats |
cmdstat_ping_calls | Number of calls to the PING command. | Commandstats |
cmdstat_ping_failed_calls | Number of failed calls to the PING command. | Commandstats |
cmdstat_ping_rejected_calls | Number of rejected calls to the PING command. | Commandstats |
cmdstat_ping_usec | Total microseconds taken for the PING command. | Commandstats |
cmdstat_ping_usec_per_call | Average microseconds per PING command call. | Commandstats |
cmdstat_psync_calls | Number of calls to the PSYNC command. | Commandstats |
cmdstat_psync_failed_calls | Number of failed calls to the PSYNC command. | Commandstats |
cmdstat_psync_rejected_calls | Number of rejected calls to the PSYNC command. | Commandstats |
cmdstat_psync_usec | Total microseconds taken for the PSYNC command. | Commandstats |
cmdstat_psync_usec_per_call | Average microseconds per PSYNC command call. | Commandstats |
cmdstat_quit_calls | Number of calls to the QUIT command. | Commandstats |
cmdstat_quit_failed_calls | Number of failed calls to the QUIT command. | Commandstats |
cmdstat_quit_rejected_calls | Number of rejected calls to the QUIT command. | Commandstats |
cmdstat_quit_usec | Total microseconds taken for the QUIT command. | Commandstats |
cmdstat_quit_usec_per_call | Average microseconds per QUIT command call. | Commandstats |
cmdstat_replconf_calls | Number of calls to the REPLCONF command. | Commandstats |
cmdstat_replconf_failed_calls | Number of failed calls to the REPLCONF command. | Commandstats |
cmdstat_replconf_rejected_calls | Number of rejected calls to the REPLCONF command. | Commandstats |
cmdstat_replconf_usec | Total microseconds taken for the REPLCONF command. | Commandstats |
cmdstat_replconf_usec_per_call | Average microseconds per REPLCONF command call. | Commandstats |
connect_error | Number of connection errors. | Stats |
connected_clients | Number of connected clients (excluding slave node connections). | Clients |
connected_slaves | Number of connected slaves in Master mode. | REPLICATION |
cpu_cores | Number of available CPU cores | CPU |
current_active_defrag_time | Time spent on current active defragmentation. | Memory |
current_cow_peak | Current peak size of COW (Copy On Write). | Memory |
current_cow_size | Current size of COW (Copy On Write). | Memory |
current_cow_size_age | Duration of the current COW size. | Memory |
current_eviction_exceeded_time | Time exceeded for forced memory eviction. | Memory |
current_fork_perc | Progress (%) of the current fork operation. | Persistence |
current_save_keys_processed | Number of keys processed in the current save operation. | Persistence |
current_save_keys_total | Total number of keys to be processed in the current save operation. | Persistence |
dump_payload_sanitizations | Number of cleanup operations performed on the dump payload. | Persistence |
errorstat_ERR | Number of ERR type errors. | Stats |
errorstat_NOAUTH | Number of NOAUTH-type errors. | Stats |
evicted_clients | Number of clients evicted due to insufficient memory. | Clients |
evicted_keys | Number of keys evicted due to insufficient memory. | Keyspace |
expire_cycle_cpu_milliseconds | CPU time (milliseconds) spent during the expiration cycle. | CPU |
expired_keys | Number of keys deleted by the EXPIRE command. | Keyspace |
expired_stale_perc | Percentage (%) of expired stale keys. | Keyspace |
expired_time_cap_reached_count | Number of cases whose expiration time limit has been reached. | Keyspace |
expires_db0 | Number of keys to be expired in DB0. | Keyspace |
expires_db0 | Number of keys to be expired in DB1. | Keyspace |
fatal_count | Number of fatal errors. | Stats |
instantaneous_input_kbps | Instantaneous input speed (kbps). | Stats |
instantaneous_input_repl_kbps | Instantaneous input replication speed (kbps). | Replication |
instantaneous_ops_per_sec | Number of commands processed per second. You can see how many commands are being processed per second. | Stats |
instantaneous_output_kbps | Instantaneous output speed (kbps). | Stats |
instantaneous_output_repl_kbps | Instantaneous output replication speed (kbps). | Replication |
io_threaded_reads_processed | Number of read operations processed by the I/O threads. | Stats |
io_threaded_writes_processed | Number of write operations processed by the I/O threads. | Stats |
keys_db0 | Number of keys managed in DB0. | Keyspace |
keys_db1 | Number of keys managed in DB1. | Keyspace |
keys_total | Sum of keys_dbN . | Keyspace |
keyspace_hits | Number of keyspace hits. If a value is returned via the get key command, it is increased by 1. | Keyspace |
keyspace_misses | Number of keyspace misses. If nil is returned via the get key command, it is increased by 1. | Keyspace |
latest_fork_usec | Time (microseconds) taken for the last fork operation. | Persistence |
lazyfree_pending_objects | Number of objects for which lazyfree operations are pending. | Memory |
lazyfreed_objects | Number of objects freed by lazyfree operations. | Memory |
loading | Whether Redis is loading data or not. | Stats |
maxclients | Maximum number of clients allowed. | Clients |
maxmemory | Maximum amount of memory that can be used by Redis. | Memory |
mem_aof_buffer | Amount of memory being used in the AOF buffer. | Memory |
mem_clients_normal | Amount of memory used by normal clients. | Memory |
mem_clients_slaves | Amount of memory being used by the slave clients. | Replication |
mem_cluster_links | Amount of memory being used by the cluster link. | Memory |
mem_fragmentation_bytes | Number of bytes resulting from memory fragmentation. | Memory |
mem_fragmentation_ratio | used_memory ratio and used_memory_rss ratio. | Memory |
mem_not_counted_for_evict | Amount of memory not subject to forced eviction. | Memory |
mem_replication_backlog | Amount of memory being used by the replication backlog. | Replication |
mem_total_replication_buffers | Amount of memory being used by the replication buffer. | Replication |
migrate_cached_sockets | Number of migrated sockets. This is a cluster migrate related value. | Stats |
module_fork_in_progress | Whether a module fork is in progress. | Persistence |
module_fork_last_cow_size | COW size at the time of the last module fork. | Persistence |
node_state | Current status of the Redis node. | Stats |
number_of_cached_scripts | Number of cached scripts. | Stats |
number_of_functions | Number of registered functions. | Stats |
number_of_libraries | Number of loaded libraries. | Stats |
pubsub_channels | Number of channels connected to active Pub/Sub channels. | Stats |
pubsub_patterns | Number of pattern channels connected to active Pub/Sub patterns. | Stats |
pubsubshard_channels | Number of active Pub/Sub shared channels. | Stats |
rdb_bgsave_in_progress | It displays 1 when a background RDB saving operation is in progress. | Persistence |
rdb_changes_since_last_save | Number of data entries input 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 save start. | Persistence |
rdb_last_bgsave_time_sec | Last RDB stored time in the background (seconds). | Persistence |
rdb_last_cow_size | COW size at the time of the last RDB storage. | Persistence |
rdb_last_load_keys_expired | Number of expired keys upon the last RDB load. | Persistence |
rdb_last_load_keys_loaded | Number of loaded keys upon the last RDB load. | Persistence |
rdb_last_save_time | Last RDB saved time. | Persistence |
rdb_saves | Number of RDB save operations executed. | Persistence |
rejected_connections | Number of connections rejected by the limit of maxclients . | Stats |
reply_buffer_expands | Number of cases the reply buffer has been expanded. | Stats |
reply_buffer_shrinks | Number of cases the reply buffer has been reduced. | Stats |
repl_backlog_active | For the master, it is 1 and for the slave, it is 0 . | 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 |
rss_overhead_bytes | RSS overhead bytes. | Memory |
rss_overhead_ratio | RSS overhead ratio. | Memory |
slave_expires_tracked_keys | Number of tracked keys that have expired in the slave. | Replication |
sync_full | Number of cases slave nodes are fully synchronized in master node. | Replication |
sync_partial_err | Number of partial synchronization errors with slave nodes in master node. | Replication |
sync_partial_ok | Number of successful partial synchronizations with slave nodes in master node. | Replication |
total_active_defrag_time | Total time for active defragmentation operations. | Memory |
total_commands_processed | Total number of commands processed after a server startup (for both storage and inquiries). | Commandstats |
total_connections_received | Total number of connections received after server startup. | Clients |
total_error_replies | Total number of error responses. | Stats |
total_eviction_exceeded_time | Total time exceeded for forced memory eviction. | Memory |
total_forks | Total number of fork operations processed. | Persistence |
total_net_input_bytes | Total network bytes received. | Stats |
total_net_output_bytes | Total network bytes transmitted. | Stats |
total_net_repl_input_bytes | Total replication network bytes received. | Replication |
total_net_repl_output_bytes | Total replication network bytes transmitted. | Replication |
total_reads_processed | Total number of read operations processed. | Stats |
total_system_memory | Total available system memory. | Memory |
total_writes_processed | Total number of write operations processed. | Stats |
tracking_clients | Number of clients using tracking. | Clients |
tracking_total_items | Total number of tracked items. | Stats |
tracking_total_keys | Total number of tracked keys. | Keyspace |
tracking_total_prefixes | Total number of tracked prefixes. | Keyspace |
unexpected_error_replies | Number of unexpected error responses. | Stats |
used_cpu | Total CPU time used by the Redis server (used_cpu_sys + used_cpu_user ). | CPU |
used_cpu_children | Total CPU time used by child processes. | CPU |
used_cpu_sys | Total CPU time used in system mode. | CPU |
used_cpu_sys_children | CPU time used by child processes in system mode when storing RDB/AOF files. | CPU |
used_cpu_user | Total CPU time used in user mode. | CPU |
used_cpu_user_children | CPU time used by child processes in user mode when storing RDB/AOF files. | CPU |
used_memory | Total amount of memory (bytes) being used by the Redis server. | Memory |
used_memory_dataset | Amount of memory (bytes) being used by the dataset. | Memory |
used_memory_dataset_perc | Percentage (%) of memory being used by the dataset. | Memory |
used_memory_functions | Amount of memory (bytes) being used by functions. | Memory |
used_memory_lua | Amount of memory (bytes) being used by the Lua script. | Memory |
used_memory_overhead | Amount of memory (bytes) being used by the overhead. | Memory |
used_memory_peak | Maximum amount of memory (bytes) used by the Redis server. | Memory |
used_memory_peak_perc | Peak percentage (%) of memory used | Memory |
used_memory_rss | Resident Set Size. It is the total physical memory (RAM) occupied by processes. | Memory |
used_memory_scripts | Amount of memory being used by scripts. | Memory |
used_memory_scripts_eval | Amount of memory being used by evaluated scripts. | Memory |
used_memory_startup | Amount of memory that the Redis server used during startup. | Memory |
used_memory_vm_eval | Amount of memory being used by scripts evaluated in virtual memory. | Memory |
used_memory_vm_functions | Amount of memory being used by functions in virtual memory. | Memory |
used_memory_vm_total | Total amount of memory being used in virtual memory. | Memory |
warning_count | Number of warnings. | Stats |
XOS-related metrics
The following describes the metrics collected from the XOS agent.
Metric | Unit | Description |
---|---|---|
cpu(xos) | pct | CPU utilization, cpu_user + cpu_sys + cpu_iowait . |
cpu_user(xos) | pct | Time spent for CPU to execute user code. |
cpu_sys(xos) | pct | Time spent for CPU to execute the kernel code. |
cpu_iowait(xos) | pct | CPU time waited for IO. |
cpu_idle(xos) | pct | CPU processor's idle time. |
disk_reads(xos) | block | Amount of data read from disk. |
disk_read_bytes(xos) | byte | Amount of data read from disk. |
disk_writes(xos) | block | Amount of data written to disk. |
disk_write_bytes(xos) | byte | Amount of data written to disk. |
mem(xos) | pct | Memory utilization. |
mem_total(xos) | MB | Total amount of memory. |
mem_free(xos) | MB | Amount of memory not in use by the system. |
mem_used(xos) | MB | Amount of memory in use by the system. |
mem_buffcache(xos) | MB | Amount of memory used by the buff/cache. |
mem_swaptotal(xos) | MB | Set this in preparation for the case where the total Swap size and physical memory are insufficient. |
mem_swapfree(xos) | MB | Because the unused Swap area and Swap area are secured in disk space, the system performance may drop drastically while using Swap. |
mem_available(xos) | MB | Available memory area. |
net_recv_bytes(xos) | byte | Amount of data received over the network. |
net_recv_packets(xos) | - | Number of data packets received over the network. |
net_send_bytes(xos) | byte | Amount of data transmitted over the network. |
net_send_packets(xos) | - | Number of data packets transmitted over the network. |