Explore Container Insights

Validate Installation

Once the installation is complete, execute the following commands to ensure everything is setup correctly.

Execute the following command

kubectl get namespaces

You should be able to see a new namespace called amazon-cloudwatch listed amongst others

Now execute the following command

kubectl get daemonsets -n amazon-cloudwatch

You should be able to see two daemonsets called cloudwatch-agent and fluentd-cloudwatch listed. Finally, let’s check if the Pods are in Running status. Execute the following command to find that out.

kubectl get pods -n amazon-cloudwatch

You should see 3 instances of cloudwatch-agent and fluentd-cloudwatch pods running.

Screenshot checking Container Insights installation

Verify that the logs are streaming into CloudWatch

In this section we will be taking a few steps to verify that the logs are getting streamed into CloudWatch. After you setup Container Insights, a few CloudWatch Log Groups are automatically created to group relevant types of logs together so it makes it easier for users to narrow their operations. For example,if you need to troubleshoot Kubelet or Docker runtime events, you can search the logs from Dataplane Log Group.

Login to AWS console and navigate to Amazon CloudWatch Logs Type /aws/containerinsights/eksworkshop-eksctl in the filter texbox and press enter. You should be able to see 4 Log Groups as shown below each one of them containing Application, Dataplane, Host and Performance Log Streams respectively.

Container Insights

Navigate to Amazon CloudWatch home page. Select Container Insights from the drop down on the home page as shown below

Container Insights

Ensure EKS Clusters is selected in the first dropdown and select the eksworkshop-eksctl cluster in the second dropdown. You will be able to see several built-in charts showing various cluster level metrics such as CPU Utilization, Memory Usage, Disk Usage, Network and so on in the default dashboard as shown below

Container Insights

You can also view Performance Logs, Application Logs, Data Plane Logs and Host Logs by simply selecting the cluster name and clicking on Actions dropdown as shown below

Container Insights

You can also drill down into the cluster and see the metrics at the Pod level by simply selecting EKS Pods in the first drop down as shown below

Container Insights

Likewise, you can also see insights at the Node level as well. You just have to select EKS Nodes in the first drop down to see the metrics of all Nodes. You can also select a particular Node from the second drop down to see metrics for that particular Node.

Container Insights