diff --git a/plugins/inputs/net/net.go b/plugins/inputs/net/net.go index a65f4af20..2637c2e50 100644 --- a/plugins/inputs/net/net.go +++ b/plugins/inputs/net/net.go @@ -45,6 +45,11 @@ func (n *Net) Init() error { ) } + // So not use the interface list of the system if the HOST_PROC variable is + // set as the interfaces are determined by a syscall and therefore might + // differ especially in container environments. + n.skipChecks = os.Getenv("HOST_PROC") != "" + return nil }