All Products
Search
Document Center

Server Load Balancer:Configure alert rules

Last Updated:Jul 23, 2025

After you activate CloudMonitor, you can configure alert rules for Classic Load Balancer (CLB) instances in the CloudMonitor console or by calling API operations.

Background information

If a CLB instance or a CLB listener is deleted, the alert rules configured for the CLB instance or listener are also deleted.

Prerequisites

  • A CLB instance is created, a listener is added to the CLB instance, and health checks are enabled for the CLB instance. For more information, see the following topics:

  • The service label that is used to configure alert rules for CLB in CloudMonitor is obtained. In this example, the service label is SLB.

  • The namespace of CLB in CloudMonitor is obtained. In this example, the namespace is acs_slb_dashboard. For more information about how to obtain the namespace, see DescribeProjectMeta.

Configure alert rules in the CloudMonitor console

  1. Log on to the CLB console.

  2. In the top navigation bar, select the region where the CLB instance resides.

  3. On the Instances page, find the instance that you want to manage and click the icon in the Monitoring column.

  4. In the Monitoring Information panel, click Alert Rules.

  5. On the Alert Rules page of the CloudMonitor console, click Create Alert Rule.

  6. In the Create Alert Rule panel, configure an alert rule. For more information, see Create an alert rule.

Configure alert rules by calling API operations

The following figure shows the procedure for configuring alert rules by calling API operations.通过API设置报警规则_流程图

  1. Optional: Call the DescribeMetricMetaList operation to query the descriptions of time series metrics that are available in CloudMonitor or view the descriptions of the metrics in Monitoring and alerting metrics.

  2. Call the PutContact operation to create or modify an alert contact.

  3. Call the PutContactGroup operation to create or modify an alert contact group.

  4. Call the PutResourceMetricRule operation to configure a threshold-triggered alert rule for a performance metric of a resource.

  5. Call the DescribeMetricRuleList operation to query alert rules.