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
- Log on to the Cloud Monitor console.
- In the left-side navigation pane, choose .
- 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.