如何自动将Auto scaling group创建的新EC2实例添加到CloudWatch Dashboard中?

0

【以下的问题经过翻译处理】 我想知道CloudWatch是否能够在auto scaling group在当前实例终止时,动态地将新实例自动添加到CloudWatch仪表板中。

profile picture
EXPERT
asked 6 months ago39 views
1 Answer
0

【以下的回答经过翻译处理】 您可以使用Metrics Explorer小部件。您可以在CloudWatch控制台中的指标(Metric)下的Explorer选项中找到指标浏览器。

仪表板小部件定义大致如下:

{     "type": "explorer",     "properties": {         "metrics": [             {                 "metricName": "CPUUtilization",                 "resourceType": "AWS :: EC2 :: Instance",                 "stat": "Average"             }         ],         "labels": [             {                 "key": "aws:autoscaling:groupName",                 "value": "my-asg-name"             }         ],         "period": 300,         "region": "us-east-1",         "title": "Live instances in 'my-asg-name'"     } }

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions