After you create a Message Queue for RabbitMQ instance, CloudMonitor automatically starts to monitor the instance. You can view metrics of resources to learn the usage of the Message Queue for RabbitMQ instance. For example, you can view the number of inbound messages, the number of outbound messages, and the number of consumers of an instance, a vhost, a queue, or an exchange. CloudMonitor also allows you to create alert rules for these metrics so that you can receive alerts if exceptions occur. This topic describes the metrics and how to view monitoring data and configure alert rules in the new version of the Monitoring and Alerting page.

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 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 obtain 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 Instance, Group Name, and Resource Type, and specify a time range.
    The monitoring data of the instance within seven days is displayed 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. Then, click Create Alert Rule.
  6. In the Related Resource section of the Create Alert Rule page, select MQ for AMQP Instance from the Product drop-down list and specify Resource Range. In the Set Alert Rules section, configure an alert rule. In the Notification Method section, configure a notification method. Then, click Confirm.
    The following figure shows how to configure an alert rule that an alert is triggered if the number of inbound messages per second is greater than 1,000 for an instance. pg_alarm
    On the Monitoring and Alerting page, the created alert rule appears. alarm_result