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 Monitoring Center) to use all monitoring functions.
Monitoring Settings
Collection Settings
- Preset Policies: manage monitoring tasks of the Cloud Native Cluster Monitoring add-on in a visualized manner. For details, see Managing Collection Tasks.
- ServiceMonitor Policies: define the custom metric collection policies for Services. For details, see Managing Collection Tasks.
For details about how to create a ServiceMonitor, see Method 4: Configuring ServiceMonitor.
- PodMonitor Policies: define the custom metric collection policies for pods. For details, see Managing Collection Tasks
For details about how to create a PodMonitor, see Method 3: Configuring PodMonitor.
- Targets: statuses of the metric collection targets. For details, see Managing Collection Tasks.
- Default Collection Period: the metric collection period of the Cloud Native Cluster Monitoring add-on. The default value is 15 seconds.
- Custom Metric Collection Policy: After this function is enabled, Cloud Native Cluster Monitoring will collect custom metrics of applications. You need to provide custom metrics of applications based on Prometheus specifications, expose APIs for these metrics, and use the application images to deploy workloads in clusters. Prometheus will collect these metrics through the collection configuration. For details, see Monitoring Custom Metrics Using Cloud Native Cluster Monitoring.
Connection to AOM
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 container metrics can be monitored for free, but other metrics are billed on a pay-per-use basis. For details about free metrics, see Basic Metrics: Container Metrics.
Connection to Third-Party Monitoring Platform
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 Settings
Collection Settings
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 |
Log |
LTS Log Group Name |
Status |
Reference |
|---|---|---|---|---|
|
Container logs |
Container standard output |
stdout-{Cluster ID} |
To enable service log collection, you need to install the Cloud Native Log Collection add-on (Cloud Native Log Collection). |
Collecting Container Logs Using the Cloud Native Log Collection Add-on |
|
Kubernetes events |
Kubernetes events |
event-{Cluster ID} |
To enable service log collection, you need to install the Cloud Native Log Collection add-on (Cloud Native Log Collection). |
|
|
Kubernetes audit logs |
Kubernetes audit logs |
audit-{Cluster ID} |
The option can be enabled separately. |
|
|
Control plane component logs |
kube-apiserver logs |
kube-apiserver-{Cluster ID} |
The option can be enabled separately. |
|
|
kube-controller-manager logs |
kube-controller-manager-{Cluster ID} |
The option can be enabled separately. |
||
|
kube-scheduler logs |
kube-scheduler-{Cluster ID} |
The option can be enabled separately. |
Send stdout Logs to AOM 1.0 (No more evolution): Logging in AOM 1.0 will not be improved, so you are advised to disable this function and use LTS logging instead. Logs sent to AOM will incur storage charges.
Report Kubernetes Events to AOM
- Abnormal events: This option is enabled by default. All abnormal events are reported to AOM. You can click Configure Blocklist to add events that do not need to be reported to the blocklist. You can obtain 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 create custom events to be reported, click Configure Trustlist to add the events to the trustlist. You can obtain event names in CCE Events.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot