MirrorNest
← Tous les guides

Netdata

Netdata is a real-time infrastructure monitoring agent that auto-detects thousands of metrics per second with zero configuration and visualizes them in a live, per-second dashboard.

Système : Any Docker hostMonitoringSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de Netdata, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  1. 1Run the Netdata Agent container

    Netdata's official Docker image needs host-level access (PID/network namespaces and several read-only mounts) to report accurate system, container, and log metrics.

    docker run -d --name=netdata \ --pid=host \ --network=host \ -v netdataconfig:/etc/netdata \ -v netdatalib:/var/lib/netdata \ -v netdatacache:/var/cache/netdata \ -v /:/host/root:ro,rslave \ -v /etc/passwd:/host/etc/passwd:ro \ -v /etc/group:/host/etc/group:ro \ -v /etc/localtime:/etc/localtime:ro \ -v /proc:/host/proc:ro \ -v /sys:/host/sys:ro \ -v /etc/os-release:/host/etc/os-release:ro \ -v /var/log:/host/var/log:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -v /run/dbus:/run/dbus:ro \ --restart unless-stopped \ --cap-add SYS_PTRACE \ --cap-add SYS_ADMIN \ --security-opt apparmor=unconfined \ netdata/netdata

    If you drop --pid=host for isolation reasons, add --init instead so zombie processes are reaped correctly.

  2. 2Open the dashboard

    Netdata starts collecting immediately after the container is up — no extra configuration is required for local system metrics.

    curl http://localhost:19999/api/v1/info

    Visit http://NODE:19999 in a browser, replacing NODE with the server's IP or hostname.