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 年前檢視次數 370 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南