Skip to content

Commit 19278b8

Browse files
committed
Add default metrics to CloudWatch agent
Report on memory and disk usage
1 parent 66b459b commit 19278b8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

packer/linux/conf/cloudwatch-agent/config.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22
"agent": {
33
"run_as_user": "root"
44
},
5+
"metrics": {
6+
"metrics_collected": {
7+
"mem": {
8+
"measurement": [
9+
"mem_used_percent"
10+
]
11+
},
12+
"disk": {
13+
"measurement": [
14+
"used_percent"
15+
],
16+
"resources": [
17+
"*"
18+
]
19+
}
20+
},
21+
"append_dimensions": {
22+
"ImageId": "${aws:ImageId}",
23+
"InstanceId": "${aws:InstanceId}",
24+
"InstanceType": "${aws:InstanceType}",
25+
"AutoScalingGroupName": "${aws:AutoScalingGroupName}"
26+
}
27+
},
528
"logs": {
629
"logs_collected": {
730
"files": {

0 commit comments

Comments
 (0)