All Products
Search
Document Center

CloudMonitor:Manage alert rules

Last Updated:Apr 11, 2024

You can create alert rules for Container Service for Kubernetes (ACK) clusters, nodes, and pods. When an alert is triggered based on alert rules, CloudMonitor sends an alert notification. This way, you are immediately notified of exceptions and can handle the exceptions at the earliest opportunity. This topic describes how to create, view, modify, delete, enable, and disable alert rules.

Prerequisites

Create an alert rule

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster for which you want to create an alert rule and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, click Create Alert Rule.

  5. In the Create Alert Rule panel, configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Resource Range

    The resources to which the alert rule is applied. Valid values:

    • Cluster: The alert rule is applied to the cluster. If you select this option, you must select a cluster name.

    • Node: The alert rule is applied to all nodes or specified nodes in the cluster. If you select this option, you must select a cluster and one or more nodes.

    • Container Group (pod): The alert rule is applied to all pods or specified pods in the specified application under the specified namespace of the cluster. If you select this option, you must select a cluster and its namespace, and then select an application and one or more pods on the Stateless, Stateful, Daemon set, Task, or Scheduled Tasks tab.

      Note

      On the Container Group tab, you only need to select one or more pods.

    Rule Description

    The condition that triggers the alert rule. If the metric meets the specified condition, the alert rule is triggered.

    Mute For

    The interval at which CloudMonitor resends alert notifications before an alert is cleared. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.

    If a metric value reaches the threshold, CloudMonitor sends an alert notification. If the metric value reaches the threshold again within the mute period, CloudMonitor does not resend an alert notification. If the alert is not cleared after the mute period ends, CloudMonitor resends an alert notification.

    Effective Period

    The period during which the alert rule is effective. CloudMonitor monitors the specified resources based on the alert rule only within the specified period.

    Alert Callback

    The callback URL that can be accessed over the Internet. CloudMonitor sends HTTP POST requests to push alert notifications to the specified URL. Only the HTTP protocol is supported. For more information about how to configure alert callback, see Use the alert callback feature to send notifications about threshold-triggered alerts.

    Alert Contact Group

    The alert contact groups to which alert notifications are sent.

    The alert notifications are sent to the alert contacts that belong to the selected alert contact groups. An alert contact group can contain one or more alert contacts.

    For more information about how to create an alert contact and an alert contact group, see Create an alert contact or alert contact group.

  6. Click OK.

View an alert rule

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster whose alert rule you want to view and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, find the alert rule that you want to view and click More or Alert Logs in the Actions column.

    You can view the details of the alert rule, alert logs, and faulty resources.

Modify an alert rule

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster for which you want to modify an alert rule and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, find the alert rule that you want to modify and click Modify in the Actions column.

  5. In the Modify Alert Rule panel, modify the parameters as required.

  6. Click OK.

Delete an alert rule

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster for which you want to delete an alert rule and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, find the alert rule that you want to delete, click the image icon in the Actions column, and then click Delete.

  5. In the Delete Alert message, click OK.

Disable an alert rule

Note

After you create an alert rule, the alert rule is in the Normal state.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster for which you want to disable an alert rule and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, find the alert rule that you want to disable, click the image icon in the Actions column, and then click Disable.

  5. In the Disable Alert Rule message, click OK.

Enable an alert rule

You can enable an alert rule only if the alert rule is in the Disabled state.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Container Service ACK.

  3. On the Container Service Monitoring page, find the cluster for which you want to enable an alert rule and click View Alert Rules in the Actions column.

  4. On the Alert Rules page, find the alert rule that you want to enable, click the image icon in the Actions column, and then click Enable.

  5. In the Enable Alert Rule message, click OK.