After you create a queue, Cloud Monitor automatically starts to monitor the queue. Cloud Monitor provides multiple metrics, such as the notification times and success rate. This allows you to monitor the status of queues. Cloud Monitor also allows you to configure alarm rules for these metrics. Then, you can receive alarms if a message fails to be pushed.

Monitoring metrics

The following metrics of MNS topics can be monitored in the Cloud Monitor console:

  • Notification Times: the total number of pushed messages within a specified period. You can monitor whether messages are pushed within a specified period and whether business traffic reaches the expected value.
  • Success Rate: the success rate of message push within a specified period. The success rate is calculated by dividing the number of pushed messages by the number of message pushing attempts. You can monitor whether messages have been received by subscriber clients and configure alarms based on this metric.

Scenarios

You can monitor MNS topics and configure alarms in the following scenarios:

  • Business monitoring: If a fixed number of messages are pushed every day, you can view the notification times to monitor your business. If the number of notifications is less than the expected value, your business may be abnormal. You can configure alarm rules to monitor your business.
  • Error alerting: Messages may fail to be pushed if an error occurs on endpoints. For example, an HTTP server stops responding, or a network exception occurs. You can view the success rate of message pushing and configure alarm rules to report endpoint errors. If the success rate is lower than the expected value, Cloud Monitor notifies you by a DingTalk message, email, or mobile phone message.

View monitoring data

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Dashboard > Cloud products.
  3. On the Cloud products page, click Message Service-Topic. On the page that appears, select a region. Find the topic and click Monitoring Charts in the Actions column. On the page that appears, select a resource type and a time range.View monitoring data

Configure alarm rules

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Cloud products > Message Service-Queue.
  3. On the page that appears, perform the following operations:
    1. Select a region.
    2. Click the Topics tab.
    3. In the Topic Name column, find the topic. In the Actions column, click Alarm Rules.
    Alarm rules
  4. On the Threshold Value Alarm tab, click Create Alarm Rule.
  5. On the Create Alarm Rule page, specify the related resources, alarm rules, and notification methods. Click Confirm.
    Create an alarm rule