The relevant section of my docker compose file looks like this:
user: root deploy: mode: global volumes: - /proc:/hostfs/proc:ro - /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro - /:/hostfs:ro - ./metricbeat.yml:/usr/share/metricbeat/metricbeat.yml - /var/run/docker.sock:/var/run/docker.sock:ro
However, the sample dashboard '[Metricbeat System] Host overview' is showing the container's statistics and processes. How can I make it monitor the host?
The only setting I've not been able to apply is the "network_mode: host" at the composer since it's not supported in docker swarm and composer v3.