Skip to content

Commit

Permalink
Update CloudWatch config to support arbitrary interface names (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrist0stoichev authored Jun 19, 2024
1 parent efff249 commit 8dbdb41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/cwagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%{~ endif ~}
"metrics_collected": {
"net": {
"resources": ["eth0", "eth1"],
"resources": ["*"],
"measurement": [
{ "name": "bytes_recv", "rename": "BytesIn", "unit": "Bytes" },
{ "name": "bytes_sent", "rename": "BytesOut", "unit": "Bytes" },
Expand All @@ -29,7 +29,6 @@
]
},
"ethtool": {
"interface_include": ["eth0", "eth1"],
"metrics_include": [
"bw_in_allowance_exceeded",
"bw_out_allowance_exceeded",
Expand All @@ -47,4 +46,4 @@
"InstanceId": "$${aws:InstanceId}"
}
}
}
}

0 comments on commit 8dbdb41

Please sign in to comment.