After you create a Message Queue for RabbitMQ instance, CloudMonitor automatically starts to monitor the instance. You can view the metrics for 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.

Metrics

The following table describes the metrics that are supported by Message Queue for RabbitMQ in the new version of the Monitoring and Alerting page.

Resource type Metric description Unit Namespace Metric name Dimension Statistic type
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 value
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.

Query monitoring data

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance is located.
  3. On the Instances page, click the name of your instance.
  4. In the left-side navigation pane, click Monitoring and Alerting.
  5. On the Monitoring and Alerting page, set the Group Name parameter to the type of resource whose metrics you want to view, set the Resource type parameter to a specific resource, and then specify a time range.
    For example, you can query the monitoring data of your instance within the last seven days. The following figure shows the sample monitoring data on the Monitoring and Alerting page. result

Create an alert rule

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance is located.
  3. On the Instances page, click the name of your instance.
  4. In the left-side navigation pane, click Monitoring and Alerting.
  5. On the Monitoring and Alerting page, click Alert Rule in the upper-right corner. The Alert Rules page of the CloudMonitor console appears. On the Threshold Value Alert tab, click Create Alert Rule.
  6. On the Create Alert Rule page, set the parameters as required to create an alert rule. For more information, see Alert service.