Can't see all host machine network adapters

Hi,

My guess is your container does not know about or have access to your host’s network adapters. Recall when a container starts up, it is in a different namespace as your host and will not have access to the host’s network devices. It will have its own eth0 device, which is what you probably see results from.

The simple way to get stats is to add --net=host which will use the system’s namespace for networking:

docker run -it --net host -v $PWD/config.toml:/etc/telegraf/telegraf.conf telegraf