[英]Cloudwatch alarm for Autoscaling with condition
How to setup cloudwatch alarm for Autoscaling group when its scaled upto a particular number of Instances? 当自动缩放组扩展到特定数量的实例时,如何设置cloudwatch警报?
Suppose, the maximum number of instances is 6. I need to get notified when the no: of instances crossed 3. 假设实例的最大数量为6。当实例的no:超过3时,我需要得到通知。
There is a metric called GroupTotalIsntances accessible via CloudWatch Console > Metrics > Auto Scaling > Group Metrics which gives you the total number of instances in your ASG. 可通过CloudWatch控制台>指标> Auto Scaling>组指标访问一个称为GroupTotalIsntances的指标,该指标可为您提供ASG中实例的总数。 Create a new alarm and use this metric.
创建一个新警报并使用该指标。 Read more here .
在这里阅读更多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.