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.

posta 2 anni fa370 visualizzazioni
2 Risposte
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
con risposta 2 anni fa
0
Risposta accettata

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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande