selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Glances logo

Self-host Glances

v4.5.9

Cross-platform system monitoring with web interface and API

BetaOpen SourceLGPL-3.0
Updatedlast week
LanguagePython
Setup difficultyModerate
Stars
33 960
Port
61208 (Web server and RESTful API)
Requires
Psutil, Python 3.10+
Docker
nicolargo/glances
Install with Docker
Glances terminal user interface showing system metricsGlances web dashboard with CPU memory load statisticsGlances web UI displaying system monitoring data

What is Glances?

An open-source Python application that monitors system metrics across GNU/Linux, BSD, macOS, and Windows. It displays real-time statistics for CPU usage, memory consumption, disk I/O, network interfaces, running processes, temperatures, voltages, fan speeds, and connected users. The software includes a built-in Web server with a browser-based dashboard accessible at port 61208, plus a RESTful JSON API at /api/5. Users can export data to external time-series databases like InfluxDB, Cassandra, ClickHouse, PostgreSQL/TimeScale, ElasticSearch, Prometheus, Graphite, or message brokers including RabbitMQ, NATS, Kafka.

Glances alternatives

Should you self-host Glances?

Glances scores 76/100 on selfhost.directory (how scoring works) and ranks #12 of 105 in Monitoring & observability. It has 33 960 GitHub stars, +196 in the last 30 days.

It shipped 9 stable releases in the past year. The latest, v4.5.9, came out on 7 November 2026. New versions land roughly every 3 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is LGPL-3.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is prometheus (92/100, 67 639 stars). It scores higher overall, so compare the two before you pick. See Glances vs prometheus side by side.

Glances README

Glances

An Eye on your System

Important

The current stable release is Glances 4.5.9: see the v4.5.9 tag for its source code and documentation. pip install glances installs it.

This branch (develop) contains Glances 5.0.0, currently in beta. For a quick comparaison between Glances 4 and Glances 5, have a look to this page. The rest of this page describes Glances 5.

Warning

Try Glances 5 (beta) — for testing only:

  • it is a beta: expect bugs, and do not use it in production;
  • the API is broken compared to Glances 4: the REST API moves from /api/4 to /api/5, the Python API is new, and a Glances 5 client only talks to a Glances 5 server (no XML-RPC anymore);
  • configuration files from Glances 4 are read, but some options changed.

Install the beta from TestPyPI in a dedicated virtual environment (dependencies still come from PyPI):

python3 -m venv ~/.venv-glances5
source ~/.venv-glances5/bin/activate
pip install --pre --index-url https://test.pypi.org/simple/ \
    --extra-index-url https://pypi.org/simple/ 'glances[web]>=5.0.0b1'
glances --version

Or run the nicolargo/glances:dev Docker image (built from this branch). Please report what you find in the GitHub issues.

How to install Glances

Install Glances with Docker

Environment variables
GLANCES_OPT, TZ, PYTHONPYCACHEPREFIX

docker run -d --restart="always" -p 61208:61208 -e TZ="${TZ}" -e GLANCES_OPT="-w --enable-mcp" -v /var/run/docker.sock:/var/run/docker.sock:ro -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro --pid host nicolargo/glances:latest-full

How to configure Glances

  • refresh2Stats refresh rate in seconds (default 2)
  • history_size1200History size maximum number of values
  • bind_address0.0.0.0Address the server listens on
  • port61208Port the server listens on
  • passwordHTTP Basic authentication password hash

Glances releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

I cannot reach the Web UI from another machine?

Start the server with -B 0.0.0.0 or bind_address=0.0.0.0 to listen on all interfaces.

Webserver display a blank screen on Debian/Ubuntu?

Install from PyPI or use Docker images which include the Web UI static files.

Container memory stats not displayed?

On ARM64, Docker needs cgroup_enable=memory added to /boot/firmware/cmdline.txt.

Any encoding issue?

Try running Glances with LANG=en_US.UTF-8 LC_ALL set.

More in Monitoring & observability

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…