Glances is a cross-platform monitoring tool which aims to present a large amount of monitoring information through a curses or Web based interface. The information dynamically adapts depending on the size of the user interface.

It can also work in client/server mode. Remote monitoring could be done via terminal, Web interface or API (XML-RPC and RESTful). Stats can also be exported to files or external time/value databases.

Glances is written in Python and uses libraries to grab information from your system. It is based on an open architecture where developers can add new plugins or exports modules.

https://lists.centos.org/pipermail/centos-announce/2015-December/021555.html.

glancesautoinstall.

psutil. For example, on Debian/Ubuntu you need to install first the python-devpackage. For Fedora/CentOS/RHEL install first python-devel package. For Windows, just install psutil from the binary installation file. 

Note 2 (for the Wifi plugin): If you want to use the Wifi plugin, you need to install the wireless-tools package on your system.

You can also install the following libraries in order to use optional features (like the Web interface, exports modules…):

pip install 'glances[action,browser,cloud,cpuinfo,docker,export,folders,gpu,graph,ip,raid,snmp,web,wifi]'

To upgrade Glances to the latest version:

pip install --upgrade glances
pip install --upgrade glances[...]

If you need to install Glances in a specific user location, use:

export PYTHONUSERBASE=~/mylocalpath
pip install --user glances


Docker: the funny way

A Glances container is available. It includes the latest development HEAD version. You can use it to monitor your server and all your other containers!

Get the Glances container:

docker pull nicolargo/glances

Run the container in console mode:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it docker.io/
nicolargo/glances

Additionally, if you want to use your own glances.conf file, you can create your own Dockerfile:

FROM nicolargo/glances
COPY glances.conf /glances/conf/glances.conf
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT

Alternatively, you can specify something along the same lines with docker run options:

docker run -v `pwd`/glances.conf:/glances/conf/glances.conf -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances

Where `pwd`/glances.conf is a local directory containing your glances.conf file. Run the container in Web server mode (notice the GLANCES_OPT environment variable setting parameters for the glances startup command):

docker run -d --restart="always" -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host docker.io/nicolargo/glances

GNU/Linux

Glances is available on many Linux distributions, so you should be able to install it using your favorite package manager. Be aware that when you use this method the operating system package for Glances may not be the latest version.

Python for Windows (Python 2.7.9+ and 3.4+ ship with pip) and then run the following command:

$ pip install glances

Alternatively, you could clone the repository and install with the following command.

$ git clone https://github.com/nicolargo/glances.git
$ cd glances
$ python setup.py install

Android

You need a rooted device and the Termux application (available on the Google Play Store).

Start Termux on your device and enter:

$ apt update
$ apt upgrade
$ apt install clang python python-dev
$ pip install bottle
$ pip install glances

And start Glances:

$ glances

You can also run Glances in server mode (-s or -w) in order to remotely monitor your Android device.

https://supermarket.chef.io/cookbooks/glances(thanks to Antoine Rouyer)

https://github.com/rverchere/puppet-glances

https://galaxy.ansible.com/zaxos/glances-ansible-role/

readthedocs website.

If you have any question (after RTFM!), please post it on the official Q&A forum.

wiki page. There is also a chat dedicated to the Glances developers:

Author

Nicolas Hennion (@nicolargo) <[email protected]>


Download tool and support the author: https://github.com/nicolargo/glances