View a markdown version of this page

AWS::ECS::Service MetricConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::ECS::Service MetricConfiguration

The configuration for a specific set of metrics to collect for a service.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "MetricNames" : [ String, ... ], "ResolutionSeconds" : Integer }

YAML

MetricNames: - String ResolutionSeconds: Integer

Properties

MetricNames

The list of metric names to configure. The supported metric names are CPUUtilization and MemoryUtilization.

Required: Yes

Type: Array of String

Allowed values: CPUUtilization | MemoryUtilization

Minimum: 1

Maximum: 2

Update requires: No interruption

ResolutionSeconds

The resolution, in seconds, at which to collect the metrics. The valid values are 20 and 60.

Required: Yes

Type: Integer

Allowed values: 20 | 60

Update requires: No interruption