ApsaraDB for Redis collects more than 10 groups of metrics in real time. This allows you to monitor the status of ApsaraDB for Redis instances. This topic describes the purpose of each metric.

Monitoring frequency

The monitoring frequency is the frequency at which the performance monitoring system collects monitoring data. For example, if the system collects data every 5 seconds, the monitoring frequency is 5 Seconds, and the monitoring cycle (or collection cycle) is 5 seconds. For more information about how to modify the monitoring frequency, see Modify the monitoring frequency.

Note By default, the monitoring frequency is set to 60 Seconds. If the frequency is set to 5 Seconds, the time period between the beginning time and end time cannot exceed 30 minutes.

Monitoring groups

ApsaraDB for Redis supports a wide range of monitoring groups. You can view the metrics of different monitoring groups in the console. For more information, see Customize metrics. The following table describes the features of monitoring groups.

Note Proxy nodes support only Basic Monitoring Group.
Monitoring group Description
Basic Monitoring Group The basic metrics of an instance, such as the queries per second (QPS), bandwidth, and memory usage. For more information, see Data node metrics in the basic monitoring group and Metrics for proxy nodes in the basic monitoring group.
Note Only cluster instances and read/write splitting instances collect metrics for proxy nodes.
Key Monitoring Group The metrics on the use of key-value related commands, such as the number of times DEL and EXITS are run.
String Monitoring Group The metrics on the use of string-related commands, such as the number of times APPEND and MGET are run.
Hash Monitoring Group The metrics on the use of hash-related commands, such as the number of times HGET and HDEL are run.
List Monitoring Group The metrics on the use of list-related commands, such as the number of times BLPOP and BRPOP are run.
Set Monitoring Group The metrics on the use of set-related commands, such as the number of times SADD and SCARD are run.
Zset Monitoring Group The metrics on the use of zset-related commands, such as the number of times ZADD and ZCARD are run.
HyperLog Monitoring Group The metrics on the use of HyperLogLog-related commands, such as the number of times PFADD and PFCOUNT are run.
Pub/Sub Monitoring Group The metrics on the use of publication and subscription-related commands, such as the number of times PUBLISH and SUBSCRIBE are run.
Transaction Monitoring Group The metrics on the use of transaction-related commands, such as the number of times WATCH, MULTI, and EXEC are run.
Lua Script Monitoring Group The metrics on the use of Lua script-related commands, such as the number of times EVAL and SCRIPT are run.
TairDoc monitoring group
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
The metrics on the use of TairDoc commands, such as the number of times JSON.SET and JSON.GET are run.
TairHash monitoring group
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
The metrics on the use of TairHash commands, such as the number of times EXHSET and EXHMSET are run.
TairString monitoring group
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
The metrics on the use of TairString commands, such as the number of times EXSET and EXGET are run.
TairGis monitoring group
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
The metrics on the use of TairGis commands, such as the number of times GIS.ADD, GIS.GET, and GIS.DEL are run.
TairBloom monitoring group
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
The metrics on the use of TairBloom commands, such as the number of times BF.RESERVE and BF.ADD are run.

Data node metrics in the basic monitoring group

ApsaraDB for Redis supports a wide range of monitoring groups. The following table describes the metrics supported by the basic monitoring group. For read/write splitting instances and cluster instances, the metrics supported by the basic monitoring group display aggregated data. For example, the CpuUsage metric of the two types of instances displays the average CPU utilization of all nodes within an instance.

Note
  • The monitoring metrics for read replicas of read/write splitting instances are not aggregated.
  • For read/write splitting instances, you can view the metrics of a specific node. For more information, see Query monitoring data.
Type Metric Aggregation supported Unit Description
CPU CpuUsage ✔️ % The CPU usage.
Memory UsedMemory ✔️ Bytes The amount of used memory, which includes the memory consumed by the data and cache.
memoryUsage ✔️ % The memory usage.
Note Instances of ApsaraDB for Redis 2.8 do not support this metric. To display this metric, you must upgrade the engine version of the instance. For more information, see Upgrade the major version.
Request TotalQps ✔️ Counts/s The total number of requests per second, which includes read and write requests.
ConnCount (UsedConnection) ✔️ Counts The number of used connections. This is the number of Transmission Control Protocol (TCP) connections to the node.
Note
  • This metric is collected if the client is connected to a cluster instance of ApsaraDB for Redis through a private endpoint.
  • If the client is connected to a cluster instance or read/write splitting instance by using a proxy node, this metric does not apply. In this case, take note of the number of connections to the proxy node.
