Polling-based monitoring tools that scrape host metrics every 15 to 60 seconds routinely miss transient CPU micro-bursts, brief network packet drops, and sub-second NVMe queue stalls. By the time a coarse scrape interval records an elevated load average, the offending process or container spike has often already subsided, leaving system administrators without actionable root-cause data.
Netdata closes this observability gap by running an open-source C and Go monitoring agent directly on your Linux server to collect, compress, and visualize thousands of system, kernel, container, and application metrics at 1-second resolution. Out of the box, it auto-discovers active systemd services, databases, web servers, and Docker containers, trains unsupervised machine learning anomaly models locally on your host, and serves interactive real-time dashboards over TCP port 19999.
This guide covers a production-hardened Netdata v2 deployment on Ubuntu 24.04 LTS (Noble Numbat)—with commands that also apply cleanly to Ubuntu 22.04 LTS and Debian 12 servers: auditing host prerequisites, installing the upstream stable release via the official Netdata kickstart script rather than outdated distribution packages, configuring netdata.conf and multi-tier dbengine retention, enforcing Netdata security on port 19999 and port 8125 behind an SSH tunnel or TLS reverse proxy with user password authentication, monitoring Docker container resource usage, configuring and testing alerts, setting up Parent-Child streaming, and managing updates or clean uninstallation.
1. Netdata Architecture, Local Only Dashboard vs. Cloud, and Bare-Metal Diagnostics
Unlike traditional pull-based monitoring stacks that require separate metric exporters, an external time-series database, and a third-party visualization server before rendering a single graph, every Netdata Agent operates as a self-contained observability node (and in current v2 releases, even includes a built-in local Model Context Protocol endpoint for AI-assisted troubleshooting).
[ Linux Kernel (/proc, /sys, eBPF) + Hardware Sensors + Docker Socket + Web Logs ] | 1-Second Metric Collection (plugins.d / go.d) | v
+--------------------------------------------------------------------------------+
| NETDATA AGENT DAEMON (Ubuntu 24.04 LTS) |
| - Storage Engine: Local tiered dbengine (Tier 0: 1s, Tier 1: 1m, Tier 2: 1h) |
| - Anomaly Engine: On-device unsupervised ML per metric ([ml] subsystem) |
| - Health Watchdog: Threshold & anomaly rules (/etc/netdata/health.d/) |
| - Local Listeners: Web/API TCP 127.0.0.1:19999 & StatsD 127.0.0.1:8125 |
+--------------------------------------------------------------------------------+ | | Option A: Solo SRE Access Option B: Team HTTPS Access Encrypted SSH Local Port Tunnel Nginx / Apache TLS 1.3 Reverse Proxy (ssh -N -L 19999:127.0.0.1:19999) + Bcrypt Basic Auth (.htpasswd) (Optional: Parent Stream / Cloud) Netdata Local Dashboard vs. Netdata Cloud (Clearing Up Local Login Confusion)
When opening the Netdata v2 web interface for the first time, a sign-in prompt for Netdata Cloud appears, causing many administrators to search for a Netdata local login bypass or assume a cloud account is mandatory. You can run a Netdata local server in a strictly local only mode without registering an account:
- Single-Node Local Dashboard: Every Netdata Agent ships with its full local web dashboard on port
19999. Selecting "Skip and use the dashboard anonymously" opens live 1-second charts, historicaldbengineplayback, active alerts, and Anomaly Advisor completely offline without a cloud login. - Multi-Node Local Parent Limit (5-Node Display Cap): When streaming metrics from multiple Child servers to a local Netdata Parent without connecting to a paid Netdata Cloud plan, the local dashboard displays up to 5 active nodes simultaneously; nodes beyond 5 still stream and persist to disk on the Parent, but appear locked in the UI unless selected as preferred nodes or claimed under an active subscription.
- Live Functions Access: While time-series dashboards work anonymously, certain sensitive live Functions tabs (such as interactive process trees or systemd journal log explorers) may require claiming the node or signing in depending on agent policy.
Interpreting Real-Time Metrics on Bare Metal vs. Shared Cloud VPS
One-second granularity surfaces low-level kernel and hardware bottlenecks that 15-second or 60-second polling averages hide:
- CPU Steal Time (
system.cpu→steal): Tracks CPU cycles your Linux kernel waited while a hypervisor scheduled another noisy-neighbor VM on the same physical host. Shared VPS instances frequently exhibit steal spikes under load, whereas single-tenant iRexta bare metal dedicated servers maintain0.0%CPU steal continuously. - Disk I/O Wait vs. Compute Saturation (
system.cpu→iowait&disk_await): High Linux load averages include processes blocked on storage I/O, not just active CPU execution. Comparingiowaitagainst per-driveawaitlatency immediately reveals whether you face a CPU bottleneck or a storage queue bottleneck (see our IOPS vs. throughput storage performance guide). - Reclaimable Page Cache vs. Memory Pressure (
system.ram&mem.psi): Linux uses unallocated RAM for filesystem caching and reclaims it on demand. Watchavailablememory, Pressure Stall Information (PSI), and swap I/O rather than treating cached pages as wasted RAM (see stopping the Linux OOM-Killer on production hosts).
2. Pre-Flight Checks and Installing Netdata on Ubuntu 24.04 LTS
Ubuntu 24.04 LTS includes a netdata package in its standard universe repository (apt install netdata), as do Ubuntu 22.04 and Debian 12, but distribution-packaged versions lag behind upstream Netdata v2 releases and miss recent go.d collectors, UI updates, and modern dbengine defaults. Running the official Netdata kickstart script (kickstart.sh) automatically detects Ubuntu 24.04 (noble), configures Netdata's signed native DEB repository, and installs modular plugin packages cleanly.
2.1 Inspect the Ubuntu Host Before Installation
Verify your Ubuntu release, CPU architecture, free disk space on /var (see auditing disk space on Ubuntu with ncdu), existing packages, and whether TCP port 19999 is free:
cat /etc/os-release
uname -m
free -h
df -hT /var
dpkg -l | grep -i netdata || true
sudo ss -lntp | grep ':19999' || true 2.2 Download, Verify, and Run kickstart.sh on the Stable Channel
Executing kickstart.sh without arguments defaults to bleeding-edge nightly builds, enables unattended daily auto-updates, and enables anonymous usage telemetry. For production Ubuntu 24.04 servers (and identical Ubuntu 22.04 or Debian 12 setups), download the script to /tmp first, inspect its checksum and flags, select the stable release channel, and disable telemetry via DISABLE_TELEMETRY=1:
sudo apt-get update && sudo apt-get install -y curl ca-certificates
# Download the official Netdata kickstart script locally
curl -fsSL https://get.netdata.cloud/kickstart.sh -o /tmp/netdata-kickstart.sh
# Verify script checksums and inspect supported CLI parameters
md5sum /tmp/netdata-kickstart.sh
sha256sum /tmp/netdata-kickstart.sh
sh /tmp/netdata-kickstart.sh --help
# Install Netdata stable release non-interactively with telemetry disabled
sudo env DISABLE_TELEMETRY=1 sh /tmp/netdata-kickstart.sh \ --non-interactive \ --release-channel stable - Integrity Verification: Compare the
md5sumoutput against the verification command on Netdata's official Linux installation page before executing on critical hosts. - Telemetry Opt-Out Marker: Setting
DISABLE_TELEMETRY=1creates/etc/netdata/.opt-out-from-anonymous-statisticsso anonymous reporting stays disabled across upgrades. - Manual Patch Windows: Append
--no-updatesto the installer command if your SRE policy prohibits unattended daily updates. - Offline / Air-Gapped Hosts: For isolated VLANs without internet access, build a static bundle on a connected workstation using
sh /tmp/netdata-kickstart.sh --release-channel stable --prepare-offline-install-source ./netdata-offline, transfer the unmodified folder viascp, and runsudo ./install.shon the target server.
2.3 Confirm Service Health and Active Listeners
sudo systemctl status netdata --no-pager
netdata -v
sudo ss -tulnp | grep netdata 3. Netdata Configuration (netdata.conf Location & v2 dbengine Tiers)
On native Ubuntu and Debian package installations, the configuration directory is /etc/netdata/, and the main Netdata configuration file location is /etc/netdata/netdata.conf (static builds use /opt/netdata/etc/netdata/netdata.conf). Immediately after installation, /etc/netdata/netdata.conf is minimal or empty because the daemon uses compiled-in defaults.
- Persist Overrides Safely: Never edit stock files under
/usr/lib/netdata/conf.d/, as package updates overwrite them. Always runsudo /etc/netdata/edit-config <filename>so custom config files remain inside/etc/netdata/. - Inspect Active Defaults: View the complete live generated configuration at any time via
curl -fsS http://127.0.0.1:19999/netdata.conf | less(or populate a reference template withsudo wget -O /etc/netdata/netdata.conf http://127.0.0.1:19999/netdata.conf).
3.1 Understanding Netdata v2 Multi-Tier dbengine Storage
Older guides frequently show deprecated v1 keys such as memory mode = dbengine, history = 3600, or dbengine multihost disk space. Netdata v2 configures disk-backed storage under [db] using human-readable units (MiB, GiB, d, mo, y) across three progressive resolution tiers:
| Storage Tier | Default Resolution | Aggregation Rule | Recommended Bare-Metal Target |
|---|---|---|---|
| Tier 0 (High-Res) | 1s (per-second) | Raw samples (~0.5–0.6 bytes/sample compressed) | 4GiB / 14d (~1.69 GiB for 2,500 metrics @ 14d) |
| Tier 1 (Mid-Res) | 60s (per-minute) | 60 iterations of Tier 0 | 2GiB / 3mo |
| Tier 2 (Long-Term) | 3600s (per-hour) | 60 iterations of Tier 1 | 1GiB / 2y |
When both retention size and retention time are non-zero, Netdata rotates out the oldest data as soon as whichever limit (time or space) is hit first. Note that size limits are soft targets rather than hard write-time caps, so actual disk usage under /var/cache/netdata may briefly exceed targets during compaction.
3.2 Production netdata.conf Example (7 GiB Disk Target + Extended Cache Telemetry)
Open netdata.conf with edit-config (if placing Netdata behind Nginx in Section 4, setting [logs] access = off also avoids duplicate HTTP access log disk writes):
[db] db = dbengine update every = 1 storage tiers = 3 # Dedicated RAM for uncompressed metric pages and compressed extent blocks dbengine page cache size = 256MiB dbengine extent cache size = 64MiB # Tier 0: 1-second resolution (14 days or 4 GiB soft target) dbengine tier 0 retention size = 4GiB dbengine tier 0 retention time = 14d # Tier 1: 1-minute resolution (3 months or 2 GiB soft target) dbengine tier 1 retention size = 2GiB dbengine tier 1 retention time = 3mo # Tier 2: 1-hour resolution (2 years or 1 GiB soft target) dbengine tier 2 retention size = 1GiB dbengine tier 2 retention time = 2y
[ml] enabled = yes
[pulse] # Exposes dbengine main/open/extent Target Cache Memory charts in the UI extended = yes
[logs] access = off sudo systemctl restart netdata
sudo du -sh /var/cache/netdata /var/lib/netdata 4. Netdata Security: Locking Port 19999 and Setting Up Nginx Reverse Proxy
What is port 19999? TCP port 19999 is the default Netdata port number serving its local web UI, REST API (/api/v1/), and Parent-Child streaming listener. Netdata also runs an internal StatsD collector on port 8125 (UDP/TCP) for ingesting custom application metrics.
4.1 Bind Port 19999 and Port 8125 Strictly to Loopback (127.0.0.1)
Edit /etc/netdata/netdata.conf via sudo /etc/netdata/edit-config netdata.conf and restrict both sockets to localhost:
[web] bind to = 127.0.0.1 default port = 19999 allow connections from = localhost 127.0.0.1 ::1 allow management from = localhost 127.0.0.1 ::1
[statsd] bind to = udp:127.0.0.1:8125 tcp:127.0.0.1:8125 Restart Netdata, remove any public UFW rules for 19999, and confirm loopback-only listeners:
sudo systemctl restart netdata
sudo ufw delete allow 19999/tcp 2>/dev/null || true
sudo ufw delete allow 19999 2>/dev/null || true
sudo ss -tulnp | grep netdata
curl -fsS http://127.0.0.1:19999/api/v1/info | head -n 15 4.2 Option A (Fastest & Zero Public Attack Surface): Encrypted SSH Tunnel
For individual administrators, forward port 19999 over SSH from your laptop or workstation and open http://127.0.0.1:19999 locally (if a firewall rule ever locks out SSH, use our Dedicated Server Rescue Mode CLI recovery guide):
ssh -N -L 19999:127.0.0.1:19999 [email protected] 4.3 Option B (Team Access): Put Netdata Behind Nginx Reverse Proxy with TLS & Bcrypt Basic Auth
Install Nginx, apache2-utils, and Certbot, then generate a Bcrypt-hashed (-B) Netdata user password file readable only by root and www-data:
sudo apt-get install -y nginx apache2-utils certbot python3-certbot-nginx
sudo htpasswd -Bc /etc/nginx/.htpasswd_netdata opsadmin
sudo chown root:www-data /etc/nginx/.htpasswd_netdata
sudo chmod 640 /etc/nginx/.htpasswd_netdata Create /etc/nginx/sites-available/netdata.conf (replace monitor.example.com with your DNS subdomain):
upstream netdata_backend { server 127.0.0.1:19999; keepalive 64;
}
server { listen 80; listen [::]:80; server_name monitor.example.com; auth_basic "Netdata Restricted Monitoring"; auth_basic_user_file /etc/nginx/.htpasswd_netdata; location / { proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_pass_request_headers on; proxy_set_header Connection "keep-alive"; proxy_store off; proxy_pass http://netdata_backend; }
} Enable the site, validate Nginx syntax, and enforce HTTPS via Let's Encrypt:
sudo ln -sf /etc/nginx/sites-available/netdata.conf /etc/nginx/sites-enabled/netdata.conf
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d monitor.example.com --redirect Nginx Proxy Manager & Apache Alternatives: If using Nginx Proxy Manager, point the Proxy Host to port 19999, enable Websockets Support, enforce Let's Encrypt SSL (Force SSL), and attach an NPM Access List password. If your stack runs Apache instead of Nginx, follow our Apache mod_proxy reverse proxy guide and apply HTTP security headers.
5. Netdata Docker Container Monitoring, Web Logs, and Hardware Sensors
Installing the Netdata Agent natively on Ubuntu 24.04 is recommended over containerized Netdata on bare metal hosts: it reads Linux cgroups v2, eBPF probes, NVMe SMART data, and systemd journals directly without running a privileged container with SYS_ADMIN and SYS_PTRACE (for Docker daemon hardening on bare metal, see installing and securing Docker on Ubuntu and building a Docker bare-metal private cloud).
5.1 Monitor Docker Container Resource Usage & Resolve Names
Netdata charts per-container CPU, RAM, disk I/O, and network traffic automatically via cgroups v2. To translate 64-character container hashes into readable container names and health states, grant the netdata user access to query Docker metadata (or on strict multi-tenant hosts, point /etc/netdata/go.d/docker.conf to a read-only Docker Socket Proxy on 127.0.0.1:2375 with CONTAINERS=1):
sudo usermod -aG docker netdata
sudo systemctl restart netdata
sudo -u netdata docker ps --format "table {{.Names}}\t{{.Status}}" 5.2 Synthetic HTTP Checks, 5xx Web Logs, and Bare-Metal Thermal Sensors
Configure sudo /etc/netdata/edit-config go.d/httpcheck.conf to probe local API health endpoints, and enable go.d/web_log.conf on Nginx/Apache logs to catch spikes in HTTP 500 responses immediately (pair with our SRE guide to debugging 500 Internal Server Errors). On physical servers, enable CPU package and NVMe thermal sensors via lm-sensors:
sudo apt-get install -y lm-sensors
sudo sensors-detect --auto
sensors
sudo systemctl restart netdata 6. Netdata Alerts & Notifications: Add, Disable, View History, and Test
To add a custom alert or adjust Netdata default alerts, create an override under /etc/netdata/health.d/ using sudo /etc/netdata/edit-config health.d/custom_cpu_sustained.conf:
alarm: sustained_cpu_utilization on: system.cpu
lookup: average -5m unaligned percentage of user,system
units: %
every: 30s warn: $this > 80 crit: $this > 92
delay: down 5m multiplier 1.5 max 1h info: Average non-idle CPU usage over the last 5 minutes to: sysadmin To silence an individual noisy rule, set to: silent inside its health.d/ file and reload health rules live via sudo netdatacli reload-health (if you instead modify [health] settings inside netdata.conf, run sudo systemctl restart netdata). Configure Email, Slack, or Discord webhooks via sudo /etc/netdata/edit-config health_alarm_notify.conf (appending |critical to a recipient routes only critical alerts), lock permissions, inspect alert history, and run a CLI test notification:
sudo chown root:netdata /etc/netdata/health_alarm_notify.conf
sudo chmod 640 /etc/netdata/health_alarm_notify.conf
sudo netdatacli reload-health
# Inspect active alarms and recent alert history via local API
curl -fsS "http://127.0.0.1:19999/api/v1/alarms" | head -n 25
curl -fsS "http://127.0.0.1:19999/api/v1/alarm_log" | head -n 25
# Simulate WARNING, CRITICAL, and CLEAR delivery with debug tracing
sudo su -s /bin/bash netdata -c 'export NETDATA_ALARM_NOTIFY_DEBUG=1; /usr/libexec/netdata/plugins.d/alarm-notify.sh test "sysadmin"' Always pair internal host alerts with an external black-box check so total power or network loss is caught independently (see what 99.9% vs. 99.99% uptime means in downtime minutes).
7. Netdata Parent-Child Streaming Setup & Configuration
Across multi-server fleets, Parent-Child streaming forwards per-second metrics from lightweight Child agents to a central Parent server over a private VLAN or WireGuard tunnel. Generate a shared UUID key with uuidgen (for example, 8f4c2b10-6e9a-4d3b-9a12-7c5e3f1a9042) and configure /etc/netdata/stream.conf on the Parent via edit-config:
[8f4c2b10-6e9a-4d3b-9a12-7c5e3f1a9042] type = api enabled = yes allow from = 10.10.0.* db = dbengine health enabled by default = auto Parent Storage Sizing Rule: Retention size limits in the Parent's [db] section are shared across the Parent and all streaming Children per tier (for 6 nodes generating ~1.69 GiB each over 14 days = ~10.14 GiB, allocate at least 12GiB for Tier 0 on the Parent and bind the Parent's [web] listener to its private VLAN IP 127.0.0.1 10.10.0.5). On each Child node, configure /etc/netdata/stream.conf to stream to 10.10.0.5:19999 and trim the Child's netdata.conf to a 1,200-second (20-minute) RAM buffer:
# 1. Child /etc/netdata/stream.conf
[stream] enabled = yes destination = 10.10.0.5:19999 api key = 8f4c2b10-6e9a-4d3b-9a12-7c5e3f1a9042 timeout seconds = 60 reconnect delay seconds = 5
# 2. Child /etc/netdata/netdata.conf (Headless featherweight mode)
[db] db = ram retention = 1200
[ml] enabled = no
[health] enabled = no
[web] mode = none 8. Netdata vs. Prometheus/Grafana, Auto-Updates & Clean Uninstall
| Platform | Default Resolution | Architecture & Setup | Best Infrastructure Fit |
|---|---|---|---|
| Netdata Agent | 1 second | Zero-config local agent, tiered dbengine, built-in UI & ML (~1–3% CPU) | Real-time bare-metal troubleshooting & transient spike detection |
| Prometheus + Grafana | 15s – 60s pull | Exporters + TSDB + PromQL + Alertmanager + Grafana dashboards | Kubernetes clusters, custom app KPIs & multi-year federation |
| Datadog (SaaS) | 10s – 15s | Cloud-hosted metrics, logs & APM ($15–$18+/host/mo + custom metrics) | Managed SaaS teams (see why teams repatriate SaaS costs to bare metal) |
| Ubuntu Cockpit | Live session only | Browser-based Linux admin UI (storage, networking, systemd) | Interactive single-host administration (not a TSDB/alerting stack) |
Hybrid Prometheus Scraping & Bandwidth Tracking: Prometheus can scrape Netdata directly at /api/v1/allmetrics?format=prometheus over a private VLAN without needing a separate node_exporter, while Netdata's real-time interface throughput charts complement monthly transfer accounting (see website bandwidth vs. data transfer on dedicated servers).
8.1 Inspecting Auto-Updates and Cleanly Uninstalling Netdata
Check active auto-update timers on Ubuntu 24.04 (note that editing netdata-updater.conf alone does not disable updates—re-run kickstart.sh --reinstall --no-updates for manual control), or remove Netdata completely using --uninstall:
# Check unattended update timer status
systemctl list-timers --all | grep -i netdata || ls -l /etc/cron.daily/netdata-updater* 2>/dev/null
# Clean automated uninstallation (and optional full data purge)
curl -fsSL https://get.netdata.cloud/kickstart.sh -o /tmp/netdata-kickstart.sh
sudo sh /tmp/netdata-kickstart.sh --non-interactive --uninstall
sudo apt-get purge -y 'netdata*' && sudo apt-get autoremove -y
sudo rm -rf /etc/netdata /var/lib/netdata /var/cache/netdata /var/log/netdata /opt/netdata 9. Conclusion & Official Technical References
Installing Netdata v2 via kickstart.sh on Ubuntu 24.04 LTS gives engineering teams sub-second visibility into CPU, memory, NVMe latency, and container health within minutes. Pairing tiered dbengine storage with localhost socket isolation, TLS-encrypted Basic Authentication, tested alert webhooks, and Parent-Child streaming turns a standalone monitoring agent into a hardened, production-ready observability platform.
- Netdata Linux Installation Reference (kickstart.sh Flags & Verification)
- Netdata Offline / Air-Gapped Linux Installation Guide
- Netdata v2 Database Configuration Reference (dbengine Tiers & [pulse] Cache)
- Netdata Nginx Reverse Proxy & Basic Auth Guide
- Netdata Parent-Child Streaming Configuration Reference
- Netdata Agent-Dispatched Notifications Reference
Enterprise Technical FAQ
kickstart.sh script with --release-channel stable rather than Ubuntu's default universe apt package. The kickstart installer configures Netdata's signed upstream repository for Ubuntu 24.04 (and also supports Ubuntu 22.04 and Debian 12), providing current Netdata v2 storage tiers, updated go.d collectors, and timely security fixes. 19999 without requiring an account or internet connection when you choose the anonymous local view. Without a paid plan, a multi-node Parent dashboard displays up to 5 active nodes concurrently, and certain sensitive live Functions tabs may prompt for sign-in. 19999 is Netdata's default web UI, REST API, and streaming port. Netdata Agent does not provide built-in username/password login (only IP-based allowlists in netdata.conf or Cloud bearer token protection). Bind Netdata to 127.0.0.1 and access it via an SSH port-forwarding tunnel or behind an Nginx or Apache TLS reverse proxy with HTTP Basic Authentication. /etc/netdata/netdata.conf (or /opt/netdata/etc/netdata/netdata.conf on static installs). Because it starts minimal, view all active internal defaults at http://127.0.0.1:19999/netdata.conf via curl and always edit configuration files using sudo /etc/netdata/edit-config so package updates preserve your overrides. dbengine cache settings. With v2 tiered dbengine compression (~0.5 to 0.6 bytes per Tier 0 sample), 3 GiB to 7 GiB of NVMe disk space comfortably stores 14 days of per-second metrics plus months of per-minute and years of per-hour history. /etc/netdata/health.d/ via edit-config and apply them live with sudo netdatacli reload-health. To test outbound Slack, Discord, or email delivery, switch to the netdata user and run /usr/libexec/netdata/plugins.d/alarm-notify.sh test "sysadmin" with NETDATA_ALARM_NOTIFY_DEBUG=1 exported. http://NODE_IP:19999/api/v1/allmetrics?format=prometheus over a private network, letting engineering teams combine Netdata's 1-second per-host troubleshooting UI with long-term PromQL queries and executive dashboards in Grafana. kickstart.sh and execute sudo sh /tmp/netdata-kickstart.sh --non-interactive --uninstall. To remove all historical metrics and custom configs afterward, run sudo apt-get purge -y 'netdata*' and delete /etc/netdata, /var/lib/netdata, /var/cache/netdata, /var/log/netdata, and /opt/netdata.