Created
October 2, 2024 08:24
-
-
Save bblanchon/fed8e37ea1bd53a3d460ef5ecdf9c0e4 to your computer and use it in GitHub Desktop.
Sample configuration for CloudWatch Agent
This file contains 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 | |
}, | |
"metrics": { | |
"namespace": "CWAgent", | |
"append_dimensions": { | |
"InstanceId": "${aws:InstanceId}" | |
}, | |
"metrics_collected": { | |
"mem": { | |
"measurement": [ | |
"used_percent" | |
] | |
}, | |
"cpu": { | |
"measurement": [ | |
"usage_active" | |
] | |
}, | |
"disk": { | |
"measurement": [ | |
"used_percent" | |
], | |
"ignore_file_system_types": [ | |
"devtmpfs", | |
"overlay", | |
"squashfs", | |
"tmpfs", | |
"vfat" | |
] | |
}, | |
"swap": { | |
"measurement": [ | |
"used_percent" | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment