interface MetricsConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnEndpointConfig.MetricsConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnEndpointConfig_MetricsConfigProperty |
Java | software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.MetricsConfigProperty |
Python | aws_cdk.aws_sagemaker.CfnEndpointConfig.MetricsConfigProperty |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnEndpointConfig » MetricsConfigProperty |
Specifies the metrics that the endpoint publishes to Amazon CloudWatch, the frequency of publication, and whether to enable enhanced or detailed observability metrics.
Example
// 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
| Name | Type | Description |
|---|---|---|
| enable | boolean | IResolvable | Specifies whether to enable detailed observability for the endpoint. |
| enable | boolean | IResolvable | Specifies whether to enable enhanced metrics for the endpoint. |
| metric | number | The interval, in seconds, at which the endpoint publishes metrics to Amazon CloudWatch. |
enableDetailedObservability?
Type:
boolean | IResolvable
(optional)
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?
Type:
boolean | IResolvable
(optional)
Specifies whether to enable enhanced metrics for the endpoint.
Enhanced metrics provide utilization and invocation data at instance and container granularity.
metricPublishFrequencyInSeconds?
Type:
number
(optional)
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.

.NET
Go
Java
Python
TypeScript