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 of plugins/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 or hostname:port ๐Ÿ”Œ
  • -s, --server โ€” runs Glances in server mode ๐Ÿ–ฅ๏ธ
  • --browser โ€” starts the TUI Central Glances Browser; use โ€“browser -w to 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, 2c or 3) ๐Ÿ“ก
  • --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:

  • gnome matches all processes starting with the gnome string
  • .*gnome.* matches all processes containing the gnome string
  • 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
  • A โ€” enable/disable the Application Monitoring Process ๐Ÿ“ฑ
  • b โ€” switch between bit/s or Byte/s for 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 ๐Ÿ”€
  • F5 or CTRL-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 at https://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% is C:\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 your glances.json file 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 ๐Ÿ’–

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