CloudMonitor provides features such as monitoring data collection, visualization, and real-time monitoring and alerting. CloudMonitor determines whether the resource utilization exceeds the specified threshold based on the alert rule that you configured. If the specified threshold is exceeded, CloudMonitor sends alert notifications to specified contacts by using emails or DingTalk chatbot. The monitoring and alerting feature allows you to handle errors at the earliest opportunity. This topic describes how to create alert rules for resources of Message Queue for Apache RocketMQ.
For more information about CloudMonitor, see Cloud Service Monitoring.
Step 1: Create a service-linked role
The first time you use the monitoring and alerting feature that is provided by CloudMonitor, Message Queue for Apache RocketMQ automatically creates the AliyunServiceRoleForOns service-linked role to allow you to access cloud resources of CloudMonitor. Message Queue for Apache RocketMQ For more information about the service-linked role, see Service-linked roles.
Step 2: View monitoring reports
You can view the data of the last 1 hour, 3 hours, 6 hours, 12 hours, 1 day, 3 days, 7 days, or 14 days. You can also click the time picker on the right to customize a time range.
If you customize a time range, you can view data of the last 31 days. The system does not retain the data that is generated before this 31-day period. If the end time in the time picker is the same as the current system time, the earliest start time can be 31 days prior to the current system time. If the end time is different from the current system time, you can view data of a 7-day period within the last 31 days.