CloudMonitor provides multiple metrics, such as the CPU utilization, memory usage, and network conditions, to help you monitor the status of Container Service for Kubernetes (ACK) clusters. After you create an ACK cluster, CloudMonitor automatically monitors the cluster. You can log on to the CloudMonitor console to view the detailed monitoring data. You can configure alert rules for the metrics. If a metric value exceeds the specified threshold, CloudMonitor sends an alert notification.

Prerequisites

Background information

  • Monitoring data is retained for up to 31 days.
  • You can view the monitoring data for up to 14 consecutive days.

Procedure

  1. Create an alert template for ACK.
    1. Log on to the CloudMonitor console.
    2. In the left-side navigation pane, choose Alerts > Alert Templates.
    3. On the Alert Templates page, click Create Alert Template.
    4. In the Create/Modify Alert Template panel, enter the template name, select Container Service from the Select Alibaba Cloud Service drop-down list, and then configure alert rules for the ACK cluster.
      For more information about how to set parameters for an alert template, see Create an alert template.
    5. Click OK.
  2. Apply the alert template to the application group that is created for the ACK cluster.
    1. In the Alert Template Created/Modified message, click OK.
    2. In the Apply Templates to Groups dialog box, select the application group and set the Mute For, Effective From, Alert Callback, and Priority parameters.
    3. Click Confirm.
    4. In the Apply Templates to Groups message, click Confirm.

What to do next

  • If you need to send alert notifications for different ACK clusters to different alert contact groups, you must modify the alert contact group associated with each application group.

    For more information, see Modify an application group.

  • You can call an API operation to modify alert contact groups for multiple application groups at a time.

    Log on to OpenAPI Explorer and call the PutContactGroup operation to modify the alert contact groups.

    For more information about how to set the parameters of the PutContactGroup operation, see PutContactGroup.