After you create a queue, Cloud Monitor starts to monitor the queue. Cloud Monitor provides multiple metrics, such as the number of active messages, delayed messages, and invisible messages. These metrics indicate the status of queues. Cloud Monitor also allows you to configure alert rules for these metrics so that you can receive alerts if exceptions occur.

Metrics

Cloud Monitor provides the following metrics that are used to monitor queues:

  • Set the Namespace parameter to acs_mns_new.
  • Set the Period parameter to an integral multiple of 60s. The default value is 60s.
Metric Unit Metric Dimensions Statistics
Active Messages Count ActiveMessages userId, region, and queue Maximum, Minimum, and Average
Number of message batch deleting requests Count BatchDeleteMessageCount userId, region, and queue Maximum, Minimum, and Average
Number of message batch receiving requests Count BatchReceiveMessageCount userId, region, and queue Maximum, Minimum, and Average
Number of message batch sending requests Count BatchSendMessageCount userId, region, and queue Maximum, Minimum, and Average
Number of active period modifying requests Count ChangeMessageVisibilityCount userId, region, and queue Maximum, Minimum, and Average
Delayed Message Count DelayMessages userId, region, and queue Maximum, Minimum, and Average
Number of message deleting requests Count DeleteMessageCount userId, region, and queue Maximum, Minimum, and Average
Inactive Messages Count InactiveMessages userId, region, and queue Maximum, Minimum, and Average
Number of message receiving requests Count ReceiveMessageCount userId, region, and queue Maximum, Minimum, and Average
Number of message sending requests Count SendMessageCount userId, region, and queue Maximum, Minimum, and Average
Notification Times Count TopicCount userId, regionName, TopicName, and SubscriptionName Value
Success Rate % TopicSuccessRate userId, regionName, TopicName, and SubscriptionName Average

View monitoring data

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Dashboard > Cloud product charts.
  3. On the Cloud product charts page, select Message Service-queue from the drop-down list. On the page that appears, select a region. Find the queue and click Monitoring Charts in the Actions column. On the page that appears, select a resource type and a time range.查看监控数据

Configure alert rules

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, click Cloud products.
  3. On the Cloud products page, click Message Service-queue.
  4. On the Message Service-queue page, perform the following steps:
    1. Select a region.
    2. Click the Instances tab.
    3. In the Queue Name column, find the queue. In the Actions column, click Alert Rules.
  5. On the Threshold Value Alert tab of the Alert Rules page, click Create Alert Rule.
  6. In the Related Resource section on the Create Alert Rule page, select Message Service-queue from the Product drop-down list, and select a resource range. Set alert rules in the Set Alert Rules section. Set a notification method in the Notification Method section. Click Confirm.
    Configure alert rules