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?

gefragt vor 2 Jahren396 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen