Skip to content

Commit

Permalink
Merge branch 'main' into 694-supplemental-links
Browse files Browse the repository at this point in the history
  • Loading branch information
CB987 authored Jan 14, 2025
2 parents c0f0b26 + e963cca commit a1382e8
Show file tree
Hide file tree
Showing 11 changed files with 2,360 additions and 24 deletions.
81 changes: 81 additions & 0 deletions ansible/files/amazon-cloudwatch-agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"agent": {
"metrics_collection_interval": 60,
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"debug": true,
"run_as_user": "root"
},
"metrics": {
"aggregation_dimensions": [
[
"InstanceId"
]
],
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"ImageId": "${aws:ImageId}",
"InstanceId": "${aws:InstanceId}",
"InstanceType": "${aws:InstanceType}"
},
"metrics_collected": {
"collectd": {
"name_prefix":"collectd_",
"collectd_security_level":"none",
"service_address":"udp://127.0.0.1:25826",
"metrics_aggregation_interval": 60
},
"cpu": {
"measurement": [
"cpu_usage_idle",
"cpu_usage_iowait",
"cpu_usage_user",
"cpu_usage_system"
],
"metrics_collection_interval": 60,
"totalcpu": false
},
"disk": {
"measurement": [
"used_percent",
"inodes_free"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"diskio": {
"measurement": [
"io_time",
"write_bytes",
"read_bytes",
"writes",
"reads"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"mem": {
"measurement": [
"mem_used_percent"
],
"metrics_collection_interval": 60
},
"netstat": {
"measurement": [
"tcp_established",
"tcp_time_wait"
],
"metrics_collection_interval": 60
},
"swap": {
"measurement": [
"swap_used_percent"
],
"metrics_collection_interval": 60
}
}
}
}
Loading

0 comments on commit a1382e8

Please sign in to comment.