This topic describes how to integrate Container Service for Kubernetes (ACK), Distributed Cloud Container Platform for KubernetesACK One, and ACK serverless clusters.
Prerequisites
Enable Observability Prometheus Service.
If you use a RAM user, grant the
AliyunCloudMonitorFullAccesssystem policy.
Pricing
Integrating metrics incurs fees for Hybrid Cloud Monitoring real-time export and Observability Prometheus Service.
Log integration is subject to Simple Log Service billing.
Data Integration
Log on to the Cloud Monitor 2.0 console. After you select a workspace, click Integration Center in the navigation pane on the left. Then, click Container Service for Kubernetes to start the integration.
Select a target from the Observation target drop-down list.
Configure integration settings. Then click Confirm:
Configuration item
Description
Storage destination
Default: Use existing configurations for clusters that already have them. For clusters without configurations, automatically create a project named k8s-log-{ClusterID}.
Custom: Specify a custom project for storage.
Container cluster monitoring metrics (integrated)
Integrating container cluster monitoring installs the ClusterRole required for Metrics and Entity data ingestion into your cluster. Clicking Confirm grants Cloud Monitor permission to perform this operation.
Supports Container Monitoring Basic Plan and Container Monitoring Pro Plan:
Basic Plan: Stores basic container cluster metrics for 7 days. Provides an unmanaged collection agent (default single-replica edition uses 3 CPU cores and 4 GB of cluster resources). Includes free basic monitoring metrics. You pay extra for custom metrics.
Pro Plan: Stores basic container cluster metrics for 90 days. Provides a managed collection agent and built-in Grafana dashboards.
For more information, see Differences between Basic and Pro Plans.
Pod custom metric collection interval (seconds). Default is 30.
Container cluster events (integrated)
Container cluster control plane component logs (integrated)
Collects logs from ACK managed control plane components and writes them to a project in Simple Log Service under your account.
Container cluster Nginx Ingress access logs (integrated)
Collects logs from the Nginx Ingress component in your ACK cluster.
After the integration is complete, you can view the integrated entities and related observable data in Entity Explorer.
Storage Policy
After integrating Container Service for Kubernetes, Cloud Monitor creates corresponding SLS stores and Prometheus instances to store observable data.
Data type | Default storage location | Notes |
Metrics | Prometheus instance: RegionShare:{{workspaceName}}:{{regionId}} | None |
Logs | SLS project: SLS Logstore: | None |
Uninstall or Modify Integration Settings
To cancel or modify Container Service for Kubernetes integration, go to the Integration Center and open the Provisioning page. Find the integration policy and click Edit or Delete.