How to rename Name in Namespace on Cloudwatch All Metrics

0

Hi AWS,

Please help me change Name in Namespace on CloudWatch All Metrics. I have config CloudWatch agent push metrics from EC2. This is an evidence image: https://postimg.cc/HJ25Zfz1 This is my configuration

{
    "agent": {
            "metrics_collection_interval": 60,
            "run_as_user": "root"
    },
    "metrics": {
            "namespace": "DEV/EC2",
            "append_dimensions": {
                "AutoScalingGroupName": "${aws:AutoScalingGroupName}",
                "InstanceId": "${aws:InstanceId}",
                "InstanceType":"${aws:InstanceType}"
            },
            "metrics_collected": {
                    "disk": {
                            "measurement": [
                                    "used_percent"
                            ],
                            "metrics_collection_interval": 60,
                            "resources": [
                                "/"
                              ]
                    },
                    "mem": {
                            "measurement": [
                                    "mem_used_percent"
                            ],
                            "metrics_collection_interval": 60
                    }
            }
    }
}

Thank All. Best regard.

preguntada hace 2 años370 visualizaciones
2 Respuestas
1

Hi, I'm still not sure exactly what you want. Do you want to replace "InstanceId, device, fstype, path" with a custom name such as "Per instance metrics", or do you want to replace the name of some dimensions, for example rename "InstanceId" with "インスタンス ID"?

If you want to replace one block with a custom name such as "Per instance metrics", I'm sorry this is not possible. If you want to rename "InstanceId" with "インスタンス ID", did you try changing the append_dimensions in the CloudWatch agent configuration file? For example:

…"append_dimensions": {
                …
                "インスタンス ID": "${aws:InstanceId}"
            },…
profile pictureAWS
Jsc
respondido hace 2 años
0
Respuesta aceptada

Hi, in the screenshot you linked, you highlighted the blocks that list the dimension names. It's not clear to me what you want to do? Do you want to rename some dimensions? Can you give an example of what you want to do?

profile pictureAWS
Jsc
respondido hace 2 años

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