days
-1
0
hours
-1
-1
minutes
-5
-4
seconds
-1
-1
search
Begone, evil code!

Glances: Keep a good eye on your code with this Python monitoring tool

Jane Elizabeth
Glances
© Shutterstock / Photo Oz

Very superstitious – this monitoring tool presents a large amount of information through a curses or Web based interface. Glances may still be under active development, but this Python-based tool keeps an eye on your system.

I’m excited to report that there’s a new monitoring tool for any developer worried about bad luck when coding – Glances.

Glances is a cross-platform monitoring tool written in Python. It’ll run on almost any platform, including Microsoft, macOS, and Linux/GNU. This tool makes it easier for developers to view a large amount of monitoring information through a curses or web-based interface. Glances adapts dynamically to the terminal size and displays information accordingly.

glances

Glances’ layout

However, it doesn’t need to be on-site, either. Glances allows for remote monitoring via terminal, web interface, or API. It even includes a XML-RPC server and a RESTful JSON API, both which can be used by another client software.

Exporting is a cinch, too, as developers can export all system statistics to CSV, InfluxDB, Cassandra, OpenTSDB, StatsD, ElasticSearch or RabbitMQ. There is also a dedicated Grafana dashboard.

Here’s a quick rundown of all the stats this monitoring tool keeps track of: GPU, CPU, load, memory, network, wifi, ports, disk I/O, file system, folders, IRQ, sensors, processes list, monitored processes list, applications monitoring process, logs, docker, and actions. That’s an awful lot of things to keep track of! Thankfully, Glances does it all in one sweep.

SEE ALSO: Top 5 cloud computing monitoring tools

Getting Glances

Glances is still under active development. To install, just use PyPI for the latest stable version:

$ pip install glances 

Developers can also install it via the command line with:

$ curl -L https://bit.ly/glances | /bin/bash 

Developers need to have any version of Python higher than 2.7 as well as a copy of the psutil library that is 5.3.0 or higher.  More information about this monitoring tool can be found here; documentation can be found here.

Contributions are also welcome as this tool is still under active development. Head here for more information.

Author
Jane Elizabeth
Jane Elizabeth is an assistant editor for JAXenter.com.

Leave a Reply

Be the First to Comment!

avatar
400
  Subscribe  
Notify of