All Products
Search
Document Center

ApsaraMQ for RocketMQ:Monitoring and alerting

Last Updated:Mar 11, 2026

ApsaraMQ for RocketMQ integrates with CloudMonitor to collect metrics, visualize performance data, and trigger real-time alerts at no additional cost. Use these capabilities to track instance health, detect consumer lag, and identify throttling.

Prerequisites

Before you begin, ensure that you have:

  • The service-linked role AliyunServiceRoleForOns with the AliyunServiceRolePolicyForOns policy attached. This role grants ApsaraMQ for RocketMQ access to CloudMonitor and Application Real-Time Monitoring Service (ARMS) for monitoring, alerting, and dashboard features. For details, see Service-linked roles.

Metrics reference

ApsaraMQ for RocketMQ reports metrics across three categories: instance, producer, and consumer.

Note

For metrics specific to message accumulation -- including consumer lag, consumer lag time, ready messages, and ready message queue time -- see Scenarios.

Instance metrics

MetricMetric nameAggregationUnit
TPS of an instanceInstanceApiCallTpsSumcount/s
Storage capacity of an ApsaraMQ for RocketMQ 5.0 instanceInstanceStorageSizeSumbyte
Internet outbound bandwidth of an ApsaraMQ for RocketMQ 5.0 instanceInstanceInternetFlowoutBandwidthMaxbyte/s
Peak TPS for sending messages on an ApsaraMQ for RocketMQ 5.0 instanceInstanceSendApiCallTpsMaxcount/s
Peak TPS for receiving messages on an ApsaraMQ for RocketMQ 5.0 instanceInstanceReceiveApiCallTpsMaxcount/s

The following metrics apply to Internet-facing instances and support Average, Minimum, and Maximum aggregations:

MetricMetric nameUnit
Active connections per secondInstanceActiveConnectioncount/s
Inbound bits per secondInstanceTrafficRXbit/s
Outbound bits per secondInstanceTrafficTXbit/s
Dropped outbound bits per secondInstanceDropTrafficTXbit/s
Dropped inbound bits per secondInstanceDropTrafficRXbit/s
Outbound bandwidth utilizationInstanceTrafficTXUtilization%
Inbound bandwidth utilizationInstanceTrafficRXUtilization%

Producer metrics

MetricMetric nameAggregationUnit
Messages sent per instance per minuteSendMessageCountPerInstanceSumcount/min
Messages sent per topic per minuteSendMessageCountPerTopicSumcount/min
Throttled send requests per instance per minuteThrottledSendRequestsPerInstanceSumcount/min
Throttled send requests per topic per minuteThrottledSendRequestsPerTopicSumcount/min

Consumer metrics

Consumer metrics help you track message consumption rates, detect consumer lag, and identify throttling at the instance, consumer group, and topic levels.

MetricMetric nameAggregationUnit
Messages received per instance per minuteReceiveMessageCountPerInstanceSumcount/min
Messages received per consumer group per minuteReceiveMessageCountPerGidSumcount/min
Messages received from a topic in a consumer group per minuteReceiveMessageCountPerGidTopicSumcount/min
Throttled receive requests per instance per minuteThrottledReceiveRequestsPerInstanceSumcount/min
Throttled receive requests per consumer group per minuteThrottledReceiveRequestsPerGidSumcount/min
Throttled receive requests from a topic in a consumer group per minuteThrottledReceiveRequestsPerGidTopicSumcount/min

Consumer lag and ready message metrics

Consumer lag metrics indicate how far behind consumers are in processing messages. Monitor these metrics to identify slow or stuck consumers and take corrective action such as scaling consumer instances or investigating processing bottlenecks.

MetricMetric nameAggregationUnit
Consumer lag in a consumer groupConsumerLagSumcount
Consumer lag from a topic in a consumer groupConsumerLagPerGidTopicSumcount
Consumer lag time in a consumer groupConsumerLagLatencyPerGidMaxms
Consumer lag time from a topic in a consumer groupConsumerLagLatencyPerGidTopicMaxms
Ready message queuing time in a consumer group(GroupId)ReadyMessageQueueTimeMaxms
Ready message queuing time from a topic in a consumer groupReadyMessageQueueTimePerGidTopicMaxms
Ready messages in a consumer groupReadyMessagesSumcount
Ready messages from a topic in a consumer groupReadyMessagesPerGidTopicSumcount

Dead-letter message metrics

MetricMetric nameAggregationUnit
New dead-letter messages in a consumer group per minuteSendDLQMessageCountPerGidSumcount/min
New dead-letter messages from a topic in a consumer group per minuteSendDLQMessageCountPerGidTopicSumcount/min

View metrics

  1. Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar, select a region, such as China (Hangzhou). On the Instances page, click the name of the instance that you want to manage.

  3. In the left-side navigation pane, click Monitoring and Alerts.

  4. On the Monitoring and Alerts page, select a resource type from the Group Name drop-down list, then select a query time range. The page automatically displays metric charts for the selected resource type.

Create an alert rule

  1. On the Instances page, click the name of the instance that you want to manage.

  2. In the left-side navigation pane, click Monitoring and Alerts.

  3. In the upper-right corner of the Monitoring and Alerts page, click Create Alert Rule. The Create Alert Rule panel opens in the CloudMonitor console.

  4. Configure the alert rule and notification settings, then click OK. For parameter descriptions, see Create an alert rule.

Related information