exclude bond network interfaces by default

This commit is contained in:
henrygd
2025-07-08 15:27:33 -04:00
parent d67d638a6b
commit 3dc7e02ed0

View File

@@ -57,6 +57,7 @@ func (a *Agent) skipNetworkInterface(v psutilNet.IOCountersStat) bool {
strings.HasPrefix(v.Name, "docker"),
strings.HasPrefix(v.Name, "br-"),
strings.HasPrefix(v.Name, "veth"),
strings.HasPrefix(v.Name, "bond"),
v.BytesRecv == 0,
v.BytesSent == 0:
return true