2016-03-05 20:23:31 +03:00
|
|
|
:orphan:
|
|
|
|
|
|
|
|
glances
|
|
|
|
=======
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
**glances** [OPTIONS]
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2023-12-10 20:41:34 +03:00
|
|
|
**glances** is a cross-platform curses-based monitoring tool that aims
|
|
|
|
to present a maximum of information in a minimum of space, ideally fitting
|
|
|
|
in a classic 80x24 terminal or larger for more details. It can adapt
|
|
|
|
dynamically to the displayed information depending on the terminal size.
|
|
|
|
It can also work in client/server mode.
|
|
|
|
Remote monitoring can be performed via a terminal or web interface.
|
2016-03-05 20:23:31 +03:00
|
|
|
|
|
|
|
**glances** is written in Python and uses the *psutil* library to get
|
|
|
|
information from your system.
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. include:: cmds.rst
|
|
|
|
|
2017-02-23 13:23:43 +03:00
|
|
|
CONFIGURATION
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. include:: config.rst
|
|
|
|
|
2016-03-05 20:23:31 +03:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
Monitor local machine (standalone mode):
|
|
|
|
|
|
|
|
$ glances
|
|
|
|
|
2023-12-10 20:41:34 +03:00
|
|
|
To monitor the local machine with the web interface (Web UI),
|
|
|
|
, run the following command line:
|
2016-03-05 20:23:31 +03:00
|
|
|
|
|
|
|
$ glances -w
|
|
|
|
|
2023-12-10 20:41:34 +03:00
|
|
|
then, open a web browser to the provided URL.
|
2020-03-04 00:29:39 +03:00
|
|
|
|
2016-03-05 20:23:31 +03:00
|
|
|
Monitor local machine and export stats to a CSV file:
|
|
|
|
|
2017-12-28 15:01:37 +03:00
|
|
|
$ glances --export csv --export-csv-file /tmp/glances.csv
|
2016-03-05 20:23:31 +03:00
|
|
|
|
2023-12-10 20:41:34 +03:00
|
|
|
Monitor local machine and export stats to an InfluxDB server with 5s
|
2016-06-10 17:16:41 +03:00
|
|
|
refresh time (also possible to export to OpenTSDB, Cassandra, Statsd,
|
2023-12-10 20:41:34 +03:00
|
|
|
ElasticSearch, RabbitMQ, and Riemann):
|
2016-03-05 20:23:31 +03:00
|
|
|
|
2017-12-28 15:01:37 +03:00
|
|
|
$ glances -t 5 --export influxdb
|
|
|
|
|
|
|
|
It is also possible to export stats to multiple endpoints:
|
|
|
|
|
|
|
|
$ glances -t 5 --export influxdb,statsd,csv
|
2016-03-05 20:23:31 +03:00
|
|
|
|
|
|
|
Start a Glances server (server mode):
|
|
|
|
|
|
|
|
$ glances -s
|
|
|
|
|
|
|
|
Connect Glances to a Glances server (client mode):
|
|
|
|
|
|
|
|
$ glances -c <ip_server>
|
|
|
|
|
|
|
|
Connect to a Glances server and export stats to a StatsD server:
|
|
|
|
|
2017-12-28 15:01:37 +03:00
|
|
|
$ glances -c <ip_server> --export statsd
|
2016-03-05 20:23:31 +03:00
|
|
|
|
|
|
|
Start the client browser (browser mode):
|
|
|
|
|
|
|
|
$ glances --browser
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Nicolas Hennion aka Nicolargo <contact@nicolargo.com>
|