After you create a Message Queue for RabbitMQ instance, CloudMonitor automatically starts to monitor the instance. You can view the metrics of instances, vhosts, queues, and exchanges to analyze the instance usage and performance. CloudMonitor also allows you to create alert rules for these metrics so that you can receive alerts and troubleshoot exceptions at the earliest opportunity.
Prerequisites
{ "Version": "1", "Statement": [ { "Action": "cms:QueryMetric*", "Resource": "*", "Effect": "Allow" } ] }
Metrics
The following table describes the metrics that are supported by Message Queue for RabbitMQ in the new Monitoring and Alerting page.
Resource type | Metric | Unit | Namespace | MetricName | Dimensions | Statistics |
---|---|---|---|---|---|---|
Instance | Number of inbound messages per second | Count/s | acs_amqp | InstanceTPSIn | userId, regionId, and instanceId | Value |
Number of outbound messages per second | Count/s | acs_amqp | InstanceTPSOut | userId, regionId, and instanceId | Value | |
Number of consumers | Count | acs_amqp | InstanceConsumers | userId, regionId, and instanceId | Value | |
Number of connections | Count | acs_amqp | InstanceConnections | userId, regionId, and instanceId | Value | |
Number of channels | Count | acs_amqp | InstanceChannelsNew | userId, regionId, and instanceId | Value | |
Vhost | Number of inbound messages per second | Count/s | acs_amqp | VHostTPSIn | userId, regionId, instanceId, and vhostName | Value |
Number of outbound messages per second | Count/s | acs_amqp | VHostTPSOut | userId, regionId, instanceId, and vhostName | Value | |
Number of consumers | Count | acs_amqp | InstanceVhostConsumers | userId, regionId, instanceId, and vhostName | Value | |
Number of connections | Count | acs_amqp | VhostConnections | userId, regionId, instanceId, and vhostName | Value | |
Number of channels | Count | acs_amqp | VhostChannels | userId, regionId, instanceId, and vhostName | Value | |
Queue | Number of inbound messages per second | Count/s | acs_amqp | QueueTPSIn | userId, regionId, instanceId, vhostName, and queueName | Value |
Number of outbound messages per second | Count/s | acs_amqp | QueueTPSOut | userId, regionId, instanceId, vhostName, and queueName | Value | |
Number of consumers | Count | acs_amqp | InstanceVhostQueueConsumers | userId, regionId, instanceId, vhostName, and queueName | Value | |
Number of accumulated messages | Count | acs_amqp | InstanceVhostQueueMessageAccum | userId, regionId, instanceId, vhostName, and queueName | Maximum | |
Exchange | Number of inbound messages per second | Count/s | acs_amqp | ExchangeTPSIn | userId, regionId, instanceId, vhostName, and exchangeName | Value |
Number of outbound messages per second | Count/s | acs_amqp | ExchangeTPSOut | userId, regionId, instanceId, vhostName, and exchangeName | Value |
You can call the DescribeMetricMetaList operation to query the detailed information about the preceding metrics for your Message Queue for RabbitMQ instance.
View monitoring data
Create an alert rule
- Log on to the Message Queue for RabbitMQ console.
- In the Resource Distribution section of the Overview page, select the region where your instance is located.
- On the Instances page, click the name of your instance.
- In the left-side navigation pane, click Monitoring and Alerting.
- On the Monitoring and Alerting page, click Alert Rules in the upper-right corner. The Alert Rules page of the CloudMonitor console appears. On the Threshold Value Alert tab, click Create Alert Rule.
- On the Create Alert Rule page, set the parameters as required to create an alert rule. For more information, see Alerting service.