이것을 사용하여 tutorial 람다 함수를 만들었습니다. 클라우드 감시 알람에 실패하면 SNS가 람다 오류 측정 항목을 사용하여 이메일을 발송합니다. 나는 어떤 ec2 인스턴스가 상향 조정되어 있는지 확인하기 위해 이것을 사용하고있다. scheduled events. (I 실패로 정의 등의 EC2 인스턴스를 목록으로)Cloudwatch SNS 이메일을 변경하는 방법은 무엇입니까?
Alarm Details:
- Name: ec2-scheduled-events-alarm
- Description: an ec2 instance has an upcomming scheduled event
- State Change: OK -> ALARM
- Reason for State Change: Threshold Crossed: 1 datapoint (1.0) was greater than or equal to the threshold (1.0).
- Timestamp: Wednesday 12 September, 2016 00:16:54 UTC
- AWS Account: ..........
Threshold:
- The alarm is in the ALARM state when the metric is GreaterThanOrEqualToThreshold 1.0 for 300 seconds.
Monitored Metric:
- MetricNamespace: AWS/Lambda
- MetricName: Errors
- Dimensions:
- Period: 300 seconds
- Statistic: Sum
- Unit: not specified
State Change Actions:
- OK:
- ALARM: [arn:aws:sns:us-west-2:..........:ec2-scheduled-events]
- INSUFFICIENT_DATA:
나는 또한 내 람다 스크립트에서 정보를 포함하는 메시지를 변경하려면
: 지금이 CloudWatch에서와 SNS가 이메일에 전송하는 정보입니다. 어떻게해야합니까? 나는 그것이 어떻게 든 어떻게 Monitored Metric:
- Dimensions:
의 출력을 변경하는 것입니다 추측하고있어.
또는 더 나은 방법은 내 전자 메일에 람다 함수의 로그 출력이 포함되도록하려면 어떻게해야합니까?