Updating Amazon ECS Managed Instances monitoring - Amazon Elastic Container Service

Updating Amazon ECS Managed Instances monitoring

You can modify the monitoring option for your Amazon ECS Managed Instances capacity provider to change between basic and detailed monitoring. This allows you to adjust the level of monitoring data collected without recreating the capacity provider.

For more information about monitoring options, see Monitoring Amazon ECS Managed Instances.

Console procedure

To update monitoring for Amazon ECS Managed Instances (Amazon ECS console)
  1. Open the console at https://console.aws.amazon.com/ecs/v2.

  2. From the navigation bar, select the Region to use.

  3. In the navigation pane, choose Clusters.

  4. On the Clusters page, choose your cluster name.

  5. On the cluster page, choose the Infrastructure tab.

  6. Under Advanced configuration, choose one of the following monitoring options:

    • To have CloudWatch send status-check metrics, choose Basic.

    • To have CloudWatch send all metrics metrics, choose Detailed.

  7. Choose Update.

To update tags associated with an existing Amazon ECS Managed Instances capacity provider, follow these steps:

  1. In the navigation pane, choose Clusters.

  2. On the clusters page, choose Infrastructure.

  3. On the infrastructure page, choose the capacity provider that you created.

  4. On the capacity provider page, choose Tags.

  5. Under Tags, choose Manage tags.

  6. To add a tag, specify the key and value of the tag that you want to add and then choose Save. To add multiple tags at once, choose Add tag for each tag that you want to add. You can add a maximum of 50 tags.

    To remove a tag, choose Remove.

    Note

    If tag propagation is enabled, tags added or removed after capacity provider creation don't apply to resources previously created by the capacity provider.

AWS CLI procedure

You can update a capacity provider for Amazon ECS Managed Instances using the AWS CLI. Use the latest version of the AWS CLI. For more information on how to upgrade to the latest version, see Installing or updating to the latest version of the AWS CLI.

To update monitoring for Amazon ECS Managed Instances (AWS CLI)
  1. To enable detailed monitoring, use the following command:

    aws ecs update-capacity-provider \ --name my-managed-instances-provider \ --managed-instances-provider '{ "instanceLaunchTemplateUpdate": { "monitoring": "DETAILED" } }'
  2. To enable basic monitoring, use the following command:

    aws ecs update-capacity-provider \ --name my-managed-instances-provider \ --managed-instances-provider '{ "instanceLaunchTemplateUpdate": { "monitoring": "BASIC" } }'