Explore Container Insights

The PetAdoptions front-end web application is hosted on an EKS cluster and has CloudWatch Container Insights enabled. (Take a look at the documentation here to learn more about CloudWatch Container Insights using Fluentbit.)

Read this detailed blog post to learn about setting up CloudWatch Container Insights on EKS using Fluentbit.


Below is the architecture diagram that shows the components that are involved in collecting logs and metrics from your EKS environment.


Check Container Insights on the cluster

We will start by verifying that the necessary agents have been installed properly.

  • Execute the following commands in the Cloud9 terminal provisioned as part of the workshop:

Setup Cloud9 in case you did not do that already

This command checks to make sure that the CloudWatch and FluentD agents have been installed properly.

kubectl get pods -n amazon-cloudwatch

Your output should be similar to the one below.

NAME                                  READY   STATUS    RESTARTS   AGE
cloudwatch-agent-fnh25                1/1     Running   0          172m
cloudwatch-agent-tfgk7                1/1     Running   0          172m
cwagent-prometheus-5bbf77558b-sqkfm   1/1     Running   0          172m
fluent-bit-7p67r                      1/1     Running   0          172m
fluent-bit-cqphf                      1/1     Running   0          172m

Fluentbit dashboard

A Dashboard for Fluentbit metrics is created as part of the deployment and can be accessed here.

If you want to learn more about Cloudwatch Dashboards, be sure to check out this section.