2 個答案
- 最新
- 最多得票
- 最多評論
1
I was able to link an alarm to a canary with the "Dimensions CanaryName" property within the alarm (example below). Although in the UI console it does not show linkage in configuration section, the canary does detect if the alarm is triggered and displays the specific alarm in the Alarms column.
Note: The CanaryName value must match the value of the Name property from the Canary
TestAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmDescription: "Synthetics alarm metric: Failed GreaterThanOrEqualToThreshold 1"
MetricName: Failed
Namespace: CloudWatchSynthetics
Dimensions:
- Name: CanaryName
Value: mycanary
Period: 900
EvaluationPeriods: 1
Statistic: Average
ComparisonOperator: GreaterThanOrEqualToThreshold
Threshold: 1.0
TreatMissingData: notBreaching
ActionsEnabled: true
已回答 4 年前
0
Synthetics canaries don't have alarms, but the console allows you to automatically create CloudWatch alarms which monitor them. You can add CloudWatch alarms to your CloudFormation stack which monitor the success metrics emitted by your canary.
已回答 4 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前