gpt4 book ai didi

amazon-web-services - CloudWatch 警报和 CloudWatch 事件有什么区别?

转载 作者:行者123 更新时间:2023-12-04 11:04:57 25 4
gpt4 key购买 nike

CloudWatch 警报和 CloudWatch 事件有什么区别?对我来说,两者似乎都对某个指标做出响应并在他们的目标上触发某些事情?什么是重要的区别?

最佳答案

一些主要区别:

  • 事件可以根据时间表自行触发;警报不会这样做
  • 警报仅针对持续更改调用操作
  • 警报监视单个指标并响应该指标的变化;事件可以响应操作(例如创建的 lambda 或 AWS 环境中的其他一些更改)
  • 警报可以添加到 CloudWatch 仪表板,但事件不能
  • 事件由目标处理,选项比警报可以触发的操作多得多

  • 事件:

    Amazon CloudWatch Events delivers a near real-time stream of system events that describe changes in Amazon Web Services (AWS) resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams. CloudWatch Events becomes aware of operational changes as they occur. CloudWatch Events responds to these operational changes and takes corrective action as necessary, by sending messages to respond to the environment, activating functions, making changes, and capturing state information.

    You can also use CloudWatch Events to schedule automated actions that self-trigger at certain times using cron or rate expressions.



    警报:

    You can create a CloudWatch alarm that watches a single CloudWatch metric or the result of a math expression based on CloudWatch metrics. The alarm performs one or more actions based on the value of the metric or expression relative to a threshold over a number of time periods. The action can be an Amazon EC2 action, an Amazon EC2 Auto Scaling action, or a notification sent to an Amazon SNS topic.

    Alarms invoke actions for sustained state changes only. CloudWatch alarms don't invoke actions simply because they are in a particular state, the state must have changed and been maintained for a specified number of periods.



    引用:
  • https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html
  • https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html
  • https://www.edureka.co/blog/amazon-cloudwatch-monitoring-tool/
  • 关于amazon-web-services - CloudWatch 警报和 CloudWatch 事件有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58205306/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com