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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