How to enable docker plugin ?

737 views
Skip to first unread message

michał dziędziela

unread,
Jan 5, 2016, 8:02:19 AM1/5/16
to Glances Users
So i have installed glances by apt-get, i have docker-py library installed by both pi and pip3 but i have some problems running glances with python3.4 so im running with python2.7.
There is just a little information about how to configure each or sometimes there is none like for docker plugin.
In logs i have:

2016-01-05 13:55:56,131 -- DEBUG -- Available plugins list: ['processlist', 'network', 'sensors', 'batpercent', 'now', 'processcount', 'core', 'hddtemp', 'cpu', 'mem', 'psutilversion', 'diskio', 'monitor', 'help', 'percpu', 'uptime', 'fs', 'system', 'memswap', 'load', 'alert']

i have tried by adding [docker] and [docker-py] sections in config files but it did help.
Please help with this plugin.

btw, its really nice combo-monitoring-tool
keep it going

Nicolargo

unread,
Jan 5, 2016, 8:15:19 AM1/5/16
to Glances Users
The Glances version available via the APT is not up to date.

Please, uninstall it and use the auto installation script: https://github.com/nicolargo/glancesautoinstall

It will install latest stable Glances version and all the pre-requisite.

You can also install the develop branch using the following procedure: https://github.com/nicolargo/glances/wiki/Install-and-test-Glances-DEVELOP-version


michał dziędziela

unread,
Jan 5, 2016, 8:40:27 AM1/5/16
to Glances Users
Thanks for quick response, now its working with the newest version. I have another question if i may. Is there any possibility to disable each section and leave only few ? f.e. i would like to have only docker and processes to be displayed.
Can it be done by hardcoding it in sources or is there other possibility ?

P.S.
after removing with apt-get purge and installing with the provided script i dont have configuration file anymore.
Do i have to make it from scratch ?

michał dziędziela

unread,
Jan 5, 2016, 8:48:53 AM1/5/16
to Glances Users
ok i see the command line reference for disabling each module/plugin

michał dziędziela

unread,
Jan 5, 2016, 8:55:41 AM1/5/16
to Glances Users
i have disabled plugins with:

glances -d --disable-quicklook --disable-cpu --disable-mem --disable-swap --disable-load --disable-network --disable-ip --disable-diskio --disable-fs --disable-sensors --disable-hddtemp --disable-raid

but i still see:
quicklook
cpu
mem
swap
load

don't see anything useful in logs

Nicolargo

unread,
Jan 5, 2016, 9:16:03 AM1/5/16
to Glances Users
It is clearly a bug...

I just open an issue: https://github.com/nicolargo/glances/issues/766

Nicolargo

unread,
Jan 10, 2016, 3:45:23 AM1/10/16
to Glances Users
It is corrected in the HEAD of the develop branch.

As a bonus i also add a new --disable-top option (also available via the '5' shortcut) to disable in one shot the top menu.


For example, the following command line only display processes:


    glances --disable-top --disable-left-sidebar

michał dziędziela

unread,
Jan 11, 2016, 4:59:26 AM1/11/16
to Glances Users
Thanks a lot. New option also looks interesting. I have few more ideas but as i am not familiar with python i need to make quick lessons and dive deeper into the code to understand how its working. I planned before to make docker monitor tool but over http ( without client/server mode ) but your solution is also good.
Thanks for your hard work and i hope i will contribute to your project in near future ;)
Reply all
Reply to author
Forward
0 new messages