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?

preguntada hace 2 años396 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
respondido hace 2 años
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas