All Products
Search
Document Center

ApsaraMQ for RocketMQ:Monitoring and alerting

Last Updated:Nov 29, 2024

CloudMonitor provides features such as monitoring data collection, visualization, and real-time monitoring and alerting. You can integrate CloudMonitor into ApsaraMQ for RocketMQ to monitor the running status of services and receive alert notifications. This helps you detect exceptions at the earliest opportunity and improve O&M efficiency.

For more information about CloudMonitor, see Cloud service monitoring.

Monitoring metrics

Note
  • For information about the Ready messages and Ready message queue time metrics, see Terms.

  • The data of each metric is aggregated at an interval of 1 minute.

Category

Monitoring item

Metric name

Unit

Dimensions

Instance

Transactions per second (TPS) on the instance

InstanceApiCallTps

count/s

userId and instanceId

Messages sent by producers per minute

SendMessageCountPerInstance

count/m

userId and instanceId

Messages received by consumers per minute

ReceiveMessageCountPerInstance

count/m

userId and instanceId

Throttled requests to send messages per minute

ThrottledSendRequestsPerInstance

count/m

userId and instanceId

Throttled requests to receive messages per minute

ThrottledReceiveRequestsPerInstance

count/m

userId and instanceId

Peak TPS for message sending on the ApsaraMQ for RocketMQ 5.0 instance

InstanceSendApiCallTps

count/s

userId and instanceId

Peak TPS for message consumption on the ApsaraMQ for RocketMQ 5.0 instance

InstanceReceiveApiCallTps

count/s

userId and instanceId

Storage size of the ApsaraMQ for RocketMQ 5.0 instance

InstanceStorageSize

B

userId and instanceId

Internet outbound bandwidth of the ApsaraMQ for RocketMQ 5.0 instance

InstanceInternetFlowoutBandwidth

B/s

userId and instanceId

Group

Accumulated messages

ConsumerLag

count

userId, instanceId, and groupId

Message processing latency

ConsumerLagLatencyPerGid

ms

userId, instanceId, and groupId

Ready messages

ReadyMessages

count

userId, instanceId, and groupId

Ready message queue time

ReadyMessageQueueTime

ms

userId, instanceId, and groupId

Messages received by consumers per minute

ReceiveMessageCountPerGid

count/m

userId, instanceId, and groupId

Throttled requests to receive messages per minute

ThrottledReceiveRequestsPerGid

count/m

userId, instanceId, and groupId

Dead-letter messages generated per minute

SendDLQMessageCountPerGid

count/m

userId, instanceId, and groupId

Topic

Messages sent by producers per minute

SendMessageCountPerTopic

count/m

userId, instanceId, and topic

Throttled requests to send messages per minute

ThrottledSendRequestsPerTopic

count/m

userId, instanceId, and topic

GroupId&Topic

Accumulated messages

ConsumerLagPerGidTopic

count

userId, instanceId, groupId, and topic

Message processing latency

ConsumerLagLatencyPerGidTopic

ms

userId, instanceId, topic, and groupId

Ready messages

ReadyMessagesPerGidTopic

count

userId, instanceId, groupId, and topic

Ready message queue time

ReadyMessageQueueTimePerGidTopic

ms

userId, instanceId, groupId, and topic

Messages received by consumers per minute

ReceiveMessageCountPerGidTopic

count/m

userId, instanceId, topic, and groupId

Throttled requests to receive messages per minute

ThrottledReceiveRequestsPerGidTopic

count/m

userId, instanceId, topic, and groupId

Dead-letter messages generated per minute

SendDLQMessageCountPerGidTopic

count/m

userId, instanceId, groupId, and topic

Billing

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

  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 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

  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 page is redirected to the Create Alert Rule panel in the CloudMonitor console.

  4. 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 configure alert rules for key metrics and business metrics of ApsaraMQ for RocketMQ. For more information, see Configure the monitoring and alerting feature for risk warning.