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
If you delete a Classic Load Balancer (CLB) instance or one of its listeners, CloudMonitor automatically deletes any associated alert rules.
Prerequisites
Ensure that you have created a CLB instance, added a listener, and enabled health checks. For more information, see:
The product tag for CLB in CloudMonitor is SLB.
The namespace for CLB in CloudMonitor is
acs_slb_dashboard. You can call the DescribeProjectMeta operation to get the namespace.
Configure alert rules in the console
Log on to the CLB console.
In the top navigation bar, select the region where the CLB instance is deployed.
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. For more information, see Create an alert rule.
Configure alert rules by using API
The following figure shows the API workflow for configuring alert rules.
Optional: Call the DescribeMetricMetaList operation to query the available time-series metrics for SLB in CloudMonitor. Alternatively, see CLB monitoring metrics.
Call the PutContact operation to create or modify an alert contact.
Call the PutContactGroup operation to create or modify an alert contact group.
Call the PutResourceMetricRule operation to create an alert rule for a resource's performance metric.
Call the DescribeMetricRuleList operation to query configured alert rules.