To monitor Classic Load Balancer (CLB) instances and get notified when performance metrics cross a threshold, configure alert rules in CloudMonitor. You can set up alert rules through the CloudMonitor console or by calling CloudMonitor API operations.
If you delete a CLB instance or a listener, CloudMonitor also deletes all alert rules configured for that instance or listener.
Prerequisites
Before you begin, ensure that you have:
Activated CloudMonitor
A CLB instance with at least one listener added and health checks enabled:
The CloudMonitor service label for CLB:
SLBThe CloudMonitor namespace for CLB:
acs_slb_dashboard. To get the namespace, call DescribeProjectMeta
Configure alert rules in the CloudMonitor console
This path starts from the CLB console and automatically scopes the alert rule to the selected instance.
Log on to the CLB console.
Log on to the CLB console.
In the top navigation bar, select the region where the CLB instance resides.
On the Instances page, find the instance and click the
icon in the Monitoring column.In the Monitoring Information panel, click Alert Rules.
On the Alert Rules page of the CloudMonitor console, click Create Alert Rule.
In the Create Alert Rule panel, configure the alert rule parameters. For details, see Create an alert rule.
Configure alert rules by calling API operations
The following figure shows the API workflow for configuring alert rules.

(Optional) Call
DescribeMetricMetaListto query the descriptions of time series metrics available in CloudMonitor. Alternatively, see Monitoring and alerting metrics.Call
PutContactto create or modify an alert contact.Call
PutContactGroupto create or modify an alert contact group.Call
PutResourceMetricRuleto configure a threshold-triggered alert rule for a CLB performance metric.Call
DescribeMetricRuleListto query alert rules.