Glances
Active and stableRuns locally ✓No paid APIMonitor CPU, memory, disk, network, processes, and containers from a terminal or Web UI, with optional REST and exports.
pip install glancesIdeal use for this tool
Best for a developer or small-server operator who wants to diagnose a slow host or container from one local dashboard, then add Web access or exports when needed. Its value is linking resources with processes. It is not a replacement for fleet-wide retention and centralized alerting.
Details and illustrated features
When a workstation or small server slows down, you often assemble the picture from separate commands: one for CPU, another for memory, then disk, network, and processes. Glances puts those signals in one terminal dashboard and can extend them to a Web UI, REST API, and remote monitoring. Its practical value is a fast first view before you build or open a larger monitoring stack, with no required cloud account or subscription.

Original overview diagram, not a screenshot from a live machine.
🧭 What is Glances and how does it work?
Glances is an open-source system monitor written in Python for GNU/Linux, BSD, macOS, and Windows. It reads system information through libraries such as psutil and displays CPU, memory, load, disks, file systems, network, processes, and logged-in users. Optional dependencies add sensors, batteries, GPUs, containers, SMART disks, RAID, and other features when the operating system and permissions support them.
The simplest mode is local: run glances in a terminal. It needs no Web server or external account. For remote viewing, you can run Web mode, query the REST API, or use client/server mode. Optional exporters send selected statistics to files, time-series databases, or messaging systems. Glances 4.5 also offers an optional MCP server so a compatible AI assistant can query metrics, but MCP is not required for basic monitoring.
Glances is not a complete replacement for Prometheus, Grafana, or a distributed observability platform. It is strong at immediate inspection. Long retention, centralized alerts, high availability, and fleet management need exporters or other systems.
🎯 When is it useful?
It fits a developer diagnosing a slow local environment, a home-server operator checking resources and containers, or a small team that wants a lightweight metrics endpoint before committing to a full monitoring stack. For example, an API becomes slow after a background worker starts. Glances shows stable memory but a sharp CPU increase in the worker process, so you can inspect that worker's logs and profiler instead of changing unrelated settings.
The added value is context, not simply more numbers. You can see a resource spike and connect it to the process, disk, network interface, or container involved. If you already run a mature Prometheus and Grafana setup, Glances may still be useful as a terminal inspection tool rather than another central platform.
🌟 Features and how to use them
1. An adaptive terminal dashboard
Run glances for a curses dashboard that adapts to the terminal size. Available sections depend on the operating system and installed dependencies: CPU, memory, load, network, disks, file systems, and processes. Press h to see the shortcuts documented by your installed version, then sort or filter instead of restarting a chain of commands.

Values are illustrative and were not collected from a live host.
The dashboard helps answer the first question: is the constraint compute, memory, I/O, or network? It does not explain a cause by itself. High CPU can be expected work, and memory percentages have different meanings across operating systems. Use the dashboard to begin an investigation, not to make a final diagnosis.
2. Sort and filter the process list
Glances shows processes with CPU, memory, status, and I/O fields where the platform provides them. Sorting moves the question from “the machine is slow” to “this process is consuming the resource now.” You can then open the relevant application logs or profiler.

The names and values are examples, not output from an actual system.
Process command lines can include secrets passed as arguments. That matters when a Web UI or API is visible to other users. Treat process data as sensitive, and avoid putting passwords or tokens on command lines when possible.
3. Web UI and REST API for another device
Install the Web extra and start the stable release in Web mode. The service provides a responsive dashboard and a REST API on port 61208 by default. This is convenient for a headless or home server, but it changes the exposure from a local terminal session to a network service.

The diagram shows the data path; it does not assume a trusted network or enabled authentication.
The 4.5.8 documentation warns that an unauthenticated Web server reachable from an untrusted network exposes sensitive system data. Bind to 127.0.0.1 for local viewing. For remote access, enable password or JWT authentication as appropriate, configure the documented host allowlist and CORS settings, and put a trusted reverse proxy with TLS in front of semi-public or public access. Check the exact configuration names for your version: the 4.5 series includes security changes around Host validation and CORS.
4. Optional container, GPU, and sensor monitoring
Specific extras can add Docker, Podman, LXC, supported GPUs, sensors, SMART, and RAID. On a small server, you can compare a container's state and usage with host resources to see whether pressure comes from the application, database, or another service.

Availability depends on hardware, operating system, dependencies, and permissions.
These features are not all part of the minimal installation. Docker monitoring requires access to a Docker socket or API, which is a sensitive capability. Official container examples may mount sockets or use host PID and network namespaces. Understand each mount and capability before copying an example, and use read-only access when it is sufficient. Some hardware data needs system utilities or device files that are unavailable inside a sandbox.
5. REST and exporters for a lightweight pipeline
Web mode exposes metric endpoints, while optional modules export to CSV, JSON, Prometheus, InfluxDB, MQTT, Kafka, and other destinations. This lets you start with local diagnosis and send only metrics that need history to a specialized system. Do not install glances[all] automatically on every host; choose the extras you actually need to reduce dependencies and maintenance surface.

