This topic compares the logging and monitoring features of a Container Service for Swarm cluster and those of a Container Service for Kubernetes (ACK) cluster.
Logging
Container Service for Swarm cluster
A Container Service for Swarm cluster implements the logging feature based on labels.
ACK cluster
- Create an ACK cluster:
On the Create Kubernetes Cluster page, select Enable Log Service. Then, the Log Service plug-in is automatically configured for the cluster. You can use an existing project or create a project.
You can also manually install the Log Service plug-in after an ACK cluster is created. For more information, see Use Log Service to collect container logs.
- Configure Log Service when you create an application in the cluster. For more information, see Use Log Service to collect container logs.
- Use Log Service after you create an application in the cluster. For more information, see Use the console to collect Kubernetes text logs in DaemonSet mode and Use the console to collect Kubernetes stdout and stderr logs in DaemonSet mode.
Monitoring
To enable monitoring for a Container Service for Swarm cluster or an ACK cluster, select Install CloudMonitor Agent on ECS Instance on the Create Kubernetes Cluster page. Then, you can view the monitoring data of the created Elastic Compute Service (ECS) instances in the Cloud Monitor console.
For more information about how ACK clusters integrate the Cloud Monitor service, see Integration and usage with CloudMonitor.