Application Monitoring with Container Insights (CloudWatch)

cloudwatch_container_insights

Step 1: Enable Container Insights in ECS account settings

  1. Open the Amazon Elastic Container Service console.

  2. In the left navigation pane, click Account settings

  3. In the main pane, locate the CloudWatch Container Insights observability card

    • Notice that its current status is Turned off.
  4. In the upper-right corner of the page, click the Update button

    8.1

  5. On the Update account settings page:

    • In the CloudWatch Container Insights observability section, select the radio button Container Insights with enhanced observability (labeled Recommended)
    • Review the other default account settings
    • In the bottom-right corner, click the orange Save changes button

    8.2


Step 2: Access Container Insights from your ECS cluster

Once account-level observability is enabled, you can navigate directly from your cluster dashboard into the CloudWatch monitoring workspace.

  1. In the left navigation menu of the Amazon ECS console, click Clusters

  2. Select your lab cluster: FCAJ-Lab-cluster.

  3. In the cluster management view, click the Metrics tab

  4. In the metrics toolbar, click the View Container Insights button

    8.5

Clicking View Container Insights opens the dedicated CloudWatch Container Insights console scoped directly to your selected Amazon ECS cluster.


Step 3: Observe cluster performance monitoring overview

The Performance monitoring dashboard consolidates operational telemetry for your active workloads in real time.

  1. Verify that your breadcrumb trail displays CloudWatch > Container Insights > Performance monitoring.

  2. In the left sidebar under Performance dashboard views, ensure the Clusters view is selected.

  3. Review the Clusters Performance monitoring - FCAJ-Lab-cluster dashboard summary:

    • Task status: Confirms 2 total running tasks and 0 pending service tasks.
    • CPU utilization: Displays average and maximum CPU utilization percentages across all cluster tasks.
    • Memory utilization: Displays cluster-wide memory usage.

    8.7

Use the time range selector at the top (for example, 1h, 3h, or Custom) to adjust the observation window, and click the refresh button to stream recent telemetry.


Step 4: Analyze detailed cluster utilization metrics

Scroll down through the Performance monitoring page to evaluate the health of infrastructure resources under traffic.

  1. Inspect the primary time-series metric graphs under Performance metrics:

    • CPU utilization: Percent of available CPU units consumed by the cluster tasks.
    • Memory utilization: Percent of allocated memory utilized by running containers.
    • Network RX: Network receive throughput measured in bytes per second.
    • Network TX: Network transmit throughput measured in bytes per second.
    • Storage Read / Storage Write: Disk I/O operations per second.
  2. In the left panel under Filters, confirm that the Cluster filter is locked to FCAJ-Lab-cluster.

    8.8


Step 5: Compare task family performance metrics

To evaluate resource consumption between frontend and backend services, inspect metrics grouped by task family.

  1. In the left sidebar under Performance dashboard views, select the radio button Task families.

  2. The dashboard updates to Task families Performance monitoring - FCAJ-Lab-cluster.

  3. Inspect the comparative time-series graphs:

    • CPU utilization: Shows distinct series comparing FCAJResbar-task-fe (blue line) and FCAJResbar-task-be (orange line).
    • Memory utilization: Shows memory consumption profiles for each task family, revealing differences in memory footprint between the Node.js/Python backend and the NGINX frontend runtime.

    8.9


Step 6: Visualize cluster topology with Container Map

CloudWatch Container Map provides a topological graph visualizing how your cluster organizes and connects services and task definitions.

  1. From the top-left view selector dropdown, choose Container map (or click the View in maps button in the upper-right corner of the performance monitoring screen).

    8.13

  2. The Container map topology interface loads with Map view selected:

    • The central root node represents your ECS cluster: FCAJ-Lab-cluster.
    • Outgoing edges connect to active ECS services: frontend, backend, app-backend, and app-frontend.
    • Associated task definition nodes appear alongside: FCAJResbar-task-fe and FCAJResbar-task-be.

    8.10

Container Map represents hierarchical relationships between resources. A service manages individual tasks according to desired counts, so service-level metrics reflect the aggregated performance of its underlying tasks.


Step 7: Drill down into service-level metrics on Container Map

  1. In the topology visualization map, click on the app-backend service node (highlighted with the green boundary).

  2. A detailed telemetry inspection drawer opens below the map for app-backend:

    • CPU utilization: Granular CPU consumption for the backend container service.
    • Memory utilization: Memory consumption trends.
    • Network: Real-time receive (RX (avg)) and transmit (TX (avg)) rates.
    • Disk utilization: Storage read/write utilization.
  3. Notice the convenience action buttons in the drawer:

    • Click View logs to jump directly to CloudWatch log streams for the backend container.
    • Click View dashboard to open a focused service dashboard.

    8.14


Step 8: Inspect cluster inventory in the Resources list view

  1. Return to the Performance monitoring view.

  2. Under the cluster summary, select the Resources tab (highlighted by the green bounding box).

  3. Review the Resources inventory table listing all 7 monitored entities:

  4. Confirm that Alarm state indicates No alarms detected across all resources, with Max CPU (%) and Max Memory (%) remaining well within healthy operational limits.

    8.17