glances --version (return code: 0)
Glances v2.10 with psutil v5.2.2
glances --help (return code: 0)
usage: glances [-h] [-V] [-d] [-C CONF_FILE] [--disable-alert]
[--disable-amps] [--disable-cloud] [--disable-cpu]
[--disable-diskio] [--disable-docker] [--disable-folders]
[--disable-fs] [--disable-gpu] [--disable-hddtemp]
[--disable-ip] [--disable-load] [--disable-mem]
[--disable-memswap] [--disable-network] [--disable-now]
[--disable-ports] [--disable-process] [--disable-raid]
[--disable-sensors] [--disable-wifi] [-0] [-1] [-2] [-3] [-4]
[-5] [-6] [--disable-history] [--disable-bold] [--disable-bg]
[--enable-irq] [--enable-process-extended] [--export-graph]
[--path-graph PATH_GRAPH] [--export-csv EXPORT_CSV]
[--export-cassandra] [--export-couchdb]
[--export-elasticsearch] [--export-influxdb] [--export-kafka]
[--export-opentsdb] [--export-prometheus] [--export-rabbitmq]
[--export-riemann] [--export-statsd] [--export-zeromq]
[-c CLIENT] [-s] [--browser] [--disable-autodiscover] [-p PORT]
[-B BIND_ADDRESS] [--username] [--password]
[--snmp-community SNMP_COMMUNITY] [--snmp-port SNMP_PORT]
[--snmp-version SNMP_VERSION] [--snmp-user SNMP_USER]
[--snmp-auth SNMP_AUTH] [--snmp-force] [-t TIME] [-w]
[--cached-time CACHED_TIME] [--open-web-browser] [-q]
[-f PROCESS_FILTER] [--process-short-name]
[--hide-kernel-threads] [--tree] [-b] [--diskio-show-ramfs]
[--diskio-iops] [--fahrenheit] [--fs-free-space]
[--theme-white] [--disable-check-update]
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-d, --debug enable debug mode
-C CONF_FILE, --config CONF_FILE
path to the configuration file
--disable-alert disable alert module
--disable-amps disable applications monitoring process (AMP) module
--disable-cloud disable Cloud module
--disable-cpu disable CPU module
--disable-diskio disable disk I/O module
--disable-docker disable Docker module
--disable-folders disable folder module
--disable-fs disable filesystem module
--disable-gpu disable GPU module
--disable-hddtemp disable HD temperature module
--disable-ip disable IP module
--disable-load disable load module
--disable-mem disable memory module
--disable-memswap disable memory swap module
--disable-network disable network module
--disable-now disable current time module
--disable-ports disable ports scanner module
--disable-process disable process module
--disable-raid disable RAID module
--disable-sensors disable sensors module
--disable-wifi disable wifi module
-0, --disable-irix task's cpu usage will be divided by the total number
of CPUs
-1, --percpu start Glances in per CPU mode
-2, --disable-left-sidebar
disable network, disk I/O, FS and sensors modules
-3, --disable-quicklook
disable quick look module
-4, --full-quicklook disable all but quick look and load
-5, --disable-top disable top menu (QL, CPU, MEM, SWAP and LOAD)
-6, --meangpu start Glances in mean GPU mode
--disable-history disable stats history
--disable-bold disable bold mode in the terminal
--disable-bg disable background colors in the terminal
--enable-irq enable IRQ module
--enable-process-extended
enable extended stats on top process
--export-graph export stats to graphs
--path-graph PATH_GRAPH
set the export path for graphs (default is /tmp)
--export-csv EXPORT_CSV
export stats to a CSV file
--export-cassandra export stats to a Cassandra or Scylla server
(cassandra lib needed)
--export-couchdb export stats to a CouchDB server (couch lib needed)
--export-elasticsearch
export stats to an ElasticSearch server (elasticsearch
lib needed)
--export-influxdb export stats to an InfluxDB server (influxdb lib
needed)
--export-kafka export stats to a Kafka server (kafka-python lib
needed)
--export-opentsdb export stats to an OpenTSDB server (potsdb lib needed)
--export-prometheus export stats to a Prometheus exporter
(prometheus_client lib needed)
--export-rabbitmq export stats to rabbitmq broker (pika lib needed)
--export-riemann export stats to riemann broker (bernhard lib needed)
--export-statsd export stats to a StatsD server (statsd lib needed)
--export-zeromq export stats to a ZeroMQ server (pyzmq lib needed)
-c CLIENT, --client CLIENT
connect to a Glances server by IPv4/IPv6 address or
hostname
-s, --server run Glances in server mode
--browser start the client browser (list of servers)
--disable-autodiscover
disable autodiscover feature
-p PORT, --port PORT define the client/server TCP port [default: 61209]
-B BIND_ADDRESS, --bind BIND_ADDRESS
bind server to the given IPv4/IPv6 address or hostname
--username define a client/server username
--password define a client/server password
--snmp-community SNMP_COMMUNITY
SNMP community
--snmp-port SNMP_PORT
SNMP port
--snmp-version SNMP_VERSION
SNMP version (1, 2c or 3)
--snmp-user SNMP_USER
SNMP username (only for SNMPv3)
--snmp-auth SNMP_AUTH
SNMP authentication key (only for SNMPv3)
--snmp-force force SNMP mode
-t TIME, --time TIME set refresh time in seconds [default: 3 sec]
-w, --webserver run Glances in web server mode (bottle needed)
--cached-time CACHED_TIME
set the server cache time [default: 1 sec]
--open-web-browser try to open the Web UI in the default Web browser
-q, --quiet do not display the curses interface
-f PROCESS_FILTER, --process-filter PROCESS_FILTER
set the process filter pattern (regular expression)
--process-short-name force short name for processes name
--hide-kernel-threads
hide kernel threads in process list
--tree display processes as a tree
-b, --byte display network rate in byte per second
--diskio-show-ramfs show RAM Fs in the DiskIO plugin
--diskio-iops show IO per second in the DiskIO plugin
--fahrenheit display temperature in Fahrenheit (default is Celsius)
--fs-free-space display FS free space instead of used
--theme-white optimize display colors for white background
--disable-check-update
disable online Glances version ckeck
Examples of use:
Monitor local machine (standalone mode):
$ glances
Monitor local machine with the Web interface (Web UI):
$ glances -w
Glances web server started on http://0.0.0.0:61208/
Monitor local machine and export stats to a CSV file (standalone mode):
$ glances --export-csv /tmp/glances.csv
Monitor local machine and export stats to a InfluxDB server with 5s refresh time (standalone mode):
$ glances -t 5 --export-influxdb
Start a Glances server (server mode):
$ glances -s
Connect Glances to a Glances server (client mode):
$ glances -c <ip_server>
Connect Glances to a Glances server and export stats to a StatsD server (client mode):
$ glances -c <ip_server> --export-statsd
Start the client browser (browser mode):
$ glances --browser