기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
BYOC(Bring Your Own Container)에 대한 CloudWatch 지표
publish_cloudwatch_metrics 값이 /opt/ml/processing/processingjobconfig.json파일의 Environment맵에 있는 Enabled인 경우, 컨테이너 코드는 /opt/ml/output/metrics/cloudwatch위치에 Amazon CloudWatch 지표를 내보냅니다.
이 파일의 스키마는 PutMetricsAPI에 밀접한 기반을 두고 있습니다. 네임스페이스는 여기에서 지정되지 않았습니다. 기본값은 다음과 같습니다.
-
For real-time endpoints: /aws/sagemaker/Endpoint/data-metrics -
For batch transform jobs: /aws/sagemaker/ModelMonitoring/data-metrics
그러나 차원을 지정할 수 있습니다. 최소한 다음 차원을 추가하는 것이 좋습니다.
-
실시간 엔드포인트인 경우
Endpoint및MonitoringSchedule -
배치 변환 작업인 경우
MonitoringSchedule
다음 JSON 코드 조각은 차원을 설정하는 방법을 보여줍니다.
실시간 엔드포인트인 경우, Endpoint및 MonitoringSchedule차원이 포함된 다음 JSON 코드 조각을 참조하세요.
{ "MetricName": "", # Required "Timestamp": "2019-11-26T03:00:00Z", # Required "Dimensions" : [{"Name":"Endpoint","Value":"endpoint_0"},{"Name":"MonitoringSchedule","Value":"schedule_0"}] "Value": Float, # Either the Value or the StatisticValues field can be populated and not both. "StatisticValues": { "SampleCount": Float, "Sum": Float, "Minimum": Float, "Maximum": Float }, "Unit": "Count", # Optional }
배치 변환 작업인 경우, MonitoringSchedule차원이 포함된 다음 JSON 코드 조각을 참조하세요.
{ "MetricName": "", # Required "Timestamp": "2019-11-26T03:00:00Z", # Required "Dimensions" : [{"Name":"MonitoringSchedule","Value":"schedule_0"}] "Value": Float, # Either the Value or the StatisticValues field can be populated and not both. "StatisticValues": { "SampleCount": Float, "Sum": Float, "Minimum": Float, "Maximum": Float }, "Unit": "Count", # Optional }