Configure alert rules

更新时间:
复制 MD 格式

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

Configure alert rules in the console

  1. Log on to the CLB console.

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

  3. On the Instances page, find the instance 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 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.通过API设置报警规则_流程图

  1. Optional: Call the DescribeMetricMetaList operation to query the available time-series metrics for SLB in CloudMonitor. Alternatively, see CLB monitoring 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 create an alert rule for a resource's performance metric.

  5. Call the DescribeMetricRuleList operation to query configured alert rules.