Duplicate disk_used_percent metrics

0

Hi Team,

We have installed Cloudwatch agent to track disk and memory utilisation. But we could see duplicate entries for disk_used_percent. Please let us how to remove duplicates entries for disk_used_percent

our aws-cloudwatch-agent.json file is as below

{ "agent": { "metrics_collection_interval": 60, "logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log" }, "metrics": { "namespace": "CWAgent", "metrics_collected": { "disk": { "resources": [ "/", "/tmp" ], "measurement": ["disk_used_percent"], "ignore_file_system_types": [ "sysfs", "devtmpfs”, "drop_device": true ], "metrics_collection_interval": 3600 }, "mem": { "measurement": ["mem_available_percent"], "metrics_collection_interval": 60 } }, "append_dimensions": { "InstanceId": "${aws:InstanceId}" } }, "logs": { "logs_collected": { "files": { "collect_list": [ { "file_path": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log", "log_group_name": "amazon-cloudwatch-agent.log", "log_stream_name": "amazon-cloudwatch-agent.log", "timezone": "UTC" } ] } }, "log_stream_name": "my_log_stream_name", "force_flush_interval" : 15 } }

As shown in below image, we could see disk_space_used metric in multiple places Enter image description here

asked a year ago241 views
1 Answer
0

You can refer to this blog - which has provided details to install cloudwatch agent with required JSON. https://talktechnical.medium.com/how-to-monitor-memory-and-disk-utilization-of-aws-ec2-instances-and-asg-55a4b82009fc

hope this helps

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions