This topic describes the metrics that are collected in real time to monitor the status of ApsaraDB for Redis instances and the limits of these metrics in use.

Query monitoring data

For more information, see Query monitoring data.

Metric groups for data nodes

Metrics in basic metric groups and commands-related metric groups are collected for data nodes of an ApsaraDB for Redis instance. For cluster instances and read/write splitting instances, some metrics are displayed in the aggregate views. For example, if the CPU utilization data of all data nodes is aggregated, the average CPU utilization of data nodes in the current instance is displayed.

Note The metrics for read replicas of read/write splitting instances are not aggregated.
Table 1. Basic metric groups
Metric group New metric name Original metric name Support for aggregate views Unit Description and limit
CPU Utilization CPU Utilization CpuUsage ✔️ % N/A
Used Memory, Memory Usage Memory Usage memoryUsage ✔️ % The engine version of the ApsaraDB for Redis instance must be Redis 4.0 or later. For more information about how to upgrade the engine version, see Upgrade the major version.
Used Memory UsedMemory ✔️ Bytes The amount of used memory, which includes the memory consumed by data and cache.
Memory Usage of Lua Scripts UsedMemoryLua Bytes N/A
Requests Total QPS TotalQps ✔️ Counts/s The total number of requests per second, which includes read and write requests.
Read QPS GetQps ✔️ Counts/s Indicates the number of reads per second and the number of writes per second.
Note The engine version of the ApsaraDB for Redis instance must be Redis 4.0 or later and the latest minor version must be used. For more information about how to upgrade the minor version, see Upgrade the major version and Upgrade the minor version.
Write QPS PutQps ✔️ Counts/s
Connections, Connection Usage Connection Usage ConnectionUsage ✔️ % Connection usage = Number of used connections/Number of supported connections. For more information about connections that are supported by an ApsaraDB for Redis instance, see Overview.
Note
  • If clients connect to a cluster instance in direct connect mode, you must pay attention to this metric.
  • If clients connect to a cluster instance or read/write splitting instance through a proxy node, you can ignore this metric. In this case, pay attention to metrics for the proxy node. For more information, see Metric groups for proxy nodes.
