After you create a Message Service (MNS) topic, Cloud Monitor automatically starts to monitor the topic. Cloud Monitor allows you to monitor an MNS topic by using two metrics: notification times and success rate. Cloud Monitor also allows you to configure alert rules for these metrics. Then, you can receive alerts if a message fails to be pushed.

Metrics

The following table lists the metrics that are used by Cloud Monitor.

Metric Unit Metric Dimensions Statistics
Notification times Count TopicCount userId, regionName, TopicName, and SubscriptionName Value
Success rate % TopicSuccessRate userId, regionName, TopicName, and SubscriptionName Average

Scenarios

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

  • Business monitoring: If a fixed number of messages are pushed every day, you can monitor the notification times of your business. If the number of notifications is less than the expected value, your business may encounter exceptions. You can configure alert 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 alert rules to report endpoint errors. If the success rate is lower than the expected value, Cloud Monitor sends you a DingTalk message, email, or text message.

View the 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, 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

Set 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-topic.
  4. On the Message Service-topic page, 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 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-topic from the Product drop-down list, and select a resource from the Resource Range drop-down list. Set alert rules in the Set Alert Rules section. Set a notification method in the Notification Method section. Then, click Confirm.
    Set alert rules