ApsaraDB for Redis provides a variety of metrics to help you monitor the status of your ApsaraDB for Redis instances in real time. This topic describes these metrics and their limits.

View monitoring data

For more information, see View monitoring data.

Monitoring groups for data nodes

Metrics in basic monitoring groups and commands-related monitoring groups are supported for data nodes of an ApsaraDB for Redis instance. For cluster instances and read/write splitting instances, specific metrics are displayed in 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 For read/write splitting instances, the metric data of read replicas is not aggregated.
Table 1. Basic monitoring groups
Monitoring groupNew metric nameOld metric nameSupport for aggregate viewsUnitDescription and limit
CPU UtilizationCPU UtilizationCpuUsage✔️%N/A
Used Memory, Memory UsageMemory UsagememoryUsage✔️%This metric is available only for instances that run Redis 4.0 or later. For more information about how to upgrade the major version of an ApsaraDB for Redis instance, see Upgrade the major version.
Used MemoryUsedMemory✔️BytesThe amount of used memory, which includes the memory consumed by data and cache.
TairPENAStandardPmemUsageN/A✔️%This metric is available only for persistent memory-optimized instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about persistent memory-optimized instances, see Persistent memory-optimized instances.
Persistent Memory UsageN/A✔️Bytes
Memory Usage of Lua ScriptsUsedMemoryLuaBytesN/A
Disk UsageDisk UsageN/A%This metric is available only for ESSD-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about ESSD-based instances, see ESSD-based instances.
RequestsTotal QPSTotalQps✔️Count/sThe total number of requests per second, which includes read and write requests.
Read QPSGetQps✔️Count/sThe number of read requests per second and the number of write requests per second. These metrics are available only for instances that run Redis 4.0 or later.
Write QPSPutQps✔️Count/s
Other QPSNone✔️Count/sThe number of non-read/write requests, such as PING, INFO, SELECT, and AUTH requests. This metric is available only for instances that run Redis 4.0 or later.
Note For instances that contain proxy nodes, the Other QPS metric collects only the number of INFO requests.
Connections, Connection UsageConnection UsageConnectionUsage✔️%The connection usage is calculated by using the following formula: Connection usage = Number of used connections/Number of supported connections. For more information about connections that are supported for an ApsaraDB for Redis instance, see Overview.
Note
  • If clients connect to a cluster instance in direct connection mode, you must pay attention to this metric.
  • If clients connect to a cluster instance or read/write splitting instance by using a proxy node, you can ignore this metric and instead pay attention to proxy node metrics. For more information, see Monitoring groups for proxy nodes.
