CloudMonitor provides features such as metric collection, visualization, and real-time alerting. ApsaraMQ for RocketMQ allows you to create alert rules by using CloudMonitor. This helps you monitor the running status of the service and detect system exceptions in a timely and efficient manner.
Monitoring metrics
For information about metrics related to message accumulation scenarios, such as consumer lag, consumer lag time, ready messages, ready message queue time, see Scenarios.
Category | Metric | Metric name | Calculation method | Unit |
Instance | TPS of an instance | InstanceApiCallTps | Sum | count/s |
Storage capacity of an ApsaraMQ for RocketMQ 5.0 instance | InstanceStorageSize | Sum | byte | |
Internet outbound bandwidth of an ApsaraMQ for RocketMQ 5.0 instance | InstanceInternetFlowoutBandwidth | Max | byte/s | |
Peak TPS for sending messages in an ApsaraMQ for RocketMQ 5.0 instance | InstanceSendApiCallTps | Max | count/s | |
Peak TPS for receiving messages in an ApsaraMQ for RocketMQ 5.0 instance | InstanceReceiveApiCallTps | Max | count/s | |
Producer | Number of sent messages in an instance per minute | SendMessageCountPerInstance | Sum | count/min |
Number of sent messages in a topic per minute | SendMessageCountPerTopic | Sum | count/min | |
Number of throttled requests to send messages in an instance per minute | ThrottledSendRequestsPerInstance | Sum | count/min | |
Number of throttled requests to send messages in a topic per minute | ThrottledSendRequestsPerTopic | Sum | count/min | |
Consumer | Number of received messages in an instance per minute | ReceiveMessageCountPerInstance | Sum | count/min |
Number of received messages in a consumer group per minute | ReceiveMessageCountPerGid | Sum | count/min | |
Number of received messages from a specific topic in a consumer group per minute | ReceiveMessageCountPerGidTopic | Sum | count/min | |
Number of throttled requests to receive messages in an instance per minute | ThrottledReceiveRequestsPerInstance | Sum | count/min | |
Number of throttled requests to receive messages in a consumer group per minute | ThrottledReceiveRequestsPerGid | Sum | count/min | |
Number of throttled requests to receive messages from a specific topic in a consumer group per minute | ThrottledReceiveRequestsPerGidTopic | Sum | count/min | |
Number of accumulated messages in a consumer group | ConsumerLag | Sum | count | |
Number of accumulated messages from a specific topic in a consumer group | ConsumerLagPerGidTopic | Sum | count | |
Lag time for processing messages in a consumer group | ConsumerLagLatencyPerGid | Max | ms | |
Lag time for processing messages from a specific topic in a consumer group | ConsumerLagLatencyPerGidTopic | Max | ms | |
Queuing time for ready messages in a consumer group | (GroupId)ReadyMessageQueueTime | Max | ms | |
Queuing time for ready messages from a specific topic in a consumer group | ReadyMessageQueueTimePerGidTopic | Max | ms | |
Number of ready messages in a consumer group | ReadyMessages | Sum | count | |
Number of ready messages from a specific topic in a consumer group | ReadyMessagesPerGidTopic | Sum | count | |
Number of new dead-letter messages in a consumer group per minute | SendDLQMessageCountPerGid | Sum | count/min | |
Number of new dead-letter messages from a specific topic in a consumer group per minute | SendDLQMessageCountPerGidTopic | Sum | count/min |
Billing description
You are not charged for the monitoring and alerting feature of ApsaraMQ for RocketMQ.
Prerequisites
The following service-linked role is created:
Role name: AliyunServiceRoleForOns
Role policy: AliyunServiceRolePolicyForOns
Permission description: Allow ApsaraMQ for RocketMQ to assume this role to access CloudMonitor and Application Real-Time Monitoring Service (ARMS) to implement the monitoring and alerting feature and the dashboard feature.
For more information, see Service-linked roles
View metrics
Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.
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.
In the left-side navigation pane, click Monitoring and Alerts.
On the Monitoring and Alerts page, select the type of resource whose metrics you want to query from the Group Name drop-down list. Then, select a query time.
The charts of all metrics for the resource type are automatically displayed on this page.
Create an alert rule
On the Instances page, click the name of the instance that you want to manage.
In the left-side navigation pane, click Monitoring and Alerts.
In the upper-right corner of the Monitoring and Alerts page, click Create Alert Rule.
The page is redirected to the Create Alert Rule panel in the CloudMonitor console.
In the Create Alert Rule panel, follow the on-screen instructions to configure the rule and notification settings. Then, click OK. For information about the parameters, see Create an alert rule.
References
You can use the monitoring and alerting feature to configure alert rules for key metrics and business metrics of ApsaraMQ for RocketMQ. For information about how to configure an alert rule and the recommended metrics, see Configure the monitoring and alerting feature for risk warning.