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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