Used ConnectionsConnCount (UsedConnection)✔️N/A
Outbound/Inbound Traffic RateInbound Traffic RateIntranetIn✔️Kbit/sN/A
Outbound Traffic RateIntranetOut✔️Kbit/s
Outbound/Inbound Traffic UsageInbound Traffic UsageIntranetInRatio✔️%N/A
Outbound Traffic UsageIntranetOutRatio✔️%
LatencyAverage LatencyAvgRt✔️μsThe 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 a response.
Key StatisticsTotal KeysKeys✔️N/AThe total number of primary keys that are stored in the instance.
Total Keys with TTLsExpires✔️N/AThe instantaneous value of the total number of keys when the data is collected.
Total Purged KeysExpiredKeys✔️N/AN/A
Total Evicted KeysEvictedKeys✔️N/A
Purged Keys Per SecondExpiredKeysPerSecond✔️Count/s
Evicted Keys Per SecondEvictedKeysPerSecond✔️Count/s
Hit RatioHit Ratiohit_rate✔️%The hit ratio of keys. The value is calculated by using the following formula: Hit ratio = Total key hits/(Total key hits + Total key misses).
Note If you use an ApsaraDB for Redis instance whose major version is Redis 2.8, this metric is not displayed. You must update the minor version of the instance. For more information, see Update the minor version.
Hits and MissesHits Per Secondhit✔️N/AN/A
Misses Per Secondmiss (Miss Count)✔️N/A
Disk InformationTotal Disk Usageins_size✔️MBThis metric is available only for hybrid storage instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about hybrid storage instances, see Hybrid-storage instances (phased out).
Disk Usage of Data FilesDataSize✔️MBThe amount of disk space that is occupied by data files, which includes append-only files (AOF) and Redis Database (RDB) files.
Note This metric is available only for DRAM-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.
Disk Usage of Log FilesLogSize✔️MBThe amount of disk space that is occupied by log files, which includes the operational logs of the data node.
Note This metric is available only for DRAM-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.
Statistics of Keys on Disk and in MemoryKeys on Diskswapped_key✔️N/AThese metrics are available only for hybrid storage instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about hybrid storage instances, see Hybrid-storage instances (phased out).
Keys in Memoryinmem_keys✔️N/A
Table 2. Commands-related monitoring groups
Monitoring groupSupport for aggregate viewsUnitDescription and limit
Key Monitoring GroupCount/sThe monitoring information about key-value related commands, such as the number of times DEL and EXITS are executed.
String Monitoring GroupCount/sThe monitoring information about string commands, such as the number of times APPEND and MGET are executed.
Hash Monitoring GroupCount/sThe monitoring information about hash-related commands, such as the number of times HGET and HDEL are executed.
List Monitoring GroupCount/sThe monitoring information about list commands, such as the number of times BLPOP and BRPOP are executed.
Set Monitoring GroupCount/sThe monitoring information about set commands, such as the number of times SADD and SCARD are executed.
Zset Monitoring GroupCount/sThe monitoring information about zset commands, such as the number of times ZADD and ZCARD are executed.
HyperLog Monitoring GroupCount/sThe monitoring information about HyperLogLog commands, such as the number of times PFADD and PFCOUNT are executed.
Pub/Sub Monitoring GroupCount/sThe monitoring information about publication and subscription commands, such as the number of times PUBLISH and SUBSCRIBE are executed.
Transaction Monitoring GroupCount/sThe monitoring information about transaction commands, such as the number of times WATCH, MULTI, and EXEC are executed.
Lua Script Monitoring GroupCount/sThe monitoring information about Lua script commands, such as the number of times EVAL and SCRIPT are executed.
Tairdoc Monitoring GroupCount/sThe monitoring information about TairDoc commands, such as the number of times JSON.SET and JSON.GET are executed.
Note This metric is available only for DRAM-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.
TairHash Monitoring GroupCount/sThe monitoring information about exHash commands, such as the number of times EXHSET and EXHMSET are executed.
Note This metric is available only for DRAM-based instances and persistent memory-optimized instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances. For more information about persistent memory-optimized instances, see Persistent memory-optimized instances.
TairString Monitoring GroupCount/sThe monitoring information about exString commands, such as the number of times EXSET and EXGET are executed.
Note This metric is available only for DRAM-based instances and persistent memory-optimized instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances. For more information about persistent memory-optimized instances, see Persistent memory-optimized instances.
TairGis Monitoring GroupCount/sThe monitoring information about TairGIS commands, such as the number of times GIS.ADD, GIS.GET, and GIS.DEL are executed.
Note This metric is available only for DRAM-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.
TairBloom Monitoring GroupCount/sThe monitoring information about TairBloom commands, such as the number of times BF.RESERVE and BF.ADD are executed.
Note This metric is available only for DRAM-based instances of ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.

Monitoring groups for proxy nodes

Metrics for proxy nodes of cluster and read/write splitting instances are collected. Some metrics are displayed in 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.

Monitoring groupNew metric nameOld metric nameSupport for aggregate viewsUnitDescription and limit
CPUCPU UtilizationCpuUsage✔️%N/A
RequestsTotal QPSTotalQps✔️Count/sThe total number of requests per second, which includes read and write requests.
Read QPSGetQps✔️Count/sThe number of read requests per second and the number of write requests per second.
Note To collect this metric, you must update the minor version of the ApsaraDB for Redis instance to the latest version. For more information, see Update the minor version.
Write QPSPutQps✔️Count/s
ConnectionsConnection UsageConnectionUsage✔️%The connection usage is calculated by using the following formula: Connection usage = Number of used connections/Number of supported connections. For more information about connections that are supported for an ApsaraDB for Redis instance, see Overview.
Note
  • If clients connect to a cluster instance or read/write splitting instance by using a proxy node, you must pay attention to this metric.
  • If clients connect to a cluster instance of ApsaraDB for Redis in direct connection mode, you can ignore this metric and instead pay attention to data nodes metrics. For more information, see Monitoring groups for data nodes.
Used ConnectionsUsedConnection✔️N/A
Outbound/Inbound TrafficInbound Traffic RateIntranetIn✔️Kbit/sN/A
Outbound Traffic RateIntranetOut✔️Kbit/s
Size of Requests and ResponsesAverage Bytes Per RequestAvgRequestSizeBytesN/A
Average Bytes Per ResponseAvgResponseSizeBytes
Maximum Bytes Per RequestMaxRequestSizeBytes
Maximum Bytes Per ResponseMaxResponseSizeBytes
Network latencyAverage LatencyAvgRt✔️μsThe 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 a response.