amazon-cloudwatch-user-guide icon indicating copy to clipboard operation
amazon-cloudwatch-user-guide copied to clipboard

Delete Unknown dimension created when push metric

Open HieronyM opened this issue 7 years ago • 2 comments

Hi,

I'm successfully pushed the metric to the cloudwatch, but I found some dimensions that I don't know why it's there. Is there any way I can delete those default dimensions created? In my configuration, I just append 2 dimensions for the metric (AutoScalingGroupName & InstanceID). Currently there are 7 dimensions created, I just want the dimensions only 2 (AutoScalingGroupName & InstanceID).

metric-dimensions

And for the configuration that I use is here

{
    "agent": {
        "metrics_collection_interval": 15,
        "logfile": "{{ aws_cwa_logfile_path }}"
    },

    "metrics": {
        "namespace": "CWAgent2",
        "metrics_collected": {
            "cpu": {
                "measurement": [
                    {"name": "usage_system", "rename": "CPU Usage System", "unit": "Percent"},
                    {"name": "usage_user", "rename": "CPU Usage User", "unit": "Percent"},
                    {"name": "usage_idle", "rename": "CPU Usage Idle", "unit": "Percent"}
                ]
            },

            "mem": {
                "measurement": [
                    {"name": "total", "rename": "Memory Total"},
                    {"name": "available_percent", "rename": "Memory Available", "unit": "Percent"}
                ]
            }
        },

        "append_dimensions": {
            "InstanceId": "${aws:InstanceId}",
            "AutoScalingGroupName": "${aws:AutoScalingGroupName}"
        },

        "aggregation_dimensions" : [["AutoScalingGroupName"], ["InstanceId"],[]]
    }
}

Thank you.

HieronyM avatar May 09 '19 09:05 HieronyM

Is this a custom metric you are publishing, or a metric from the CloudWatch Agent, or some other source?

chrisdr avatar May 30 '19 22:05 chrisdr

Closing this issue or pull request in advance of archiving this repo. For more information about the decision to archive this repo (and others in the "awsdocs" org), see the announcement on the AWS News Blog.

joshbean avatar Jun 28 '23 22:06 joshbean