# MetricConfigurationProperty

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

- Source: Generated code
- Type last changed: v2.261.0 · 2 Jul 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const metricConfigurationProperty: ecs.CfnService.MetricConfigurationProperty = {
  metricNames: ['metricNames'],
  resolutionSeconds: 123,
};
```

## Properties

- `metricNames`: string[] (required) — The list of metric names to configure.

  The supported metric names are ``CPUUtilization`` and ``MemoryUtilization``.

- `resolutionSeconds`: number (required) — The resolution, in seconds, at which to collect the metrics.

  The valid values are ``20`` and ``60``.
