Created
December 18, 2023 11:48
-
-
Save tarasowski/d4d0f4b3a629d63b3b2dfe98304ea6dd to your computer and use it in GitHub Desktop.
cloudwatchagent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "agent": { | |
| "metrics_collection_interval": 60, | |
| "run_as_user": "cwagent" | |
| }, | |
| "logs": { | |
| "logs_collected": { | |
| "files": { | |
| "collect_list": [ | |
| { | |
| "file_path": "/var/log/dnf.log", | |
| "log_group_class": "STANDARD", | |
| "log_group_name": "/aws/ec2/cwagent/test", | |
| "log_stream_name": "{instance_id}", | |
| "retention_in_days": -1 | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "metrics": { | |
| "aggregation_dimensions": [ | |
| [ | |
| "InstanceId" | |
| ] | |
| ], | |
| "append_dimensions": { | |
| "AutoScalingGroupName": "${aws:AutoScalingGroupName}", | |
| "ImageId": "${aws:ImageId}", | |
| "InstanceId": "${aws:InstanceId}", | |
| "InstanceType": "${aws:InstanceType}" | |
| }, | |
| "metrics_collected": { | |
| "collectd": { | |
| "metrics_aggregation_interval": 60 | |
| }, | |
| "cpu": { | |
| "measurement": [ | |
| "cpu_usage_idle", | |
| "cpu_usage_iowait", | |
| "cpu_usage_user", | |
| "cpu_usage_system" | |
| ], | |
| "metrics_collection_interval": 60, | |
| "resources": [ | |
| "*" | |
| ], | |
| "totalcpu": false | |
| }, | |
| "disk": { | |
| "measurement": [ | |
| "used_percent", | |
| "inodes_free" | |
| ], | |
| "metrics_collection_interval": 60, | |
| "resources": [ | |
| "*" | |
| ] | |
| }, | |
| "diskio": { | |
| "measurement": [ | |
| "io_time" | |
| ], | |
| "metrics_collection_interval": 60, | |
| "resources": [ | |
| "*" | |
| ] | |
| }, | |
| "mem": { | |
| "measurement": [ | |
| "mem_used_percent" | |
| ], | |
| "metrics_collection_interval": 60 | |
| }, | |
| "statsd": { | |
| "metrics_aggregation_interval": 60 | |
| }, | |
| "swap": { | |
| "measurement": [ | |
| "swap_used_percent" | |
| ], | |
| "metrics_collection_interval": 60 | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment