Skip to content

yomon8/docker_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

chmod +x ./docker_stats
sudo mv ./docker_stats /usr/share/munin/plugins/
sudo ln -s /usr/share/munin/plugins/docker_stats /etc/munin/plugins/docker_stats

Adjust user permission

cat <<EOF > /etc/munin/plugin-conf.d/docker_stats
[docker_stats]
user root
EOF
sudo /etc/init.d/munin-node restart

Remove Container from graph

If you want to remove old container from munin graph.

# usually /var/lib/munin/plugin-state/<username>/containerlist
rm ${MUNIN_PLUGSTATE}/containerlist

Test

sudo -u munin munin-run docker_stats config
sudo -u munin munin-run docker_stats
$ nc localhost 4949
# munin node at yourhostname
config docker_stats
...
...
fetch docker_stats
...
...

About

munin plugin to collect metrics of docker stats command

Resources

License

Stars

Watchers

Forks

Packages

No packages published