- Install the munin-node on the Docker server. For more information check the following URL: munin guide.
- Copy the docker_ file to the munin plugin folder:
/usr/share/munin/plugins
. - Set plugin permissions:
chmod +x docker_
- Create symbolic links.
cd /etc/munin/plugins/
ln -s /usr/share/munin/plugins/docker_ docker_cpu
ln -s /usr/share/munin/plugins/docker_ docker_memory
ln -s /usr/share/munin/plugins/docker_ docker_memory_nocache
ln -s /usr/share/munin/plugins/docker_ docker_blockio
ln -s /usr/share/munin/plugins/docker_ docker_netio
ln -s /usr/share/munin/plugins/docker_ docker_compose_cpu
ln -s /usr/share/munin/plugins/docker_ docker_compose_memory
ln -s /usr/share/munin/plugins/docker_ docker_compose_memory_nocache
ln -s /usr/share/munin/plugins/docker_ docker_compose_blockio
ln -s /usr/share/munin/plugins/docker_ docker_compose_netio
ln -s /usr/share/munin/plugins/docker_ docker_volumes
- Give root privilege to the docker plugin. Root privilege is required for munin to execute the Docker command.
- Create a new file named "docker" inside the folder /etc/munin/plugin-conf.d/
- Insert the following content in the new docker file:
[docker_*]
user root
- Restart the munin-node service.