Review ECS Container Insights settings

Collect the Container Insights metrics needed for your Pulumi ECS cluster.

Description

Setting containerInsights to disabled on a Pulumi ECS cluster turns off the additional CloudWatch metrics. If the setting is absent, check the account default that applied at creation.

Potential impact

Basic ECS metrics alone may give too little detail to locate the service behind a slowdown.

Remediation

In the cluster’s settings, specify name: containerInsights and value: enabled. Review collection permissions and costs. If you need more container-level detail, check whether your provider supports enhanced.

Examples

Before

yaml
name: aws-eks
runtime: yaml
resources:
  foo:
    type: aws:ecs:Cluster
    properties:
      settings:
        - name: containerInsights
          value: disabled

After

yaml
name: aws-eks
runtime: yaml
resources:
  foo:
    type: aws:ecs:Cluster
    properties:
      settings:
        - name: containerInsights
          value: enabled

The foo resource is an ECS cluster in both excerpts. After deployment, check that running tasks produce fresh data on your CloudWatch dashboard and verify its alarms.

References