Log Service and Container Service for Kubernetes (ACK) jointly launches the log collection feature for control plane components. You can use the feature to deliver the logs of control plane components in a professional ACK Serverless (ASK) cluster to Log Service for query and analysis. This topic describes the assets and billing of the log collection feature.
Assets
Dedicated project and dedicated Logstores
ImportantBefore you disable log collection, do not delete the related Log Service project and Logstore. Otherwise, logs cannot be delivered to Log Service.
If you have enabled the pay-by-ingested-data billing mode, Log Service creates a dedicated Logstore that uses the pay-by-ingested-data billing mode by default. If you want to switch the billing mode from pay-by-ingested-data to pay-by-feature, modify the configurations of the Logstore. For more information, see Manage a Logstore.
If you select an existing project when you enable log collection for the control plane components in a professional ACK Serverless cluster, Log Service creates multiple dedicated Logstores in the project, as shown in the following table.
If you select Create Project when you enable log collection for the control plane components in a professional ACK Serverless cluster, Log Service creates a project named
k8s-log-<Cluster ID>
in the region where the cluster resides and multiple dedicated Logstores in the project, as shown in the following table.Logstore
Component
Description
apiserver-<Cluster ID>
kube-apiserver
Stores the logs of the kube-apiserver component.
kube-apiserver is used to expose the Kubernetes API. For more information, see kube-apiserver.
ccm-<Cluster ID>
Cloud Controller Manager
Stores the logs of the Cloud Controller Manager (CCM) component.
The CCM component allows you to integrate Kubernetes with Alibaba Cloud services, such as Classic Load Balancer (CLB) and Virtual Private Cloud (VPC). CLB is formerly known as Server Load Balancer (SLB). CCM manages the service features, such as load balancing and cross-node communication. For more information, see Cloud Controller Manager.
kcm-<Cluster ID>
kube-controller-manager
Stores the logs of the kube-controller-manager component.
kube-controller-manager is the control center of a Kubernetes cluster and runs controller processes. For more information, see kube-controller-manager.
Dedicated dashboards
After you enable the feature, Log Service does not generate dedicated dashboards. You can create a custom dashboard to visualize query results. For more information, see Create a dashboard.
Billing
You are not charged for the log collection feature for control plane components in professional ACK Serverless clusters.
If the billing mode of the related Logstore is pay-by-feature, you are charged based on the storage usage, read traffic, number of requests, data transformation, and data shipping after the logs of control plane components in a professional ACK Serverless cluster are delivered to Log Service. For more information, see Billable items of pay-by-feature.
If the billing mode of the related Logstore is pay-by-feature, you are charged only for the read traffic over the Internet after the logs of control plane components in a professional ACK Serverless cluster are delivered to Log Service. For more information, see Billable items of pay-by-ingested-data.
Enable log collection for control plane components in a professional ACK Serverless cluster
Enable log collection when you create a cluster
Log on to the ACK console.
On the Clusters page, click Create Kubernetes Cluster.
In the Component Configurations step of the Create Cluster page, select Enable Log Service and select a project. For information about other configurations, see Create an ACK Serverless cluster.
Enable log collection for an existing cluster
Log on to the ACK console.
On the Clusters page, click the cluster that you want to manage.
In the left-side navigation pane, choose
.On the Logs of Control Plane Components tab, select a project and click Enable Component Log Collection.
You can select an existing project or create a project.
Related operations
Operation | Description |
View logs | You can view logs in the ACK console or Log Service console. For more information, see View the logs of control plane components. |
Disable log collection | On the Log of Control Plane Components tab, click Close. Important If you disable the log collection feature, the project and pushed logs are not automatically deleted. To prevent additional fees, you can delete the corresponding project that is used to store logs in the Log Service console after you disable the log collection feature. For more information, see Delete a project. |
What to do next
After the logs of control plane components in a professional ACK Serverless cluster are delivered to Log Service, you can query, analyze, download, ship, and transform the logs in the Log Service console. You can also create alert rules for the logs. For more information, see Common operations on logs of Alibaba Cloud services.