Redis
Redis 指标采集器,采集以下数据:
- 开启 AOF 数据持久化,会收集相关指标
- RDB 数据持久化指标
- Slow Log 监控指标
- Big Key scan 监控
- 主从 Replication
- 集群
配置¶
已测试的版本:
- 7.0.11
- 6.2.12
- 6.0.8
- 5.0.14
- 4.0.14
前置条件¶
- 在采集主从架构下数据时,配置从节点或主节点的主机信息进行数据采集,可以得到不同的主从相关的指标信息。
- 创建监控用户(可选):redis 6.0+ 进入
redis-cli命令行,创建用户并且授权:
- 授权统计
hotkey/bigkey信息,进入redis-cli命令行:
CONFIG SET maxmemory-policy allkeys-lfu
ACL SETUSER username on +get +@read +@connection +@keyspace ~*
采集器配置¶
进入 DataKit 安装目录下的 conf.d/samples 目录,复制 redis.conf.sample 并命名为 redis.conf。示例如下:
[[inputs.redis]]
host = "localhost"
port = 6379
## TLS connection config, redis-cli version must up 6.0+
## See also: https://redis.io/docs/latest/operate/oss_and_stack/management/security/encryption/
# ca_certs = ["/opt/tls/ca.crt"]
# cert = "/opt/tls/redis.crt"
# cert_key = "/opt/tls/redis.key"
# server_name = "your-SNI-name"
# insecure_skip_verify = true
## we can encode these file content in base64 format:
# ca_certs_base64 = ['''LONG_STING......''']
# cert_base64 = '''LONG_STING......'''
# cert_key_base64 = '''LONG_STING......'''
# Use UDS to collect to redis server
# unix_socket_path = "/var/run/redis/redis.sock"
# Redis user/password
# username = "<USERNAME>"
# password = "<PASSWORD>"
connect_timeout = "10s"
## Configure multiple dbs.
dbs = [0]
## metric collect interval.
interval = "15s"
## topology refresh interval for cluster/sentinel mode (default 10m)
topology_refresh_interval = "10m"
## v2+ override all measurement names to "redis"
measurement_version = "v2"
# Slog log configurations.
slow_log = true # default enable collect slow log
all_slow_log = false # Collect all slowlogs returned by Redis
slowlog_max_len = 128 # only collect the top-128 slow logs
# Collect INFO LATENCYSTATS output as metrics with quantiles.
latency_percentiles = false
# Default enable election on redis collection.
election = true
# For cluster redis
# [inputs.redis.cluster]
# hosts = [ "localhost:6379" ]
# For master-slave redis
# [inputs.redis.master_slave]
# hosts = [ "localhost:26380" ] # master or/and slave ip/host
# [inputs.redis.master_slave.sentinel]
# hosts = [ "localhost:26380" ] # sentinel ip/host
# master_name = "your-master-name"
# password = "sentinel-password"
# Collect hot and big keys
[inputs.redis.hot_big_keys]
enable = false
top_n = 10 # report top N big and hot keys, default 10
big_key_interval = "3h" # scan big keys(length and mem usage) interval, default 3 hours
hot_key_interval = "15m" # scan hot keys interval, default 15 minutes
scan_sleep = "200ms" # sleep every 100 batches to reduce CPU impact on Redis server
scan_batch_size = 100 # scan 100 keys on each iteration
bigkey_threshold_bytes = 10485760 # keys larger than 10MiB
bigkey_threshold_len = 5000 # or elements larger than 5000 are considered to be BIG keys.
mem_usage_samples = 100 # collect key's memory usage by sample 100(MEMORY USAGE <key> SAMPLES 100)
target_role = "master" # target role for scanning: "master" or "replica". standalone and cluster modes only support "master"
# Collect redis client list
[inputs.redis.collect_client_list]
log_on_flags = "bxOR" # For more flag info, see: https://redis.io/docs/latest/commands/client-list/
# Config on collecting Redis logging on disk
#[inputs.redis.log]
# files = ["/var/log/redis/*.log"] # required, glob logfiles
# ignore = [""]
# pipeline = "redis.p" # grok pipeline script path
# character_encoding = "" # default empty, optionals: "utf-8"/"utf-16le"/"utf-16le"/"gbk"/"gb18030"
# match = '''^\S.*'''
[inputs.redis.tags]
# some_tag = "some_value"
# more_tag = "some_other_value"
配置好后,重启 DataKit 即可。
可通过 ConfigMap 方式注入采集器配置 或 配置 ENV_DATAKIT_INPUTS 开启采集器。
Note
如果是阿里云 Redis,且设置了对应的用户名密码,conf 中的 <PASSWORD> 应该设置成 your-user:your-password,如 datakit:Pa55W0rd
集群/主从节点采集¶
Redis 集群节点和主从节点的采集和单点节点(standalone)的配置不同,具体而言,我们需要单独配置如下两个部分:
# cluster
[inputs.redis.cluster]
hosts = [ "localhost:6379" ]
# master/slave
[inputs.redis.master_slave]
hosts = [ "localhost:26380" ] # master or/and slave ip/host
[inputs.redis.master_slave.sentinel]
hosts = [ "localhost:26380" ] # sentinel ip/host
master_name = "your-master-name"
password = "sentinel-requirepassword"
对集群/主从节点的采集,默认遵循如下原则:
- 对于常规指标采集,比如
INFO/CLIENT LIST等采集,每次采集会对主从节点都实施采集 - 低频的深度采集(比如 hot/big key 采集),由于其消耗较大(aka 对采集目标有一定的性能开销),可配置随机选择一个从库实施采集(集群不可以)
日志采集配置¶
需要采集 Redis 日志,需要开启 Redis redis.config 中日志文件输出配置:
Note
在配置日志采集时,需要将 DataKit 安装在 Redis 服务同一台主机中,或使用其它方式将日志挂载到 DataKit 所在机器。
在 K8s 中,可以将 Redis 日志暴露到 stdout,DataKit 能自动找到其对应的日志。
指标¶
以下所有数据采集,默认会追加全局选举 tag,也可以在配置中通过 [inputs.redis.tags] 指定其它标签:
redis¶
指标集包含 Redis info、command、replication、database 和 cluster 相关指标,v2 版本统一
| Tags & Fields | Description |
|---|---|
| command_type ( tag) |
Command type. |
| db_name ( tag) |
DB name. |
| error_type ( tag) |
Error type. |
| host ( tag) |
Hostname. |
| master_addr ( tag) |
Master addr, only collected for slave redis. |
| maxmemory_policy ( tag) |
The value of the maxmemory-policy configuration directive. |
| method ( tag) |
Command type |
| os ( tag) |
Operating system of the Redis server. |
| quantile ( tag) |
Histogram quantile. |
| redis_mode ( tag) |
Mode of the Redis server. |
| redis_version ( tag) |
Version of the Redis server. |
| role ( tag) |
Value is master if the instance is replica of no one, or slave if the instance is a replica of some master instance. |
| server ( tag) |
Server addr. |
| slave_addr ( tag) |
Slave addr, only collected for master redis. |
| slave_id ( tag) |
Slave ID, only collected for master redis. |
| slave_state ( tag) |
Slave state, only collected for master redis. |
| acl_access_denied_auth | Number of authentication failures. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| acl_access_denied_channel | Number of commands rejected because of access denied to a channel. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| acl_access_denied_cmd | Number of commands rejected because of access denied to the command. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| acl_access_denied_key | Number of commands rejected because of access denied to a key. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| active_defrag_hits | Number of value reallocations performed by active the defragmentation process. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| active_defrag_key_hits | Number of keys that were actively defragmented. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| active_defrag_key_misses | Number of keys that were skipped by the active defragmentation process. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| active_defrag_misses | Number of aborted value reallocations started by the active defragmentation process. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| active_defrag_running | Flag indicating if active defragmentation is active. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_active | Total bytes in the allocator active pages, this includes external-fragmentation. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_allocated | Total bytes allocated form the allocator, including internal-fragmentation. Normally the same as used_memory. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_frag_bytes | Delta between allocator_active and allocator_allocated. See note about mem_fragmentation_bytes. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_frag_ratio | Ratio between allocator_active and allocator_allocated. This is the true (external) fragmentation metric (not mem_fragmentation_ratio).Type: float | (gauge) Unit: percent,percent_decimal Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_resident | Total bytes resident (RSS) in the allocator, this includes pages that can be released to the OS (by MEMORY PURGE, or just waiting). Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_rss_bytes | Delta between allocator_resident and allocator_active. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| allocator_rss_ratio | Ratio between allocator_resident and allocator_active. This usually indicates pages that the allocator can and probably will soon release back to the OS.Type: float | (gauge) Unit: percent,percent_decimal Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_base_size | AOF file size on latest startup or rewrite. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_buffer_length | Size of the AOF buffer. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_current_rewrite_time_sec | Duration of the on-going AOF rewrite operation if any. -1 if not in progress. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_current_size | AOF current file size. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_delayed_fsync | Delayed fsync counter. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_enabled | Flag indicating AOF logging is activated. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_last_bgrewrite_status | Status of the last AOF rewrite operation (0 is ok, and -1 is err).Type: int | (enum) Unit: N/A Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_last_cow_size | The size in bytes of copy-on-write memory during the last AOF rewrite operation. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_last_rewrite_time_sec | Duration of the last AOF rewrite operation in seconds. -1 if never. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_last_write_status | Status of the last write operation to the AOF (0 is ok, and -1 is err).Type: int | (enum) Unit: N/A Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_pending_bio_fsync | Number of fsync pending jobs in background I/O queue. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_pending_rewrite | Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_rewrite_buffer_length | Size of the AOF rewrite buffer. Note this field was removed in Redis 7.0. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_rewrite_in_progress | Flag indicating a AOF rewrite operation is on-going. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_rewrite_scheduled | Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| aof_rewrites | Number of AOF rewrites performed since startup. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| arch_bits | Architecture (32 or 64 bits). Type: int | (enum) Unit: N/A Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| async_loading | Currently loading replication data-set asynchronously while serving old data. This means repl-diskless-load is enabled and set to swapdb. Added in Redis 7.0.Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| avg_ttl | Average ttl. Type: int | (gauge) Unit: N/A Tagged by: db_name |
| blocked_clients | Number of clients pending on a blocking call (BLPOP/BRPOP/BRPOPLPUSH/BLMOVE/BZPOPMIN/BZPOPMAX).Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| calls | The number of calls that reached command execution. Type: float | (gauge) Unit: count Tagged by: method |
| client_biggest_input_buf | Biggest input buffer among current client connections. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| client_longest_output_list | Longest output list among current client connections. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| client_recent_max_input_buffer | Biggest input buffer among current client connections. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| client_recent_max_output_buffer | Biggest output buffer among current client connections. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| clients_in_timeout_table | Number of clients in the clients timeout table. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| cluster_connections | An approximation of the number of sockets used by the cluster's bus. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| cluster_current_epoch | The local Current Epoch variable. This is used in order to create unique increasing version numbers during fail overs. Type: int | (gauge) Unit: N/A |
| cluster_enabled | Indicate Redis cluster is enabled. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| cluster_known_nodes | The total number of known nodes in the cluster, including nodes in HANDSHAKE state that may not currently be proper members of the cluster. Type: int | (gauge) Unit: count |
| cluster_my_epoch | The Config Epoch of the node we are talking with. This is the current configuration version assigned to this node. Type: int | (gauge) Unit: N/A |
| cluster_size | The number of master nodes serving at least one hash slot in the cluster. Type: int | (gauge) Unit: count |
| cluster_slots_assigned | Number of slots which are associated to some node (not unbound). This number should be 16384 for the node to work properly, which means that each hash slot should be mapped to a node. Type: int | (gauge) Unit: count |
| cluster_slots_fail | Number of hash slots mapping to a node in FAIL state. If this number is not zero the node is not able to serve queries unless cluster-require-full-coverage is set to no in the configuration. Type: int | (gauge) Unit: count |
| cluster_slots_ok | Number of hash slots mapping to a node not in FAIL or PFAIL state.Type: int | (gauge) Unit: count |
| cluster_slots_pfail | Number of hash slots mapping to a node in PFAIL state. Note that those hash slots still work correctly, as long as the PFAIL state is not promoted to FAIL by the failure detection algorithm. PFAIL only means that we are currently not able to talk with the node, but may be just a transient error.Type: int | (gauge) Unit: count |
| cluster_state | State is 1(ok) if the node is able to receive queries. 0(fail) if there is at least one hash slot which is unbound (no node associated), in error state (node serving it is flagged with FAIL flag), or if the majority of masters can't be reached by this node. Type: int | (gauge) Unit: enum |
| cluster_stats_messages_auth_ack_received | Message indicating a vote during leader election. Type: int | (count) Unit: count |
| cluster_stats_messages_auth_ack_sent | Message indicating a vote during leader election. Type: int | (count) Unit: count |
| cluster_stats_messages_auth_req_received | Replica initiated leader election to replace its master. Type: int | (count) Unit: count |
| cluster_stats_messages_auth_req_sent | Replica initiated leader election to replace its master. Type: int | (count) Unit: count |
| cluster_stats_messages_fail_received | Mark node xxx as failing received. Type: int | (count) Unit: count |
| cluster_stats_messages_fail_sent | Mark node xxx as failing send. Type: int | (count) Unit: count |
| cluster_stats_messages_meet_received | Handshake message received from a new node, either through gossip or CLUSTER MEET. Type: int | (count) Unit: count |
| cluster_stats_messages_meet_sent | Handshake message sent to a new node, either through gossip or CLUSTER MEET. Type: int | (count) Unit: count |
| cluster_stats_messages_mfstart_received | Pause clients for manual failover. Type: int | (count) Unit: count |
| cluster_stats_messages_mfstart_sent | Pause clients for manual failover. Type: int | (count) Unit: count |
| cluster_stats_messages_module_received | Module cluster API message. Type: int | (gauge) Unit: count |
| cluster_stats_messages_module_sent | Module cluster API message. Type: int | (count) Unit: count |
| cluster_stats_messages_ping_received | Cluster bus received PING (not to be confused with the client command PING). Type: int | (count) Unit: count |
| cluster_stats_messages_ping_sent | Cluster bus send PING (not to be confused with the client command PING). Type: int | (count) Unit: count |
| cluster_stats_messages_pong_received | PONG received (reply to PING). Type: int | (count) Unit: count |
| cluster_stats_messages_pong_sent | PONG send (reply to PING). Type: int | (count) Unit: count |
| cluster_stats_messages_publish_received | Pub/Sub Publish propagation received. Type: int | (count) Unit: count |
| cluster_stats_messages_publish_sent | Pub/Sub Publish propagation send. Type: int | (count) Unit: count |
| cluster_stats_messages_publishshard_received | Pub/Sub Publish shard propagation, see Sharded Pubsub. Type: int | (count) Unit: count |
| cluster_stats_messages_publishshard_sent | Pub/Sub Publish shard propagation, see Sharded Pubsub. Type: int | (count) Unit: count |
| cluster_stats_messages_received | Number of messages received via the cluster node-to-node binary bus. Type: int | (count) Unit: count |
| cluster_stats_messages_sent | Number of messages sent via the cluster node-to-node binary bus. Type: int | (count) Unit: count |
| cluster_stats_messages_update_received | Another node slots configuration. Type: int | (count) Unit: count |
| cluster_stats_messages_update_sent | Another node slots configuration. Type: int | (count) Unit: count |
| configured_hz | The server's configured frequency setting. Type: int | (gauge) Unit: frequency,Hz Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| connected_clients | Number of client connections (excluding connections from replicas). Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| connected_slaves | Number of connected replicas. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_active_defrag_time | The time passed since memory fragmentation last was over the limit, in milliseconds. Type: int | (gauge) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_cow_peak | The peak size in bytes of copy-on-write memory while a child fork is running. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_cow_size | The size in bytes of copy-on-write memory while a child fork is running. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_cow_size_age | The age, in seconds, of the current_cow_size value. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_eviction_exceeded_time | The time passed since used_memory last rose above maxmemory, in milliseconds.Type: int | (gauge) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_fork_perc | The 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_total. Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_save_keys_processed | Number of keys processed by the current save operation. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| current_save_keys_total | Number of keys at the beginning of the current save operation. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| dump_payload_sanitizations | Total number of dump payload deep integrity validations (see sanitize-dump-payload config). Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| errorstat | Track of the different errors that occurred within Redis. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| eventloop_cycles | Total number of eventloop cycles.Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| eventloop_duration_cmd_sum | Total time spent on executing commands in microseconds. Type: int | (count) Unit: time,μs Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| eventloop_duration_sum | Total time spent in the eventloop in microseconds (including I/O and command processing).Type: int | (count) Unit: time,μs Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| evicted_clients | Number of evicted clients due to maxmemory-clients limit. Added in Redis 7.0.Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| evicted_keys | Number of evicted keys due to Max-Memory limit. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| expire_cycle_cpu_milliseconds | The cumulative amount of time spent on active expiry cycles. Type: int | (count) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| expired_keys | Total number of key expiration events. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| expired_stale_perc | The percentage of keys probably expired. Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| expired_time_cap_reached_count | The count of times that active expiry cycles have stopped early. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| expires | expires time. Type: int | (gauge) Unit: N/A Tagged by: db_name |
| failed_calls | The number of failed calls (errors within the command execution). Type: float | (gauge) Unit: count Tagged by: method |
| hz | The server's current frequency setting. Type: int | (gauge) Unit: frequency,Hz Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| info_latency_ms | The latency of the redis INFO command. Type: float | (gauge) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_eventloop_cycles_per_sec | Number of eventloop cycles per second.Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_eventloop_duration_usec | Average time spent in a single eventloop cycle in microseconds.Type: int | (gauge) Unit: time,μs Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_input_kbps | The network's read rate per second in KB/sec. Type: float | (gauge) Unit: traffic,KB/S Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_input_repl_kbps | The network's read rate per second in KB/sec for replication purposes. Type: float | (gauge) Unit: traffic,KB/S Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_ops_per_sec | Number of commands processed per second. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_output_kbps | The network's write rate per second in KB/sec. Type: float | (gauge) Unit: traffic,KB/S Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| instantaneous_output_repl_kbps | The network's write rate per second in KB/sec for replication purposes. Type: float | (gauge) Unit: traffic,KB/S Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| io_threaded_reads_processed | Number of read events processed by the main and I/O threads. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| io_threaded_writes_processed | Number of write events processed by the main and I/O threads. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| io_threads_active | Flag indicating if I/O threads are active. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| keys | Key. Type: int | (gauge) Unit: N/A Tagged by: db_name |
| keyspace_hits | Number of successful lookup of keys in the main dictionary. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| keyspace_misses | Number of failed lookup of keys in the main dictionary. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| latency_percentiles_usec | Latency percentile distribution statistics based on the command type. Type: float | (gauge) Unit: time,μs Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| latest_fork_usec | Duration of the latest fork operation in microseconds. Type: int | (gauge) Unit: time,μs Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| lazyfree_pending_objects | The number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option).Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| lazyfreed_objects | The number of objects that have been lazy freed. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading | Flag indicating if the load of a dump file is on-going. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_eta_seconds | ETA in seconds for the load to be complete. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_loaded_bytes | Number of bytes already loaded. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_loaded_perc | Same value expressed as a percentage. Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_rdb_used_mem | The memory usage of the server that had generated the RDB file at the time of the file's creation. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_start_time | Epoch-based timestamp of the start of the load operation. Type: int | (gauge) Unit: timeStamp,sec Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| loading_total_bytes | Total file size. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| lru_clock | Clock incrementing every minute, for LRU management. Type: int | (gauge) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_last_io_seconds_ago | Number of seconds since the last interaction with master. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_link_down_since_seconds | Number of seconds since the link is down. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_link_status | Status of the link (up/down), 1 for up, 0 for down, only collected for slave redis.Type: int | (gauge) Unit: N/A Tagged by: master_addr, slave_id, slave_addr, slave_state |
| master_repl_offset | The server's current replication offset. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_in_progress | Indicate the master is syncing to the replica. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_last_io_seconds_ago | Number of seconds since last transfer I/O during a SYNC operation. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_left_bytes | Number of bytes left before syncing is complete (may be negative when master_sync_total_bytes is 0). Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_perc | The percentage master_sync_read_bytes from master_sync_total_bytes, or an approximation that uses loading_rdb_used_mem when master_sync_total_bytes is 0. Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_read_bytes | Number of bytes already transferred. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| master_sync_total_bytes | Total number of bytes that need to be transferred. this may be 0 when the size is unknown (for example, when the repl-diskless-sync configuration directive is used).Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| max_idle | Max idle time of the connection in seconds of all these clients Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| max_multi | Max number of commands in a MULTI/EXEC context of all these clients Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| max_obl | Max output buffer length of all these clients Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| max_qbuf | Max query buffer length (0 means no query pending) of all these clients Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| max_totmem | Max total memory consumed by various buffers of all these clients Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| maxclients | The value of the maxclients configuration directive. This is the upper limit for the sum of connected_clients, connected_slaves and cluster_connections.Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| maxmemory | The value of the Max Memory configuration directive. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_aof_buffer | Transient memory used for AOF and AOF rewrite buffers. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_clients_normal | Memory used by normal clients. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_clients_slaves | Memory 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. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_cluster_links | Memory used by links to peers on the cluster bus when cluster mode is enabled. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_fragmentation_bytes | Delta 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. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_fragmentation_ratio | Ratio between used_memory_rss and used_memory.Type: float | (gauge) Unit: percent,percent_decimal Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_not_counted_for_evict | Used memory that's not counted for key eviction. This is basically transient replica and AOF buffers. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_replication_backlog | Memory used by replication backlog. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| mem_total_replication_buffers | Total memory consumed for replication buffers - Added in Redis 7.0. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| migrate_cached_sockets | The number of sockets open for MIGRATE purposes. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| min_slaves_good_slaves | Number of replicas currently considered good. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| module_fork_in_progress | Flag indicating a module fork is on-going. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| module_fork_last_cow_size | The size in bytes of copy-on-write memory during the last module fork operation. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| multi_avg | Avg number of commands in a MULTI/EXEC context of all these clients Type: float | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| multi_total | Sum of all client's total number of commands in a MULTI/EXEC context Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| pubsub_channels | Global number of pub/sub channels with client subscriptions. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| pubsub_patterns | Global number of pub/sub pattern with client subscriptions. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| pubsubshard_channels | Global number of pub/sub shard channels with client subscriptions. Added in Redis 7.0.3. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_bgsave_in_progress | Flag indicating a RDB save is on-going. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_changes_since_last_save | Refers to the number of operations that produced some kind of changes in the dataset since the last time either SAVE or BGSAVE was called.Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_current_bgsave_time_sec | Duration of the on-going RDB save operation if any. -1 if not in progress. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_bgsave_status | Status of the last RDB save operation (0 is ok, -1 is err).Type: int | (enum) Unit: N/A Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_bgsave_time_sec | Duration of the last RDB save operation in seconds. -1 if never. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_cow_size | The size in bytes of copy-on-write memory during the last RDB save operation. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_load_keys_expired | Number of volatile keys deleted during the last RDB loading. Added in Redis 7.0. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_load_keys_loaded | Number of keys loaded during the last RDB loading. Added in Redis 7.0. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_last_save_time | Epoch-based timestamp of last successful RDB save. Type: int | (gauge) Unit: timeStamp,sec Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rdb_saves | Number of RDB snapshots performed since startup. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rejected_calls | The number of rejected calls (errors prior command execution). Type: float | (gauge) Unit: count Tagged by: method |
| rejected_connections | Number of connections rejected because of Max-Clients limit. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| repl_backlog_active | Flag indicating replication backlog is active. Type: int | (gauge) Unit: bool Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| repl_backlog_first_byte_offset | The master offset of the replication backlog buffer. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| repl_backlog_histlen | Size in bytes of the data in the replication backlog buffer. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| repl_backlog_size | Total size in bytes of the replication backlog buffer. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| replica_announced | Flag indicating if the replica is announced by Sentinel. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rss_overhead_bytes | Delta between used_memory_rss (the process RSS) and allocator_resident. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| rss_overhead_ratio | Ratio between used_memory_rss (the process RSS) and allocator_resident. This includes RSS overheads that are not allocator or heap related. Type: float | (gauge) Unit: percent,percent_decimal Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| second_repl_offset | The offset up to which replication IDs are accepted. -1 if not PSYNC2. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| server_time_usec | Epoch-based system time with microsecond precision. Type: int | (count) Unit: timeStamp,usec Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| shutdown_in_milliseconds | The maximum time remaining for replicas to catch up the replication before completing the shutdown sequence. This field is only present during shutdown. Type: int | (gauge) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| slave_expires_tracked_keys | The number of keys tracked for expiry purposes (applicable only to writable replicas). Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| slave_lag | Slave lag, only collected for master redis. Type: int | (gauge) Unit: N/A Tagged by: master_addr, slave_id, slave_addr, slave_state |
| slave_offset | Slave offset, only collected for master redis. Type: int | (gauge) Unit: N/A Tagged by: master_addr, slave_id, slave_addr, slave_state |
| slave_priority | The priority of the instance as a candidate for failover. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| slave_read_only | Flag indicating if the replica is read-only. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| slave_read_repl_offset | The read replication offset of the replica instance. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| slave_repl_offset | The replication offset of the replica instance. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| stat_reply_buffer_expands | Total number of output buffer expands. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| stat_reply_buffer_shrinks | Total number of output buffer shrinks. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| sync_full | The number of full resyncs with replicas.Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| sync_partial_err | The number of denied partial resync requests. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| sync_partial_ok | The number of accepted partial resync requests. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_active_defrag_time | Total time memory fragmentation was over the limit, in milliseconds. Type: int | (count) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_blocking_keys | Number of blocking keys. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_blocking_keys_on_nokey | Number of blocking keys that one or more clients that would like to be unblocked when the key is deleted. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_cluster_links_buffer_limit_exceeded | Accumulated count of cluster links freed due to exceeding the cluster-link-sendbuf-limit configuration.Type: int | (count) Unit: count |
| total_cmds | Sum of all client's total count of commands this client executed. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_commands_processed | Total number of commands processed by the server. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_connections_received | Total number of connections accepted by the server. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_error_replies | Total number of issued error replies, that is the sum of rejected commands (errors prior command execution) and failed commands (errors within the command execution). Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_eviction_exceeded_time | Total time used_memory was greater than maxmemory since server startup, in milliseconds.Type: int | (count) Unit: time,ms Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_forks | Total number of fork operations since the server start. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_net_input_bytes | The total number of bytes read from the network. Type: int | (count) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_net_output_bytes | The total number of bytes written to the network. Type: int | (count) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_net_repl_input_bytes | The total number of bytes read from the network for replication purposes. Type: int | (count) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_net_repl_output_bytes | The total number of bytes written to the network for replication purposes. Type: int | (count) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_netin | Sum of all client's total network input bytes read from the client Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_netout | Sum of all client's total network output bytes send to the client Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_obl | Sum of all client's output buffer length of all these clients Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_psub | Sum of all client's number of pattern matching subscriptions Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_qbuf | Sum of all client's query buffer length Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_reads_processed | Total number of read events processed. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_ssub | Sum of all client's number of shard channel subscriptions.(Redis >= 7.0.3) Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_sub | Sum of all client's number of channel subscriptions Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_system_memory | The total amount of memory that the Redis host has. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_totmem | Sum of all client's total memory consumed in various buffers Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| total_writes_processed | Total number of write events processed. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| tracking_clients | Number of clients being tracked (CLIENT TRACKING). Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| tracking_total_items | Number of items, that is the sum of clients number for each key, that are being tracked. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| tracking_total_keys | Number of keys being tracked by the server. Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| tracking_total_prefixes | Number of tracked prefixes in server's prefix table (only applicable for broadcast mode). Type: int | (gauge) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| unexpected_error_replies | Number of unexpected error replies, that are types of errors from an AOF load or replication. Type: int | (count) Unit: count Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| uptime_in_days | Same value expressed in days. Type: int | (gauge) Unit: time,d Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| uptime_in_seconds | Number of seconds since Redis server start. Type: int | (gauge) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| usec | The total CPU time consumed by these commands. Type: float | (gauge) Unit: time,μs Tagged by: method |
| usec_per_call | The average CPU consumed per command execution. Type: float | (gauge) Unit: time,μs Tagged by: method |
| used_cpu_sys | System 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). Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_sys_children | System CPU consumed by the background processes. Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_sys_main_thread | System CPU consumed by the Redis server main thread. Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_sys_percent | System CPU percentage 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). Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_user | User 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). Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_user_children | User CPU consumed by the background processes. Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_user_main_thread | User CPU consumed by the Redis server main thread. Type: float | (count) Unit: time,s Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_cpu_user_percent | User CPU percentage 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). Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory | Total number of bytes allocated by Redis using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc). Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_dataset | The size in bytes of the dataset (used_memory_overhead subtracted from used_memory).Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_dataset_perc | The percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup).Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_lua | Number of bytes used by the Lua engine. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_overhead | The sum in bytes of all overheads that the server allocated for managing its internal data structures. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_peak | Peak memory consumed by Redis (in bytes). Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_peak_perc | The percentage of used_memory_peak out of used_memory.Type: float | (gauge) Unit: percent,percent Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_rss | Number of bytes that Redis allocated as seen by the operating system (a.k.a Resident Set Size). Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_scripts | Number of bytes used by cached Lua scripts. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
| used_memory_startup | Initial amount of memory consumed by Redis at startup in bytes. Type: int | (gauge) Unit: digital,B Tagged by: os, maxmemory_policy, redis_version, command_type, error_type, quantile, role, redis_mode |
collector¶
| Tags & Fields | Description |
|---|---|
| instance ( tag) |
Server addr of the instance |
| job ( tag) |
Server name of the instance |
| up | Type: int | (gauge) Unit: - |
自定义对象¶
日志¶
redis_config¶
通过执行 CONFIG GET * 获取到的 Redis 配置信息(此处仅展示部分指标)
| Tags & Fields | Description |
|---|---|
| aclfile ( tag) |
Path to Redis ACL configuration file |
| appendfilename ( tag) |
AOF filename(such as appendonly.aof) |
| appendfsync ( tag) |
AOF fsync policy (always/everysec/no) |
| bind ( tag) |
Bind Redis to specific network interfaces |
| class ( tag) |
Client output buffer limits on different class(nomal:hard/normal:soft/slave:hard/slave:soft/pubsub:hard/pubsub:soft) |
| cluster_announce_ip ( tag) |
IP address to announce in cluster |
| cluster_config_file ( tag) |
Cluster configuration file |
| dbfilename ( tag) |
RDB snapshot filename(such as dump.rdb) |
| dir ( tag) |
Working directory for persistence files |
| host ( tag) |
Hostname. |
| maxmemory_policy ( tag) |
Key eviction policy when maxmemory is reached(such as allkeys-lfu) |
| notify_keyspace_events ( tag) |
Keyspace event notification options |
| pidfile ( tag) |
File path where Redis writes its process ID |
| replica_announce_ip ( tag) |
IP address replica announces to master |
| save ( tag) |
RDB snapshot conditions (time/changes), such as 3600 1 300 100 60 10000 |
| server ( tag) |
Server addr. |
| service_name ( tag) |
Service name. |
| syslog_facility ( tag) |
Syslog facility |
| syslog_ident ( tag) |
Syslog identity |
| tls_ca_cert_file ( tag) |
Path to TLS CA certificate bundle |
| tls_cert_file ( tag) |
Path to TLS certificate file |
| tls_key_file ( tag) |
Path to TLS private key file |
| unixsocket ( tag) |
Path for Unix domain socket |
| acllog_max_len | Maximum number of ACL log entries to retain Type: int | (gauge) Unit: count |
| active_defrag_cycle_max | Maximum CPU effort percentage for active defragmentation Type: float | (gauge) Unit: percent,percent |
| active_defrag_ignore_bytes | Minimum memory fragmentation to start defrag Type: int | (gauge) Unit: digital,B |
| active_defrag_threshold_lower | Minimum memory fragmentation percentage to start active defrag Type: float | (gauge) Unit: percent,percent |
| active_defrag_threshold_upper | Maximum fragmentation percentage to use maximum effort Type: int | (gauge) Unit: percent,percent |
| active_expire_effort | Effort level for active key expiration (1-10) Type: int | (gauge) Unit: N/A |
| activedefrag | Active defragmentation enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| activerehashing | Active rehashing enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| aof_load_truncated | Load truncated AOF files (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| aof_rewrite_incremental_fsync | Enable incremental fsync during AOF rewrite (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| aof_timestamp_enabled | Whether to add timestamps to AOF entries (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| aof_use_rdb_preamble | Whether to use RDB preamble in AOF rewrites (1=yes, -1=no) Type: bool | (gauge) Unit: count |
| appendonly | Enable Append-Only File persistence Type: bool | (gauge) Unit: N/A |
| auto_aof_rewrite_min_size | Minimum AOF size in bytes for automatic rewrite Type: int | (gauge) Unit: digital,B |
| auto_aof_rewrite_percentage | AOF rewrite trigger based on size growth Type: int | (gauge) Unit: percent,percent |
| busy_reply_threshold | Threshold in microseconds for BUSY reply Type: int | (gauge) Unit: time,μs |
| client_output_buffer_limit_bytes | Client output buffer limits Type: int | (gauge) Unit: traffic,B/S |
| client_output_buffer_limit_overcome_seconds | Client output buffer soft limit duration Type: int | (gauge) Unit: time,s |
| client_query_buffer_limit | Client query buffer limit in bytes Type: int | (gauge) Unit: digital,B |
| cluster_allow_replica_migration | Whether cluster allows replica migration between masters (1=yes, -1=no) Type: bool | (gauge) Unit: count |
| cluster_announce_bus_port | Cluster bus port that nodes announce to other nodes Type: int | (gauge) Unit: N/A |
| cluster_announce_tls_port | TLS port that cluster nodes announce to other nodes Type: int | (gauge) Unit: N/A |
| cluster_enabled | Cluster mode enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| cluster_link_sendbuf_limit | Send buffer limit for cluster links in bytes Type: int | (gauge) Unit: digital,B |
| cluster_migration_barrier | Minimum replicas for master migration Type: int | (gauge) Unit: N/A |
| cluster_node_timeout | Cluster node timeout in milliseconds Type: int | (gauge) Unit: time,ms |
| cluster_port | Cluster bus port Type: int | (gauge) Unit: N/A |
| cluster_replica_validity_factor | Factor used to determine if a replica is valid for failover Type: int | (gauge) Unit: N/A |
| cluster_require_full_coverage | Require full slot coverage for cluster to accept writes (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| cluster_slave_no_failover | Deprecated alias for cluster_replica_no_failover (1=yes, -1=no)Type: bool | (gauge) Unit: N/A |
| cluster_slave_validity_factor | Deprecated alias for cluster_replica_validity_factorType: int | (gauge) Unit: N/A |
| crash_memcheck_enabled | Enable memory checking on crash (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| daemonize | Run Redis as a daemon (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| databases | Number of databases Type: int | (gauge) Unit: count |
| disable_thp | Disable Transparent Huge Pages (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| dynamic_hz | Dynamically adjust hz based on clients Type: bool | (gauge) Unit: N/A |
| enable_debug_command | Enable DEBUG command (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| enable_module_command | Enable module commands (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| enable_protected_configs | Enable protected configuration commands (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| hash_max_listpack_value | Maximum value size in bytes for listpack encoding of hashes Type: int | (gauge) Unit: digital,B |
| hash_max_ziplist_entries | Maximum entries for ziplist encoding of hashes Type: int | (gauge) Unit: count |
| hash_max_ziplist_value | Maximum value size in bytes for ziplist encoding of hashes Type: int | (gauge) Unit: digital,B |
| hide_user_data_from_log | Hide user data in logs (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| hll_sparse_max_bytes | Maximum size in bytes for sparse HyperLogLog representation Type: int | (gauge) Unit: digital,B |
| io_threads | Number of I/O threads (1=main thread only) Type: int | (gauge) Unit: count |
| jemalloc_bg_thread | Enable jemalloc background threads (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| latency_monitor_threshold | Threshold in milliseconds for latency monitoring (0=disabled) Type: int | (gauge) Unit: time,ms |
| latency_tracking | Latency tracking enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| lazyfree_lazy_eviction | Use lazy freeing for evictions (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| lazyfree_lazy_expire | Use lazy freeing for expired keys Type: bool | (gauge) Unit: N/A |
| lazyfree_lazy_server_del | Use lazy freeing for server operations (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| lazyfree_lazy_user_del | Use lazy freeing for user DEL commands (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| lazyfree_lazy_user_flush | Use lazy freeing for FLUSH commands (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| lfu_log_factor | Logarithmic factor for LFU (Least Frequently Used) eviction algorithm Type: int | (gauge) Unit: N/A |
| list_compress_depth | Depth for list compression (0=disabled) Type: int | (gauge) Unit: count |
| list_max_listpack_size | Maximum size for list encoding of lists(-1:4KB/-2:8KB(default)/-3:16KB/-4:32KB/-5:64KB) Type: int | (gauge) Unit: N/A |
| list_max_ziplist_size | Maximum size for ziplist encoding of lists(-1:4KB/-2:8KB(default)/-3:16KB/-4:32KB/-5:64KB) Type: int | (gauge) Unit: N/A |
| lua_time_limit | Maximum execution time in milliseconds for Lua scripts Type: int | (gauge) Unit: time,ms |
| max_new_tls_connections_per_cycle | Maximum new TLS connections per event loop cycle Type: int | (gauge) Unit: count |
| maxclients | Maximum number of client connections Type: int | (gauge) Unit: count |
| maxmemory | Maximum memory limit (0=unlimited) Type: int | (gauge) Unit: digital,B |
| maxmemory_clients | Maximum memory allocated for client buffers Type: int | (gauge) Unit: digital,B |
| maxmemory_eviction_tenacity | Aggressiveness of eviction process (0-100) Type: int | (gauge) Unit: N/A |
| maxmemory_samples | Number of samples for LRU/LFU eviction algorithms Type: int | (gauge) Unit: count |
| min_replicas_max_lag | Maximum lag for min_replicasType: int | (gauge) Unit: time,s |
| min_replicas_to_write | Minimum number of connected replicas to allow writes Type: int | (gauge) Unit: count |
| min_slaves_max_lag | Deprecated alias for min_replicas_max_lagType: int | (gauge) Unit: time,s |
| min_slaves_to_write | Deprecated alias for min_replicas_to_writeType: int | (gauge) Unit: count |
| no_appendfsync_on_rewrite | Avoid fsync during AOF rewrite (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| oom_score_adj | Adjustment for OOM (Out Of Memory) killer score (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| port | TCP port Redis listens on Type: int | (gauge) Unit: N/A |
| protected_mode | Protected mode enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| proto_max_bulk_len | Maximum bulk length in bytes Type: int | (gauge) Unit: digital,B |
| rdb_del_sync_files | Delete RDB files after successful synchronization (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| rdb_save_incremental_fsync | Incremental fsync during RDB saves Type: bool | (gauge) Unit: N/A |
| rdbcompression | Compress RDB files (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| repl_backlog_size | Size in bytes of replication backlog buffer Type: int | (gauge) Unit: digital,B |
| repl_backlog_ttl | Time in seconds to retain replication backlog after master disconnect Type: int | (gauge) Unit: time,s |
| repl_disable_tcp_nodelay | Disable TCP_NODELAY on replica sockets (-1=no, 1=yes)Type: bool | (gauge) Unit: count |
| repl_diskless_sync | Use diskless replication Type: bool | (gauge) Unit: N/A |
| repl_diskless_sync_delay | Delay in seconds before starting diskless sync Type: int | (gauge) Unit: time,s |
| repl_diskless_sync_max_replicas | Maximum number of replicas to support with diskless sync Type: int | (gauge) Unit: count |
| repl_ping_replica_period | Interval in seconds for pinging replicas Type: int | (gauge) Unit: time,s |
| repl_ping_slave_period | Deprecated alias for repl_ping_replica_periodType: int | (gauge) Unit: time,s |
| repl_timeout | Timeout for replication in seconds Type: int | (gauge) Unit: time,s |
| replica_announce_port | Port that replicas announce to master Type: int | (gauge) Unit: N/A |
| replica_announced | Whether the replica is announced to the cluster (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| replica_ignore_disk_write_errors | Whether replicas should ignore disk write errors (1=yes, -1=no) Type: bool | (gauge) Unit: count |
| replica_ignore_maxmemory | Replicas ignore maxmemory setting (1=yes, -1=no) Type: int | (gauge) Unit: N/A |
| replica_lazy_flush | Use lazy flush during replica synchronization (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| replica_priority | Priority for replica to become master (lower value = higher priority) Type: int | (gauge) Unit: N/A |
| replica_read_only | Replicas accept read-only commands (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| replica_serve_stale_data | Replicas serve stale data when master is down (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| set_max_intset_entries | Maximum entries for intset encoding of sets Type: int | (gauge) Unit: count |
| set_max_listpack_entries | Maximum entries for listpack encoding of sets Type: int | (gauge) Unit: count |
| set_max_listpack_value | Maximum value size in bytes for listpack encoding of sets Type: int | (gauge) Unit: digital,B |
| slave_announce_port | Deprecated alias for replica_announce_portType: int | (gauge) Unit: N/A |
| slave_ignore_maxmemory | Deprecated alias for replica_ignore_maxmemoryType: bool | (gauge) Unit: N/A |
| slave_lazy_flush | Deprecated alias for replica_lazy_flush (1=yes, -1=no)Type: bool | (gauge) Unit: N/A |
| slave_read_only | Deprecated alias for replica_read_onlyType: bool | (gauge) Unit: N/A |
| slave_serve_stale_data | Whether replicas should serve stale data when master is down (1=yes, -1=no) Type: bool | (gauge) Unit: count |
| slowlog_log_slower_than | Threshold in microseconds for slow log entries Type: int | (gauge) Unit: time,μs |
| slowlog_max_len | Maximum number of slow log entries to retain Type: int | (gauge) Unit: count |
| socket_mark_id | Socket mark ID for network traffic Type: int | (gauge) Unit: N/A |
| stop_writes_on_bgsave_error | Stop accepting writes if RDB save fails (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| stream_node_max_bytes | Maximum size in bytes for a single stream node Type: int | (gauge) Unit: digital,B |
| stream_node_max_entries | Maximum number of entries in a single stream node Type: int | (gauge) Unit: count |
| tcp_backlog | TCP connection queue size Type: int | (gauge) Unit: count |
| tcp_keepalive | TCP keepalive interval Type: int | (gauge) Unit: time,s |
| timeout | Close idle client connections after this duration in seconds (0=disabled) Type: int | (gauge) Unit: time,s |
| tls_auth_clients | Require client authentication for TLS connections (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| tls_cluster | Use TLS for cluster bus communication (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| tls_port | Port for TLS connections (0=disabled) Type: int | (gauge) Unit: N/A |
| tls_prefer_server_ciphers | Prefer server's cipher suite order (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| tls_session_cache_size | Size of TLS session cache Type: int | (gauge) Unit: count |
| tls_session_cache_timeout | Timeout in seconds for TLS session cache entries Type: int | (gauge) Unit: time,s |
| tls_session_caching | TLS session caching enabled (1=yes, -1=no) Type: bool | (gauge) Unit: N/A |
| tracking_table_max_keys | Maximum number of keys in client tracking table Type: int | (gauge) Unit: count |
| zset_max_listpack_entries | Maximum entries for listpack encoding of sorted sets Type: int | (gauge) Unit: count |
| zset_max_listpack_value | Maximum value size in bytes for listpack encoding of sorted sets Type: int | (gauge) Unit: digital,B |
| zset_max_ziplist_entries | Maximum entries for ziplist encoding of sorted sets Type: int | (gauge) Unit: count |
| zset_max_ziplist_value | Maximum value size in bytes for ziplist encoding of sorted sets Type: int | (gauge) Unit: digital,B |
redis_bigkey¶
通过扫描 Redis DB 中每个 key 的大小,筛选出超过指定大小的 key 信息。
| Tags & Fields | Description |
|---|---|
| db_name ( tag) |
DB name. |
| host ( tag) |
Hostname. |
| key ( tag) |
Key name. |
| key_type ( tag) |
Key type(string/hash/list/set/zset) |
| server ( tag) |
Server addr. |
| keys_sampled | Sampled keys in the key space. Type: int | (gauge) Unit: count |
| message | Big key message details Type: string | (N/A) Unit: count |
| status | warn or infoType: string | (enum) Unit: N/A |
| value_length | Key length. Type: int | (gauge) Unit: digital,B |
redis_hotkey¶
通过扫描 Redis DB 中每个 key 的访问频率,返回最高频(默认 top-10)的 key 信息。注意,需 Redis 的 maxmemory-policy 设置为 allkeys-lfu 或 volatile-lfu。
| Tags & Fields | Description |
|---|---|
| db_name ( tag) |
DB name. |
| host ( tag) |
Hostname. |
| key ( tag) |
Key name. |
| key_type ( tag) |
Key type(string/hash/list/set/zset) |
| server ( tag) |
Server addr. |
| key_count | Key count times. Type: int | (gauge) Unit: count |
| keys_sampled | Sampled keys in the key space. Type: int | (gauge) Unit: count |
| status | warn or infoType: string | (enum) Unit: N/A |
redis_client¶
CLIENT LIST 返回中带特定标志位(flags)的客户端详情,详细字段参见这里。
| Tags & Fields | Description |
|---|---|
| host ( tag) |
Hostname. |
| server ( tag) |
Server addr. |
| message | Raw text of origin client list Type: string | (N/A) Unit: N/A |
| more-fields... | Type: N/A | (N/A) Unit: N/A |
| status | current database ID Type: string | (N/A) Unit: N/A |
redis_latency¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Server addr |
| cost_time | Latest event latency in millisecond. Type: int | (gauge) Unit: time,ms |
| event_name | Event name. Type: string | (gauge) Unit: N/A |
| max_cost_time | All-time maximum latency for this event. Type: int | (gauge) Unit: time,ms |
| occur_time | Unix timestamp of the latest latency spike for the event. Type: int | (gauge) Unit: timeStamp,sec |
redis_slowlog¶
采集 Redis 慢查询历史
| Tags & Fields | Description |
|---|---|
| host ( tag) |
host |
| message ( tag) |
log message |
| server ( tag) |
server |
| client_addr | The client ip:port that run the slow query Type: string | (unknown) Unit: N/A |
| client_name | The client name that run the slow query(if client setname executed on client-side)Type: string | (unknown) Unit: N/A |
| command | Slow command Type: string | (unknown) Unit: N/A |
| slowlog_95percentile | Slow 95th percentile duration Type: int | (gauge) Unit: time,μs |
| slowlog_avg | Slow average duration Type: float | (gauge) Unit: time,μs |
| slowlog_id | Slow log unique ID Type: int | (unknown) Unit: N/A |
| slowlog_max | Slow maximum duration Type: int | (gauge) Unit: time,μs |
| slowlog_median | Slow median duration Type: int | (gauge) Unit: time,μs |
| slowlog_micros | Cost time Type: int | (gauge) Unit: time,μs |
redis_topology¶
Redis 拓扑变化事件,通过监控集群/哨兵节点检测。
| Tags & Fields | Description |
|---|---|
| change_type ( tag) |
Change type: master_count_changed, master_nodes_changed, master_failover, replica_count_changed, replica_nodes_changed |
| mode ( tag) |
Redis mode: cluster or sentinel |
| message | Detailed description of the topology change event Type: string Unit: N/A |
Pipeline 日志切割¶
原始日志为
切割后的字段列表如下:
| 字段名 | 字段值 | 说明 |
|---|---|---|
pid |
122 |
进程 id |
role |
M |
角色 |
serverity |
* |
服务 |
statu |
notice |
日志级别 |
msg |
Background saving terminated with success |
日志内容 |
time |
1557861100164000000 |
纳秒时间戳(作为行协议时间) |