【发布时间】:2022-01-12 11:57:54
【问题描述】:
我正在尝试使用 cloudformation 为 sagemaker 端点创建警报。我的端点有两个变体。我的云形成文件如下所示:
MySagemakerAlarmCPUUtilization:
Type: 'AWS::CloudWatch::Alarm'
Properties:
AlarmName: MySagemakerAlarmCPUUtilization
AlarmDescription: Monitor the CPU levels of the endpoint
MetricName: CPUUtilization
ComparisonOperator: GreaterThanThreshold
Dimension:
- Name: EndpointName
Value: my-endpoint
- Name: VariantName
Value: variant1
Namespace: AWS/SageMaker/Endpoints
EvaluationPeriods: 1
Period: 600
Statistic: Average
Threshold: 50
我遇到了dimension 部分的问题。我在这里收到一个无效的属性错误。有谁知道在云形成中查看特定端点变体的正确语法?
【问题讨论】: