Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created October 2, 2024 08:24
Show Gist options
  • Save bblanchon/fed8e37ea1bd53a3d460ef5ecdf9c0e4 to your computer and use it in GitHub Desktop.
Save bblanchon/fed8e37ea1bd53a3d460ef5ecdf9c0e4 to your computer and use it in GitHub Desktop.
Sample configuration for CloudWatch Agent
{
"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