explaingit

nicolargo/glances

📈 Trending32,575PythonAudience · ops devopsComplexity · 2/5ActiveLicenseSetup · hard

TLDR

A system monitoring dashboard for your terminal that shows CPU, memory, disk, network, and process stats in real-time, with modes for local viewing, remote monitoring, web interface, and API access.

Mindmap

mindmap
  root((Glances))
    What it does
      Real-time system stats
      CPU memory disk network
      Process and container view
    Operation modes
      Standalone local mode
      Client server remote
      Web browser interface
      RESTful API access
    Data export
      InfluxDB Prometheus
      CSV JSON output
      Grafana integration
    Tech stack
      Python application
      Plugin architecture
      Docker LXC support
    Use cases
      Server monitoring SSH
      Dashboard data source
      Automated alerting
      Custom metrics

Things people build with this

USE CASE 1

Monitor a remote Linux server over SSH without installing heavy monitoring infrastructure.

USE CASE 2

Export system metrics to Prometheus or InfluxDB for visualization in Grafana dashboards.

USE CASE 3

Track CPU, memory, and disk usage of Docker containers alongside host processes in one view.

USE CASE 4

Query system stats programmatically via REST API or Python library for custom automation scripts.

Tech stack

PythonInfluxDBPrometheusDockerLXC

Getting it running

Difficulty · hard Time to first run · 1h+

Requires InfluxDB and Prometheus services running; Docker/LXC setup needed for remote monitoring features.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice and license text.

In plain English

Glances is a system monitoring tool, an alternative to the classic top and htop commands, that gives you a real-time view of what is happening on your computer or server. It shows CPU usage, memory consumption, disk activity, network traffic, running processes, temperatures, fan speeds, and more, all in a single dashboard that fits your terminal window and automatically adapts to the available screen size. What sets Glances apart from basic tools like top is its range of operation modes. In standalone mode, you run it locally and see your own machine's stats. In client/server mode, you can point it at a remote machine over the network and monitor it from your terminal. It also has a web interface mode where it starts a small HTTP server and displays the same dashboard in any browser at the machine's IP address. A RESTful API comes included, so you can query stats programmatically from other tools or scripts. Recent versions also expose an MCP server endpoint, which lets AI assistants query system state directly. Beyond display, Glances can export its data continuously to external systems, including time-series databases like InfluxDB and Prometheus, CSV files, and directly to standard output in JSON format, which makes it useful as a data source for dashboards like Grafana or for automated alerting systems. It supports monitoring Docker and LXC containers alongside regular processes. You would use Glances when you want a quick, comprehensive view of what a Linux, macOS, BSD, or Windows system is doing, especially over SSH on a remote server where you want more information than top provides without setting up a full monitoring stack. It installs via pip, runs as a Python application, has a plugin architecture for adding custom metrics, and can also be used as a Python library in your own code.

Copy-paste prompts

Prompt 1
How do I install and run Glances to monitor my local machine's CPU and memory usage in the terminal?
Prompt 2
Show me how to set up Glances in client/server mode to monitor a remote server over the network.
Prompt 3
How do I configure Glances to export metrics to Prometheus so I can visualize them in Grafana?
Prompt 4
Can I use Glances as a Python library in my own script to fetch system stats programmatically?
Prompt 5
How do I access the Glances web interface to monitor my system from a browser instead of the terminal?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.