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
- An ACK cluster is created. For more information, see Create a managed Kubernetes cluster.
- An application group is created for the ACK cluster. For more information, see Create an application group.
- An alert contact or alert contact group is created for the ACK cluster. For more information, see Create an alert contact or alert contact group.
Background information
- Monitoring data is retained for up to 31 days.
- You can view the monitoring data for up to 14 consecutive days.
Procedure
- Create an alert template for ACK.
- Apply the alert template to the application group that is created for the ACK cluster.
- In the Alert Template Created/Modified message, click OK.
- In the Apply Templates to Groups dialog box, select the application group and set the Mute For, Effective From, Alert Callback, and Priority parameters.
- Click Confirm.
- 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.