Updated on 2024-09-30 GMT+08:00

Monitoring

CCE monitors applications and resources and collects metrics and events to analyze application health status. You can choose Settings from the navigation pane, click the Monitoring tab, and change monitoring parameters on the console.

You will need to enable cluster monitoring (Enabling Cluster Monitoring) to use all monitoring functions.

Monitoring Configuration

Collection configuration

Connect to AOM monitoring service

AOM uses Prometheus for container monitoring. To enable monitoring, you need to select an AOM instance first. With this function enabled, metrics will be reported to the selected AOM instance. Basic metrics are free, and other metrics will be billed on the pay-per-use basis. For details about free metrics, see Basic Metrics: Container Metrics.

Connect with third-party monitoring platforms

After this function is enabled, Prometheus data can be reported to a third-party monitoring platform. You need to obtain the data reporting address and identity authentication credential of the third-party platform beforehand. For details, see Reporting Prometheus Monitoring Data to a Third-Party Monitoring Platform.

Log Configuration

Collection configuration

CCE collects, obtains, and analyzes Kubernetes container logs, including standard container output logs, container log files, node logs, and Kubernetes events.

When logs are reported to LTS, a default log group named k8s-logs-{Cluster ID} will be created and will generate costs. For details about LTS pricing, see Price Calculator.

Log Type

View Log

LTS Log Group Name

Status

Reference

Container log

Container standard output

stdout-{Cluster ID}

To enable service log collection, you need to install the Cloud Native Logging add-on (Cloud Native Logging).

Collecting Container Logs Using Cloud Native Logging

Kubernetes event

Kubernetes event

event-{Cluster ID}

To enable service log collection, you need to install the Cloud Native Logging add-on (Cloud Native Logging).

Collecting Kubernetes Events

Kubernetes audit log

Kubernetes audit log

audit-{Cluster ID}

The option can be enabled separately.

Collecting Kubernetes Audit Logs

Control plane component log

kube-apiserver log

kube-apiserver-{Cluster ID}

The option can be enabled separately.

Collecting Control Plane Component Logs

kube-controller-manager log

kube-controller-manager-{Cluster ID}

The option can be enabled separately.

kube-scheduler log

kube-scheduler-{Cluster ID}

The option can be enabled separately.

Kubernetes Events Reported to AOM

Once the Cluster Native Logging add-on (Cloud Native Logging) is installed in a cluster, Kubernetes events are reported to LTS by default, while this feature can be used to report Kubernetes events to AOM.
  • Abnormal events: This option is enabled by default. All abnormal events are reported to AOM. You can click Configure Blacklist to add events that do not need to be reported to the blacklist. You can query event names in CCE Events.
  • Normal events: If this option is enabled, normal events will be reported to AOM. The system is pre-configured to report some normal events. If you need to customize the events to be reported, click Configure Whitelist to add the events to the whitelist. You can query event names in CCE Events.