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.

已提问 2 年前363 查看次数
2 回答
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
已回答 2 年前
0
已接受的回答

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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则