← Alle Anleitungen
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.
Diese Anleitung basiert auf der offiziellen Dokumentation von Netdata, oben verlinkt — überprüfe dort immer die genauen Paket-/Versionsnamen, bevor du diese Befehle auf einem Produktionsserver ausführst, da sich Distributions- und Projektversionen mit der Zeit ändern.
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/netdataIf you drop --pid=host for isolation reasons, add --init instead so zombie processes are reaped correctly.
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/infoVisit http://NODE:19999 in a browser, replacing NODE with the server's IP or hostname.