Cloudwatch Dashboards

0

I want to know whether cloudwatch is capable of dynamically adding the new instance into the cloudwatch dashboard if the current instance in the asg gets terminated?

已提问 2 年前395 查看次数
1 回答
0
已接受的回答

You can yes, use a Metric Explorer widget - you'll find Metric Explorer on Explorer option under Metrics in CloudWatch Console.

Dashboard widget definition would be something like:

{
    "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'"
    }
}
AWS
已回答 2 年前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则