Exploring CloudWatch metrics and Logs

In this section, we shall explore the CloudWatch metrics and logs generated by the ECS service and find log events for the CloudWatch alarm threshold being exceeded:

  • Open the CloudWatch console as shown here. The alarm summary for the AutoScaleCPUUtilization gets displayed in a graph.
  • Click on Browse Metrics to browse metrics:
  • Select Alarms in the margin. The AutoScaleBasedOnCPUUtilization alarm used as a threshold for auto scaling gets listed, as shown in the following screenshot. The alarm state is ALARM when the alarm threshold is exceeded.

The AutoScaleBasedOnCPUUtilization alarm details and graph ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.