Hi,
I am using metricbeat inside a container and want this beat to monitor the host and all other neighboring containers.
Unfortunately I can only see my metricbeat docker as host in most of the dashboards views.
But when looking at the views showing cpu and memrory consumption per process I can see processes from other docker containers.
Looking at the discover view I see data from all my containers.
My metricbeat configuration looks like this.
#------------------------------- System Module -------------------------------
- module: system
metricsets: ["load","core","diskio","filesystem","memory","network","process","socket"]
enabled: true
period: 10s
processes: ['.*']
cgroups: trueEnable collection of cgroup metrics from processes on Linux.
process.cgroups.enabled: true
#------------------------------- Docker Module -------------------------------
- module: docker
metricsets: ["container", "cpu", "diskio", "info", "memory", "network"]
hosts: ["unix:///var/run/docker.sock"]
enabled: true
period: 10s
I start my metricbeat container with the following command:
docker run -d --rm --volume=/proc:/hostfs/proc:ro --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro --volume=/:/hostfs:ro --volume=/var/run/docker.sock:/var/run/docker.sock:ro --net=host --hostname=metricbeat --name=metricbeat --dns=127.0.0.1 metricbeat
Is my configuration wrong or am I not supposed to be able to see more information about the containers with current dashboards?
Br Mathias