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?

asked 2 years ago388 views
1 Answer
0
Accepted Answer

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
answered 2 years ago
profile picture
EXPERT
reviewed a month 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