GLANCES(1)
๐ GLANCES(1) ๐
ok so bestie, you're reading the manual page for glances โ that's glances(1) in manual-page speak, section 1, the user commands one, iykyk ๐ซถ. She's long, she's iconic, and she's gonna tell you literally everything. Buckle up โจ
๐ธ NAME ๐ธ
glances โ An eye on your system ๐
๐ฆ SYNOPSIS ๐ฆ
glances [OPTIONS]
๐ DESCRIPTION ๐
okay so glances is a cross-platform, curses-based monitoring tool, and her whole personality is presenting a maximum of information in a minimum of space. Like, ideally she fits in a classic 80x24 terminal โ but if you've got a bigger terminal? more details, more slay ๐ฆ. She adapts dynamically to the displayed information depending on the terminal size. main character energy, honestly.
She can also work in client/server mode, and remote monitoring can be performed via a terminal or a web interface ๐.
glances is written in Python and uses the psutil library to get information from your system. no cap ๐ซถ
โจ OPTIONS โจ
โจ๏ธ COMMAND-LINE OPTIONS โจ๏ธ
-h,--helpโ shows this help message and dips out ๐-V,--versionโ shows the program's version number and exits, periodt-d,--debugโ turns on debug mode ๐--print-completionโ generates shell tab completion scripts for the Glances CLI โจ๏ธโจ-C CONF_FILE,--config CONF_FILEโ the path to the configuration file ๐๏ธ-P PLUGIN_DIRECTORY,--plugins PLUGIN_DIRECTORYโ path to a directory containing additional plugins ๐งฉ--modules-listโ displays the modules (plugins & exports) list and exits ๐--disable-plugin PLUGINโ disables PLUGIN (comma-separated list) ๐--enable-plugin PLUGINโ enables PLUGIN (comma-separated list) ๐--stdout PLUGINS_STATSโ displays stats to stdout (comma-separated list ofplugins/plugins.attribute) ๐จ๏ธ--export EXPORTโ enables the EXPORT module (comma-separated list) ๐ค--export-csv-file EXPORT_CSV_FILEโ file path for the CSV exporter ๐--export-json-file EXPORT_JSON_FILEโ file path for the JSON exporter ๐งพ--disable-processโ disables the process module (reduces Glances CPU consumption, lowkey a lifesaver) ๐ชซ--disable-webuiโ disables the Web UI (only the RESTful API will respond) ๐ซ--light,--enable-lightโ light mode for the Curses UI (disables all but the top menu) ๐ชถ-0,--disable-irixโ task's CPU usage will be divided by the total number of CPUs โ-1,--percpuโ starts Glances in per CPU mode ๐ง-2,--disable-left-sidebarโ disables the network, disk I/O, FS and sensors modules ๐ซ-3,--disable-quicklookโ disables the quick look module ๐-4,--full-quicklookโ disables all but quick look and load ๐-5,--disable-topโ disables the top menu (QuickLook, CPU, MEM, SWAP, and LOAD) ๐-6,--meangpuโ starts Glances in mean GPU mode ๐ฎ--disable-boldโ disables bold mode in the terminal โ๏ธ--disable-bgโ disables background colors in the terminal ๐จ--enable-process-extendedโ enables extended stats on the top process ๐ฌ-c CLIENT,--client CLIENTโ connects to a Glances server by IPv4/IPv6 address, hostname orhostname:port๐-s,--serverโ runs Glances in server mode ๐ฅ๏ธ--browserโ starts the TUI Central Glances Browser; useโbrowser -wto start the WebUI Central Glances Browser ๐--disable-autodiscoverโ disables the autodiscover feature ๐ต๏ธ-p PORT,--port PORTโ defines the client/server TCP port [default:61209] ๐ข-B BIND_ADDRESS,--bind BIND_ADDRESSโ binds the server to the given IPv4/IPv6 address or hostname ๐ชข--usernameโ defines a client/server username ๐ค--passwordโ defines a client/server password ๐--snmp-community SNMP_COMMUNITYโ SNMP community ๐ก--snmp-port SNMP_PORTโ SNMP port ๐ก--snmp-version SNMP_VERSIONโ SNMP version (1,2cor3) ๐ก--snmp-user SNMP_USERโ SNMP username (only for SNMPv3) ๐ค--snmp-auth SNMP_AUTHโ SNMP authentication key (only for SNMPv3) ๐--snmp-forceโ forces SNMP mode ๐ช-t TIME,--time TIMEโ sets the refresh time in seconds [default:3 sec] โฑ๏ธ-w,--webserverโ runs Glances in web server mode (FastAPI lib needed) ๐--enable-mcpโ enables the MCP (Model Context Protocol) server alongside the web server (mcp package needed, see MCP (Model Context Protocol) server <#api-mcp>) ๐ค--mcp-path MCP_PATHโ sets the MCP server mount path [default:/mcp] ๐ค๏ธ--cached-time CACHED_TIMEโ sets the server cache time [default:1 sec] โณ--open-web-browserโ tries to open the Web UI in the default Web browser ๐ช-q,--quietโ does not display the curses interface ๐คซ-f PROCESS_FILTER,--process-filter PROCESS_FILTERโ sets the process filter pattern (regular expression) ๐--process-short-nameโ forces short names for process names โ๏ธ--hide-kernel-threadsโ hides kernel threads in the process list (not available on Windows) ๐-b,--byteโ displays network rate in bytes per second ๐ข--diskio-show-ramfsโ shows RAM FS in the DiskIO plugin ๐พ--diskio-iopsโ shows I/O per second in the DiskIO plugin ๐--fahrenheitโ displays temperature in Fahrenheit (default is Celsius) ๐ก๏ธ--fs-free-spaceโ displays FS free space instead of used ๐--theme-whiteโ optimizes display colors for a white background ๐ค--disable-check-updateโ disables the online Glances version check ๐ซ
๐ฎ INTERACTIVE COMMANDS ๐ฎ
bestie these are the keys you can press while you're in Glances, and honestly there are so many, it's giving keyboard smash (but like, the good kind) โจ๏ธโจ
ENTERโ set the process filter
๐ note: on macOS please use CTRL+H to delete the filter. not a vibe but it is what it is.
the filter is a regular expression pattern, so:
gnomematches all processes starting with thegnomestring.*gnome.*matches all processes containing thegnomestring
aโ sort the process list automatically ๐ค- if
CPU >70%, sort processes by CPU usage - if
MEM >70%, sort processes by MEM usage - if
CPU iowait >60%, sort processes by I/O read and write
- if
Aโ enable/disable the Application Monitoring Process ๐ฑbโ switch betweenbit/sorByte/sfor network I/O ๐Bโ view disk I/O counters per second ๐ฝcโ sort processes by CPU usage ๐งCโ enable/disable cloud stats โ๏ธdโ show/hide disk I/O stats ๐พDโ enable/disable Docker stats ๐ณeโ enable/disable top extended stats ๐ฌEโ erase the current process filter ๐งฝfโ show/hide file system and folder monitoring stats ๐๏ธFโ switch between file system used and free space ๐gโ generate graphs for current history ๐Gโ enable/disable GPU stats ๐ฎhโ show/hide the help screen ๐iโ sort processes by I/O rate ๐Iโ show/hide IP module ๐+โ increase the selected process nice level / lower the priority (need right) โ only in standalone mode โฌ๏ธ-โ decrease the selected process nice level / higher the priority (need right) โ only in standalone mode โฌ๏ธkโ kill the selected process (need right) โ only in standalone mode ๐Kโ show/hide TCP connections ๐lโ show/hide log messages ๐mโ sort processes by MEM usage ๐งฎMโ reset the processes summary min/max ๐nโ show/hide network stats ๐กNโ show/hide current time ๐pโ sort processes by name ๐คPโ enable/disable ports stats ๐q/ESC/CTRL-Cโ quit the current Glances session ๐Qโ show/hide IRQ module โกrโ reset history ๐Rโ show/hide RAID plugin ๐๏ธsโ show/hide sensors plugin ๐ก๏ธSโ enable/disable spark lines โจtโ sort processes by CPU times (TIME+) โฑ๏ธTโ view network I/O as a combination ๐งฉuโ sort processes by USER ๐ฅUโ view cumulative network I/O โVโ show/hide VMS plugin ๐ฅ๏ธwโ delete finished warning log messages ๐๏ธWโ show/hide Wifi module ๐ถxโ delete finished warning and critical log messages ๐๏ธ๐ฅzโ show/hide processes stats ๐0โ enable/disable Irix/Solaris mode
task's CPU usage will be divided by the total number of CPUs โ
1โ switch between global CPU and per-CPU stats ๐ง2โ enable/disable the left sidebar ๐3โ enable/disable the quick look module ๐4โ enable/disable all but quick look and load module ๐5โ enable/disable the top menu (QuickLook, CPU, MEM, SWAP, and LOAD) ๐6โ enable/disable mean GPU mode ๐ฎ9โ switch the UI theme between black and white ๐ค๐ค/โ switch between process command line or command name ๐F5orCTRL-Rโ refresh the user interface ๐SHIFT-LEFTโ navigation left through the process sort โฌ ๏ธSHIFT-RIGHTโ navigation right through the process sort โก๏ธLEFTโ navigation left through the process name โฌ ๏ธRIGHTโ navigation right through the process name โก๏ธUPโ up in the processes list โฌ๏ธDOWNโ down in the processes list โฌ๏ธ
and in the Glances client browser (you get there with the --browser command-line argument, bestie) ๐ฆ:
ENTERโ run the selected server โถ๏ธUPโ up in the servers list โฌ๏ธDOWNโ down in the servers list โฌ๏ธq/ESCโ quit Glances ๐
๐ CONFIGURATION ๐
good news: no configuration file is mandatory to use Glances ๐ like, she just works, no setup required.
but also โ a configuration file is needed to access more settings ๐. so if you want the extra stuff, you're gonna want one ๐ซถ
๐ LOCATION
Note ๐ซถ โ there's a template waiting for you in the/usr{,/local}/share/doc/glances(Unix-like) directory, or you can grab it straight from GitHub athttps://raw.githubusercontent.com/nicolargo/glances/master/conf/glances.conf.
So here's where you're allowed to drop your glances.conf file, per OS โ screenshot this, bestie:
Linux, SunOS ๐
~/.config/glances//etc/glances//usr/share/doc/glances/
*BSD ๐ฆ
~/.config/glances//usr/local/etc/glances//usr/share/doc/glances/
macOS ๐
~/.config/glances/~/Library/Application Support/glances//usr/local/etc/glances//usr/share/doc/glances/
Windows ๐ช
%APPDATA%\glances\glances.conf
All โจ
<venv_root_folder>/share/doc/glances/
Couple of Windows lore drops:
- On Windows XP,
%APPDATA%isC:\Documents and Settings\<USERNAME>\Application Data. - On Windows Vista and later it's
C:\Users\<USERNAME>\AppData\Roaming.
And the hierarchy, which is so important: user-specific options override system-wide options, and options given on the command line override both. Like, command line is the main character fr fr. ๐
โจ SYNTAX
Glances reads its configuration files in the ini syntax. Very demure, very classic. ๐ง
There's a first section (called global) that's always available:
[global]
# Refresh rate (default is a minimum of 2 seconds)
# Can be overwritten by the -t <sec> option
# It is also possible to overwrite it in each plugin section
refresh=2
# Should Glances check if a newer version is available on PyPI ?
check_update=true
# History size (maximum number of values)
# Default is 1200 values (~1h with the default refresh rate)
history_size=1200
# Set the way Glances should display the date (default is %Y-%m-%d %H:%M:%S %Z)
#strftime_format="%Y-%m-%d %H:%M:%S %Z"
# Define external directory for loading additional plugins
# The layout follows the glances standard for plugin definitions
#plugin_dir=/home/user/dev/plugins
Then a second one concerning the user interface:
[outputs]
# Options for all UIs
#--------------------
# Separator in the Curses and WebUI interface (between top and others plugins)
separator=True
# Set the the Curses and WebUI interface left menu plugin list (comma-separated)
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
# Limit the number of processes to display (in the WebUI)
max_processes_display=25
# Options for WebUI
#------------------
# Set URL prefix for the WebUI and the API
# Example: url_prefix=/glances/ => http://localhost/glances/
# Note: The final / is mandatory
# Default is no prefix (/)
#url_prefix=/glances/
# Set root path for WebUI statics files
# Why ? On Debian system, WebUI statics files are not provided.
# You can download it in a specific folder
# thanks to https://github.com/nicolargo/glances/issues/2021
# then configure this folder with the webui_root_path key
# Default is folder where glances_restful_api.py is hosted
#webui_root_path=
# CORS options
# Comma separated list of origins that should be permitted to make cross-origin requests.
# Default is *
#cors_origins=*
# Indicate that cookies should be supported for cross-origin requests.
# Default is True
#cors_credentials=True
# Comma separated list of HTTP methods that should be allowed for cross-origin requests.
# Default is *
#cors_methods=*
# Comma separated list of HTTP request headers that should be supported for cross-origin requests.
# Default is *
#cors_headers=*
# Define SSL files (keyfile_password is optional)
#ssl_keyfile=./glances.local+3-key.pem
#ssl_keyfile_password=kfp
#ssl_certfile=./glances.local+3.pem
Each plugin, export module, and application monitoring process (AMP) can have a section of its own. Obsessed honestly. Here's the CPU plugin, looking all cute:
[cpu]
disable=False
refresh=3
user_careful=50
user_warning=70
user_critical=90
iowait_careful=50
iowait_warning=70
iowait_critical=90
system_careful=50
system_warning=70
system_critical=90
steal_careful=50
steal_warning=70
steal_critical=90
An InfluxDB export module:
[influxdb]
# Configuration for the --export influxdb option
# https://influxdb.com/
host=localhost
port=8086
user=root
password=root
db=glances
prefix=localhost
#tags=foo:bar,spam:eggs
Or a Nginx AMP:
[amp_nginx]
# Nginx status page should be enabled (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
one_line=false
status_url=http://localhost/nginx_status
๐ช Dynamic configuration values
With Glances 3.0 or higher, you can use dynamic configuration values by utilizing system commands. Which is genuinely iconic behavior ngl.
Say you want the prefix of an InfluxDB export to be the current hostname โ do this:
[influxdb]
...
prefix=`hostname`
Or if you want to add the Operating System name as a tag:
[influxdb]
...
tags=system:`uname -a`
๐ LOGGING
Glances logs all of its internal messages to a log file. Every thought, documented. ๐
DEBUG messages can be logged using the -d option on the command line.
The location of the Glances log file depends on your operating system. You can display the full path of the Glances log file using the glances -V command line. Handy!
The file is automatically rotated when its size exceeds 1 MB. Self-care. ๐ธ
If you want to use another system path or change the log message, you can use your own logger configuration. First of all, you have to create a glances.json file with, for example, the following content (JSON format):
{
"version": 1,
"disable_existing_loggers": "False",
"root": {
"level": "INFO",
"handlers": ["file", "console"]
},
"formatters": {
"standard": {
"format": "%(asctime)s -- %(levelname)s -- %(message)s"
},
"short": {
"format": "%(levelname)s: %(message)s"
},
"free": {
"format": "%(message)s"
}
},
"handlers": {
"file": {
"level": "DEBUG",
"class": "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"filename": "/var/tmp/glances.log"
},
"console": {
"level": "CRITICAL",
"class": "logging.StreamHandler",
"formatter": "free"
}
},
"loggers": {
"debug": {
"handlers": ["file", "console"],
"level": "DEBUG"
},
"verbose": {
"handlers": ["file", "console"],
"level": "INFO"
},
"standard": {
"handlers": ["file"],
"level": "INFO"
},
"requests": {
"handlers": ["file", "console"],
"level": "ERROR"
},
"elasticsearch": {
"handlers": ["file", "console"],
"level": "ERROR"
},
"elasticsearch.trace": {
"handlers": ["file", "console"],
"level": "ERROR"
}
}
}
and start Glances using the following command line:
LOG_CFG=<path>/glances.json glances
Note ๐ โ Replace<path>with the directory where yourglances.jsonfile is hosted.
๐ EXAMPLES
Okay these are the fun ones, live a little. ๐
Monitor local machine, also called standalone mode, with the Text-based user interface (TUI):
$ glances
To monitor the local machine with the Web user interface (WebUI), run the following command line:
$ glances -w
then, open a Web Browser to the provided URL. Slay. ๐ฅ
Monitor local machine and export stats to a CSV file:
$ glances โexport csv โexport-csv-file /tmp/glances.csv
Monitor local machine and export stats to an InfluxDB server with 5s refresh time (also possible to export to OpenTSDB, Cassandra, Statsd, ElasticSearch, RabbitMQ, and Riemann โ we love options):
$ glances -t 5 โexport influxdb
It is also possible to export stats to multiple endpoints:
$ glances -t 5 โexport influxdb,statsd,csv
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:
$ glances -c <ip_server> โexport statsd
Start the TUI Central Glances Browser:
$ glances โbrowser
Start the WebUI Central Glances Browser (new in Glances 4.3 or higher โจ):
$ glances โbrowser -w
If you do not want to see the local Glances Web Server in the browser list please use โdisable-autodiscover option.
๐ AUTHOR
Nicolas Hennion aka Nicolargo โ contact@nicolargo.com ๐
๐ COPYRIGHT ๐
okay so the legal bit, bestie โ keep it cute, keep it exact:
Copyright 2026, Nicolas Hennion
that's it, that's the whole section. slay. ๐
and that's a wrap on GLANCES(1)!! ๐ฆ this page is from version 4.5.8, dated Oct 11, 2026 โ like, literally the whole source/version + date footer, but make it a sign-off instead of a boring bottom line โจ go forth and glances at everything, you absolute icon ๐๐
๐ฆ where this page comes from
- arch rolling: glances 4.5.8-1 ยท LGPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms