All Products
Search
Document Center

ApsaraMQ for RocketMQ:Monitoring and alerting

Last Updated:Feb 28, 2024

CloudMonitor provides features such as monitoring data collection, visualization, and real-time monitoring and alerting. You can integrate CloudMonitor into ApsaraMQ for RocketMQ to monitor the running status of services and receive alert notifications. This helps you detect exceptions at the earliest opportunity and improve O&M efficiency.

For more information about CloudMonitor, see Cloud service monitoring.

Monitoring metrics

Note
  • For information about the Ready messages and Ready message queue time metrics, see Terms.

  • The data of each metric is aggregated at an interval of 1 minute.

Billing

You are not charged for the monitoring and alerting feature of ApsaraMQ for RocketMQ.

Prerequisites

The following service-linked role is created:

  • Role name: AliyunServiceRoleForOns

  • Role policy: AliyunServiceRolePolicyForOns

  • Permission description: Allow ApsaraMQ for RocketMQ to assume this role to access CloudMonitor and Application Real-Time Monitoring Service (ARMS) to implement the monitoring and alerting feature and the dashboard feature.

  • For more information, see Service-linked roles

View metrics

  1. Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar, select a region, such as China (Hangzhou). On the Instances page, click the name of the instance that you want to manage.

  3. In the left-side navigation pane, click Monitoring and Alerts. On the Monitoring and Alerts page, click the Monitoring Chart tab.
  4. On the Monitoring Chart tab, select the resource that you want to view and specify a time range to query.
    The charts of all metrics for the resource are automatically displayed on this page.

Create an alert rule

  1. On the Monitoring and Alerts page of the ApsaraMQ forRocketMQ console, click the Alert Rules tab, and then click Create Alert Rule.
    The page is redirected to the Create Alarm Rule panel in the CloudMonitor console.
  2. In the Create Alarm Rule panel, follow the on-screen instructions to configure the rule and the notification settings. Then, click OK. For information about the parameters, see Create an alert rule.

References

You can configure alert rules for key metrics and business metrics of ApsaraMQ for RocketMQ. For more information, see Configure the monitoring and alerting feature for risk warning.