Used Connections ConnCount (UsedConnection) ✔️ Counts
Outbound/Inbound Traffic Rate Inbound Traffic Rate IntranetIn ✔️ KBps N/A
Outbound Traffic Rate IntranetOut ✔️ KBps
Outbound/Inbound Traffic Usage Inbound Traffic Usage IntranetInRatio ✔️ % N/A
Outbound Traffic Usage IntranetOutRatio ✔️ %
Network latency Average Latency AvgRt ✔️ us The average response time of all commands. This is the average time that is measured from the time when a data node receives a command request to the time when the data node returns the response.
Key Statistics Total Keys Keys ✔️ Counts The total number of primary keys that are stored in the instance.
Total Keys with TTLs Expires ✔️ Counts This metric indicates the instantaneous value of the total number of keys when the data is collected.
Total Purged Keys ExpiredKeys ✔️ Counts N/A
Total Evicted Keys EvictedKeys ✔️ Counts
Purged Keys Per Second ExpiredKeysPerSecond ✔️ Counts/s
Evicted Keys Per Second EvictedKeysPerSecond ✔️ Counts/s
Hit Ratio Hit Ratio hit_rate ✔️ % The hit ratio of keys. Hit ratio = Total key hits/(Total key hits + Total key misses).
Note If you use ApsaraDB for Redis 2.8, the metric is not collected. You must upgrade the minor version of the instance. For more information, see Upgrade the minor version.
Hits and Misses Hits Per Second hit ✔️ Counts N/A
Misses Per Second miss (Miss Count) ✔️ Counts
Disk Information Total Disk Usage ins_size ✔️ MB Only ApsaraDB for Redis instances of Enterprise Edition (Hybrid-storage instances (phased out)) support this metric.
Disk Usage of Data Files DataSize ✔️ MB The size of data files on the persistent disk, which includes append-only files (AOF) and Redis Database (RDB) files.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
Disk Usage of Log Files LogSize ✔️ MB The size of log files on the persistent disk, which includes the operational logs of ApsaraDB for Redis instances.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
Statistics of Keys on Disk and in Memory Keys on Disk swapped_key ✔️ Counts Only ApsaraDB for Redis instances of Enterprise Edition (Hybrid-storage instances (phased out)) support this metric.
Keys in Memory inmem_keys ✔️ Counts
Table 2. Commands-related metric groups
Metric group Support for aggregate views Unit Description and limit
Key Monitoring Group Counts/s Information about key-value commands, such as the number of times DEL and EXITS are executed.
String Monitoring Group Counts/s Information about string commands, such as the number of times APPEND and MGET are executed.
Hash Monitoring Group Counts/s Information about hash-related commands, such as the number of times HGET and HDEL are executed.
List Monitoring Group Counts/s Information about list commands, such as the number of times BLPOP and BRPOP are executed.
Set Monitoring Group Counts/s Information about set commands, such as the number of times SADD and SCARD are executed.
Zset Monitoring Group Counts/s Information about zset commands, such as the number of times ZADD and ZCARD are executed.
HyperLog Monitoring Group Counts/s Information about HyperLogLog commands, such as the number of times PFADD and PFCOUNT are executed.
Pub/Sub Monitoring Group Counts/s Information about publication and subscription commands, such as the number of times PUBLISH and SUBSCRIBE are executed.
Transaction Monitoring Group Counts/s Information about transaction commands, such as the number of times WATCH, MULTI, and EXEC are executed.
Lua Script Monitoring Group Counts/s Information about commands for Lua scripts, such as the number of times EVAL and SCRIPT are executed.
Tairdoc Monitoring Group Counts/s Information about TairDoc commands, such as the number of times JSON.SET and JSON.GET are executed.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
TairHash Monitoring Group Counts/s Information about TairHash commands, such as the number of times EXHSET and EXHMSET are executed.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
TairString Monitoring Group Counts/s Information about TairString commands, such as the number of times EXSET and EXGET are executed.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
TairGis Monitoring Group Counts/s Information about TairGis commands, such as the number of times GIS.ADD, GIS.GET, and GIS.DEL are executed.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.
TairBloom Monitoring Group Counts/s Information about TairBloom commands, such as the number of times BF.RESERVE and BF.ADD are executed.
Note Only ApsaraDB for Redis instances of Enterprise Edition (Performance-enhanced instances) and (Hybrid-storage instances (phased out)) support this metric.

Metric groups for proxy nodes

Metrics for proxy nodes of cluster and read/write splitting instances are collected. Some metrics are displayed in the aggregate views. For example, if the CPU utilization data of all proxy nodes is aggregated, the average CPU utilization of proxy nodes in the current instance is displayed.

Metric group New metric name Original metric name Support for aggregate views Unit Description and limit
CPU CPU Utilization CpuUsage ✔️ % N/A
Requests Total QPS TotalQps ✔️ Counts/s The total number of requests per second, which includes read and write requests.
Read QPS GetQps ✔️ Counts/s Indicates the number of reads per second and the number of writes per second.
Note To collect this metric, you must upgrade the minor version of the ApsaraDB for Redis instance to the latest version. For more information, see Upgrade the minor version.
Write QPS PutQps ✔️ Counts/s
Connections Connections Usage ConnectionUsage ✔️ % Connection usage = Number of used connections/Number of supported connections. For more information about connections that are supported by an ApsaraDB for Redis instance, see Overview.
Note
  • If clients connect to a cluster instance or read/write splitting instance through a proxy node, you must pay attention to this metric.
  • If clients connect to a cluster instance of ApsaraDB for Redis in direct connect mode, you can ignore this metric. In this case, pay attention to the metrics for data nodes. For more information, see Metric groups for data nodes.
Used Connections UsedConnection ✔️ Counts
Outbound/Inbound Traffic Inbound Traffic Rate IntranetIn ✔️ KBps N/A
Outbound Traffic Rate IntranetOut ✔️ KBps
Size of Requests and Responses Average Bytes Per Request AvgRequestSize Byte N/A
Average Bytes Per Response AvgResponseSize Byte
Maximum Bytes Per Request MaxRequestSize Byte
Maximum Bytes Per Response MaxResponseSize Byte
Latency Average Latency AvgRt ✔️ us The average response time of all commands. This is the average time that is measured from the time when the proxy node receives a command to the time when the proxy node returns the response.