简体   繁体   English

Cloudwatch警报,可根据条件自动缩放

[英]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.

相关问题 用于自动缩放的 cloudwatch 警报 - cloudwatch alarm for Autoscaling CloudWatch自定义EC2内存指标和具有AutoScaling策略的警报 - CloudWatch custom EC2 memory metric and alarm with AutoScaling policy 是否可以使用 Terraform 为 AutoScaling 组的同一 CloudWatch 警报创建多个条件? - It is possible to create multiple conditions for the same CloudWatch alarm for AutoScaling group with Terraform? AWS ECS - 使用 CloudWatch 警报的自动缩放无法按预期工作 - AWS ECS - autoscaling using CloudWatch alarm does not work as expected 向 EC2 自动扩展组添加容量的 AWS CloudWatch 警报一直处于警报状态 - AWS CloudWatch Alarm to add capacity to EC2 autoscaling group has been in alarm forever 我应该在AutoScaling中使用CloudWatch警报还是“ as-create-or-update-trigger” - Should I use CloudWatch alarm or “as-create-or-update-trigger” for my AutoScaling AWS Cloudwatch - 当我尝试为SQS创建警报时,自动调节组未显示 - AWS Cloudwatch - Autoscaling groups are not showing up when I try to create an alarm for SQS 满足条件时以编程方式向CloudWatch发出警报 - Programmatically fire off alarm to CloudWatch when condition is met 具有SQS的AWS自动扩展和CloudWatch - AWS Autoscaling and CloudWatch with SQS 适用于 RDS 的 AWS cloudwatch 警报 - AWS cloudwatch alarm for RDS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM