--- title: Glances created: 2026-06-06 updated: 2026-06-06 type: app tags: [catalogue, monitoring, system, python, lightweight, auto-hebergement] confidence: high contested: false sources: [https://selfh.st/apps/?tag=Monitoring, https://github.com/nicolargo/glances] --- # 📊 Glances > **Monitoring système tout-en-un** en CLI + web : CPU, RAM, disk, réseau, processes, containers. Par le français **Nicolas Hennion**. ## 📋 Informations Générales | Champ | Valeur | | :--- | :--- | | **Site web** | [nicolargo.github.io/glances](https://nicolargo.github.io/glances/) | | **GitHub** | [nicolargo/glances](https://github.com/nicolargo/glances) | | **License** | Custom (gratuit) | | **Langage** | Python | | **Étoiles GitHub** | 33k ⭐ | | **Dernière MAJ** | 2026-06-06 | | **Catégorie** | [[cat-monitoring|Monitoring]], Server Management | ## 📝 Description **Glances** est un outil de **monitoring système** ultra-léger qui combine : - ✅ **CLI interactive** (comme `htop` mais en plus complet) - ✅ **Web UI** (accessible depuis un navigateur) - ✅ **API REST** (pour intégrations) - ✅ **Client/Serveur** : surveiller des machines distantes - ✅ **Export Prometheus, InfluxDB, CSV, JSON** - ✅ **Auto-détection** : containers Docker, sensors, GPU... - ✅ **Alertes** configurables - ✅ **Plugins** : monitoring de services spécifiques (Nginx, MySQL, etc.) - ✅ **Multi-plateforme** : Linux, macOS, Windows **Différence avec [[app-netdata]]** : Netdata = milliers de métriques très détaillées. Glances = essentiel, simple, scriptable. **Différence avec `htop`** : Glances va **beaucoup plus loin** (réseau, disk I/O, sensors, containers), sans complexité. ## 🚀 Installation ### Option 1 : Docker Compose (recommandé) ```yaml # docker-compose.yml version: '3.8' services: glances: image: nicolargo/glances:latest container_name: glances restart: unless-stopped pid: host privileged: true volumes: - /var/run/docker.sock:/var/run/docker.sock:ro environment: - GLANCES_OPT=-w ports: - "61208:61208" labels: - "traefik.enable=true" - "traefik.http.routers.glances.rule=Host(`glances.example.com`)" - "traefik.http.routers.glances.entrypoints=websecure" - "traefik.http.routers.glances.tls.certresolver=letsencrypt" ``` ### Option 2 : pip (Python) ```bash pip install glances glances -w # Web mode ``` ### Option 3 : apt (Debian/Ubuntu) ```bash sudo apt install glances glances ``` ## ⚙️ Configuration Initiale 1. **Lancer Glances** (Docker Compose ou natif) 2. **CLI** : `glances` (par défaut) 3. **Web** : `glances -w` (port 61208) 4. **API** : `glances -w --disable-plugin` (puis query `http://IP:61208/api/...`) 5. **Configurer les seuils d'alerte** : dans `glances.conf` ## 🔄 Alternatives ### Open Source - [[app-netdata]] — Plus détaillé, plus de métriques - [[app-prometheus]] — Pour stack pro / long terme - **htop** — Plus basique - **btop** — UI moderne en terminal ### Comparaison Glances vs Netdata | Critère | Glances | Netdata | | :--- | :--- | :--- | | Métriques | Essentielles (50+) | Très nombreuses (1000+) | | UI web | ✅ Simple | ✅ Magnifique | | CLI | ✅ Interactive | ⚠️ Limité | | API | ✅ REST complète | ✅ | | Export | Prometheus, InfluxDB, CSV | Prometheus | | Setup | 30 sec | 30 sec | | Overhead | Faible | Très faible | | Public cible | Sysadmins, devs | Tous | **Verdict** : Glances pour la **simplicité** et le **scripting**. Netdata pour la **richesse** des métriques. ### Propriétaires (ce que Glances remplace) - **Datadog Agent** (en partie) - **New Relic Infrastructure** ## 🔐 Sécurité - **Pas d'auth par défaut** : mettre derrière [[app-traefik]] + auth - **API key** optionnelle - **HTTPS** via reverse proxy ## 📚 Ressources - [Documentation officielle](https://glances.readthedocs.io/) - [GitHub nicolargo/glances](https://github.com/nicolargo/glances) - [Docker Hub](https://hub.docker.com/r/nicolargo/glances) ## Pages Liées - [[cat-monitoring]] — Catégorie Monitoring - [[app-netdata]] — Concurrent plus détaillé - [[observabilite]] — Concepts - [[checklist-monitoring-minimal]] — Checklist