GetQps ✔️ Counts/s The number of read requests per second.
Note To display this metric, the engine version of the ApsaraDB for Redis instance must be 4.0 or later, and the minor version must be the latest. For more information, see Upgrade the major version and Upgrade the minor version.
PutQps ✔️ Counts/s The number of write requests per second.
Note To display this metric, the engine version of the ApsaraDB for Redis instance must be 4.0 or later, and the minor version must be the latest. For more information, see Upgrade the major version and Upgrade the minor version.
ConnectionUsage ✔️ % The connections usage. Connections usage = Number of connections/Total number of connections supported by the instance.
Data center/SLB instance IntranetIn ✔️ KBps The rate of inbound traffic.
IntranetInRatio ✔️ % The usage of inbound bandwidth.
IntranetOut ✔️ KBps The rate of outbound traffic.
IntranetOutRatio ✔️ % The usage of outbound bandwidth.
Latency AvgRt ✔️ us The average response time of all commands. This is the average time period measured from the time when the data node receives a command to the time when the data node returns the response.
MaxRt ✔️ us The maximum response time of requests. This is the maximum response time at which a data node sends a response after it receives a command.
Key Keys ✔️ Counts The total number of primary keys that are stored on the instance.
Expires ✔️ Counts The total number of keys that have an expiration time configured.
Note This metric indicates the instantaneous value of the total number of keys when the data is collected.
ExpiredKeys ✔️ Counts The total number of expired keys.
EvictedKeys ✔️ Counts The total number of evicted keys.
ExpiredKeysPerSecond ✔️ Counts/s The number of keys that are expired per second.
EvictedKeysPerSecond ✔️ Counts/s The number of keys that are evicted per second.
Storage DataSize
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
MB The size of data files on the persistent disk, including the append-only files (AOF) and Redis Database (RDB) files.
LogSize
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Performance-enhanced instances) and (Hybrid-storage instances) support this monitoring group.
MB The size of logs on the persistent disk, including the operational logs of ApsaraDB for Redis instances.
swapped_key
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Hybrid-storage instances) support this monitoring group.
✔️ Counts The number of key-value pairs on the persistent disk.
Hit hit_rate ✔️ % The hit ratio of keys. Hit ratio = Total key hits/(Total key hits + Total key misses).
Note Instances of ApsaraDB for Redis 2.8 must be upgraded to the latest minor version. Otherwise, this metric may not be displayed. For more information, see Upgrade the minor version.
hit (Hit Count) ✔️ Counts The number of key hits per second.
miss (Miss Count) ✔️ Counts The number of key misses per second.
Key cache inmem_keys
Note Only instances of ApsaraDB for Redis Enhanced Edition (Tair) (Hybrid-storage instances) support this monitoring group.
Counts The number of key-value pairs in memory.

Metrics for proxy nodes in the basic monitoring group

For read/write splitting instances and cluster instances, the metrics of proxy nodes display aggregated data. For example, the CpuUsage metric displays the average CPU utilization of all proxy nodes in an instance.

Note You can also view the metrics of a specific node. For more information, see Query monitoring data.
Type Metric Aggregation supported Unit Description
CPU CpuUsage ✔️ % The CPU usage.
Request TotalQps ✔️ Counts/s The total number of requests per second, which includes read and write requests.
GetQps ✔️ Counts/s The number of read requests per second.
Note To view the 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.
PutQps ✔️ Counts/s The number of write requests per second.
Note To view the 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.
Connection UsedConnection ✔️ Counts The number of used connections. This is the number of TCP connections to the instance.
ConnectionUsage ✔️ % The connections usage. Connections usage = Number of connections/Total number of connections supported by the instance.
Data center/SLB instance IntranetIn ✔️ KBps The rate of inbound traffic.
IntranetOut ✔️ KBps The rate of outbound traffic.
Latency AvgRt ✔️ us The average response time of all commands. This is the average time period measured from the time when the proxy node receives a command to the time when the proxy node returns the response.
MaxRt ✔️ us The maximum response time of requests. This is the maximum response time at which a proxy node sends a response after it receives a command.
Number of bytes AvgRequestSize Byte The average size of a request in bytes.
AvgResponseSize Byte The average size of a response in bytes.
MaxRequestSize Byte The maximum size of a request in bytes.
MaxResponseSize Byte The maximum size of a response in bytes.