hands-on lab

Monitoring Amazon ECS Resources With Amazon CloudWatch

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 62
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Amazon CloudWatch collects and processes Amazon ECS data into readable, near real-time metrics that allow developers to gain a better perspective on how clusters and services are performing. Amazon ECS services launched using the Fargate launch type automatically provide CPU and memory utilization metrics, but additional metrics can be enabled at the cluster and service levels.

Amazon CloudWatch Container Insights collect, aggregate, and summarize various metrics from containerized applications. When enabled, CloudWatch container insights provide higher-level aggregated metrics at the cluster, service, and task levels. As a feature of CloudWatch, metrics provided by container insights can also be utilized to create alarms and trigger downstream workflows in an event-driven solution.

In this lab, you will explore the metrics provided by CloudWatch container insights. You will walk through the container insights dashboard to visualize ECS metrics, and also leverage the metrics to create a CloudWatch alarm.

Learning objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Enable CloudWatch container insights for an ECS cluster
  • Explore CloudWatch container insight dashboards
  • Create a CloudWatch alarm using ECS service metrics

Intended audiences

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Amazon Elastic Container Service
  • Amazon CloudWatch

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

Covered topics

Lab steps

Reviewing the Amazon ECS application
Enabling CloudWatch Container Insights on an ECS cluster
Logging In to the Amazon Web Services Console
Exploring Amazon CloudWatch container insights
Responding to Amazon ECS metrics using Amazon CloudWatch alarms