0

即使 lambda 延迟超过阈值,也不会触发有关 lambda 的 Cloudwatch 警报。在上周,lambda 延迟数次达到 15 分钟。以下是报警详情。

报警视图

EventTransformerLambdaLatencyAlarm:
    Properties:
      AlarmDescription: "Alarm if EventTransformer lambda takes more than the threshold to complete"
      AlarmName: "EventTransformerTaskLatencyAlarm"
      ComparisonOperator: "GreaterThanOrEqualToThreshold"
      Dimensions:
        - Name: "FunctionName"
          Value: {Ref: EventTransformerTaskName}
      EvaluationPeriods: 1
      MetricName: "Duration"
      Namespace: "AWS/Lambda"
      Period: !!int "300"
      Statistic: "Maximum"
      Threshold: !!int "780000" # 13 minutes in millis
      TreatMissingData: "notBreaching"
    Type: "AWS::CloudWatch::Alarm"

当我在警报控制台中单击“查看指标”时,它会显示远高于红线的数据点。

上周违反的指标

任何建议都会有所帮助

4

0 回答 0