In this section, we’ll need to configure some settings before using Container Insights. Container Insights is a service that allows us to monitor metrics such as CPU usage, Network activity, and more, giving insight into user activity over a certain period.
Combined with CloudWatch, we can view logs sent from Containers in groups, usually with the prefix /ecs/*. This gives a more comprehensive view of applications in the system—how they’re running, any alerts, and the ability to read logs for troubleshooting errors or investigating unusual traffic when the system is compromised.
To switch to observing Task definitions, follow these steps:
Similarly, to view events for ECS Service:
Here, you can view which Containers, Tasks, and Services are running within the Cluster you’ve deployed, with greater specificity.
You’ll see a new interface showing how a Cluster manages related resources like Services and Tasks. Note that metrics within a Task differ from those within a Service, as Services directly manage Tasks, meaning Task metrics are also applicable to Services.
Here, you can also view details for each service.
Similarly, you can view Task definitions:
Here, you’ll see a list of created events, allowing you to select and monitor each service.
We have completed configuration and monitoring with Container Insights, but AWS provides other monitoring and tracking services beyond Container Insights, including third-party services.
Congratulations on completing this Workshop!