The diagram summarizes documented options; the basic installation does not configure every integration.
Export adds network traffic, destination credentials, and operating cost. Store credentials through an appropriate secret mechanism, grant the least privilege, and test destination failures. Each exporter can also have its own dependency and compatibility constraints.
6. Optional MCP server for AI assistants
In 4.5.8, install the mcp extra and enable the MCP server alongside Web mode with the documented --enable-mcp option. A compatible assistant can then query Glances instead of asking you to paste numbers manually. This is not guaranteed automated diagnosis; the model sees only the data you expose and can still interpret it incorrectly.
Treat MCP as another monitoring API. Keep it local or behind access controls, configure the allowed hosts, and do not grant an AI client access to a production host merely because it supports the protocol. Glances 4.5 releases fixed security issues involving credential disclosure across REST, XML-RPC, MCP, and exporters, so use the current stable version and read release notes.
🪜 Example: find a worker using CPU
Illustrative; not executed on a live machine: a development host runs a Python API, a background worker, and PostgreSQL.
- Create a Python virtual environment and install the basic Glances package.
- Run
glanceslocally and watch CPU, memory, and load while reproducing the slowdown. - Sort processes by CPU. Note the process and PID, then compare the spike with application logs.
- If the worker is in a container, add the container extra and provide only the read access required. Do not use broad container privileges by default.
- Keep the Web UI off if the terminal is sufficient. If it must be shared, begin with localhost and a trusted tunnel or reverse proxy, then add authentication and host restrictions.
- If you need several days of history, export a small set of metrics to a time-series destination. Glances alone is not a durable history store.
- Fix the application issue, reproduce the case again, and compare the trend. One lower number is not a functional test.
⚖️ What changes compared with manual commands?
| Task | Separate commands | With Glances |
|---|---|---|
| First view | Combine top, free, df, iostat, and network tools | One dashboard links resources and processes |
| Remote host | SSH and repeat commands | Secured Web UI, client/server mode, or API |
| Containers and hardware | Different tools per resource | Optional plugins in one interface |
| Reuse the data | Copy values or write scripts | REST and optional exporters |
| History and alerts | Build them yourself | Requires an exporter or external platform; not complete in Glances alone |
This is a workflow comparison, not a measured time-saving claim or a guarantee that Glances will identify the root cause.
🚀 Installation and first use
Glances 4.5.8 requires Python 3.10 or later. The project recommends a virtual environment when installing from PyPI:
python3 -m venv ~/.venv-glances
source ~/.venv-glances/bin/activate
pip install glances
glances
Install only the Web extra when that is what you need:
pip install 'glances[web]'
glances -w
Choose the documented container or MCP extras for those features. Homebrew, distribution packages, and Docker images are available, but distribution packages can lag or include only basic plugins. For Docker, pin a release tag instead of a dev image in production, and review socket mounts, --pid host, --network host, and any --privileged option. I did not install or run Glances for this entry, so these commands and integrations are not claimed as tested here.
🔐 Privacy, permissions, and security
Local terminal mode requires no Glances account and does not automatically send metrics to a central service. However, Glances reads sensitive system information: processes, command lines, connections, mounted file systems, containers, and hardware details depending on plugins. Web, REST, MCP, and exporters make some of that data available to a network client or destination you configure.

This is guidance for narrowing exposure, not a security audit of a specific deployment.
Start with the fewest privileges and smallest network surface. Do not publish the port directly to the Internet. Enable authentication, configure the host allowlist documented by your release, restrict CORS, and terminate TLS at a trusted reverse proxy. Update older installations: the 4.5 release history includes fixes for command injection, credential leakage, DNS rebinding, CORS, SQL injection, and exporter issues. A current release is not risk-free, but it is a reasonable baseline before exposure.
💰 Cost, license, and activity
Glances is free and open source under LGPL-3.0-only. Local operation does not require a paid API. A server, time-series database, AI service, or cloud destination you choose may have separate costs.
The stable release checked for this entry is 4.5.8, released on 11 October 2026. The develop branch describes Glances 5 as a beta, so this entry uses 4.5.8 and does not recommend version 5 for production. On 7 November 2026, GitHub displayed rounded counts of 33.9k stars and 1.8k forks, with recent repository and release activity. Popularity counts change and are neither quality ratings nor security certifications.
⚠️ Limits and when to choose something else
- Some metrics may be partial or unavailable because of the OS, kernel, hardware, or permissions.
- The full extra adds many dependencies; install only what you need.
- An unprotected Web UI or API can expose sensitive data.
- Live metrics do not replace long-term retention and centralized alerting.
- Glances 5 beta changes APIs from version 4; do not follow
developdocumentation while running 4.5.8 without checking. toporhtopmay be enough for one local host, while Prometheus and Grafana fit long retention and central alerts better.
📚 Sources and verification date
Original repository and README · 4.5.8 release · Installation · Quickstart and security · REST API and authentication · Docker · PyPI · License metadata. Sources checked 7 November 2026. The installation and example were not executed; commands and limits come from the project's stable-release documentation.