# MetricsConfigProperty

Specifies the metrics that the endpoint publishes to Amazon CloudWatch, the frequency of publication, and whether to enable enhanced or detailed observability metrics.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const metricsConfigProperty: sagemaker.CfnEndpointConfig.MetricsConfigProperty = {
  enableDetailedObservability: false,
  enableEnhancedMetrics: false,
  metricPublishFrequencyInSeconds: 123,
};
```

## Properties

- `enableDetailedObservability`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to enable detailed observability for the endpoint.

  When set to true, the endpoint publishes container-level inference metrics, per-GPU metrics, per-instance host metrics, and inference component placement metrics.

- `enableEnhancedMetrics`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to enable enhanced metrics for the endpoint.

  Enhanced metrics provide utilization and invocation data at instance and container granularity.

- `metricPublishFrequencyInSeconds`: number — The interval, in seconds, at which the endpoint publishes metrics to Amazon CloudWatch.

  Valid values are 10, 30, 60, 120, 180, 240, and 300. The default is 60.
