Skip to content

Installing Netdata for fast per-second host insight without becoming a metrics firehose

A controlled Netdata install on Ubuntu — APT repo over kickstart, retention sized for the disk you have, reverse-proxy fronting, and Prometheus integration that does not double your scrape bill.

Netdata installs from the kickstart script in 90 seconds and immediately gives you per-second metrics on a few hundred things — CPU per core, disk I/O per device, every running service, network interfaces, even the temperature sensor of every disk if smartmon is available. The trade-off is that the defaults assume “this is your only monitoring tool” — they enable Netdata Cloud, ship metrics to its registry, and keep two years of data on disk. This article walks through the controlled install: APT repo (so upgrades go through your normal pipeline), Cloud opted out, retention sized to what you actually want, and the Prometheus exporter wired so you do not run two scrapes of the same metric.

How to verify

After install, every check below should pass.

sudo systemctl status netdata --no-pager
ss -lntp | grep 19999
curl -fsS http://127.0.0.1:19999/api/v1/info | jq '{version, hostname, mirrored_hosts, host_labels}'
curl -fsS http://127.0.0.1:19999/api/v1/charts | jq '.charts | length'
du -sh /var/cache/netdata
# Prometheus exporter (if enabled)
curl -fsS 'http://127.0.0.1:19999/api/v1/allmetrics?format=prometheus' | head -20

charts typically reports 200–600 on a baseline Ubuntu host. If you see 5,000+, an auto-discovered service is producing a huge family of metrics — find it under /api/v1/charts and consider disabling that plugin if you do not need it.

What’s happening

Netdata is a per-host agent with two layers. A plugins layer that scrapes metrics from /proc, /sys, systemd, Docker, Postgres, Nginx, and dozens of other sources every second. An in-memory database (dbengine) that holds the last N hours/days of metrics on disk in a compact format, queried by the built-in dashboards or by external systems via the API.

The thing you control: how much disk dbengine uses, and whether the agent participates in Netdata Cloud. Cloud is a hosted dashboard that aggregates a fleet of agents — useful if Netdata is your top-level UI, redundant if you already have Grafana on top of Prometheus. The Prometheus exporter built into Netdata exposes everything Netdata sees in Prometheus text format, so Prometheus can scrape Netdata and graph the same metrics in Grafana. That avoids the duplicated-agent footprint of running both node_exporter and Netdata.

The procedure

  1. Install from the APT repo, not from the kickstart script. The kickstart compiles from source and pins nothing; the repo gives you apt upgrade semantics.

    wget -qO- https://repo.netdata.cloud/repos/repoconfig/ubuntu/jammy/netdata-repo_5-1+ubuntu22.04_all.deb \
      | sudo dpkg -i - || sudo apt -f install -y
    sudo apt update
    sudo apt install -y netdata

    (Replace jammy and 22.04 with the codename and version of the host’s Ubuntu release.)

  2. Opt out of Cloud (or in, deliberately). Cloud sends host metadata and a small heartbeat to app.netdata.cloud. To keep the agent local-only:

    # /etc/netdata/netdata.conf
    [global]
        run as user = netdata
        memory mode = dbengine
        dbengine multihost disk space MB = 2048
        page cache size = 32
        host access prefix =
    
    [web]
        bind to = 127.0.0.1
        allow connections from = localhost 10.0.0.*
        allow dashboard from = localhost 10.0.0.*
    
    [cloud]
        enabled = no
    
    [plugins]
        proc = yes
        cgroups = yes
        diskspace = yes
        apps = yes
        python.d = yes
        go.d = yes
        slabinfo = no
        perf = no

    dbengine multihost disk space MB caps disk use. At 2,048 MB you get roughly two weeks of per-second data on a baseline Ubuntu host. Increase if you need longer retention; decrease aggressively on small VMs.

  3. Reload and confirm dbengine is sized correctly.

    sudo systemctl restart netdata
    curl -fsS http://127.0.0.1:19999/api/v1/dbengine_stats | jq '{disk_space_used, retention_seconds: (.retention_secs)}'
  4. Front the UI with Nginx + basic auth. Netdata is read-only by default, but the dashboard reveals a lot — processes, network connections, mount points — that you do not want on the public internet.

    server {
      listen 443 ssl http2;
      server_name netdata.example.com;
      ssl_certificate     /etc/letsencrypt/live/netdata.example.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/netdata.example.com/privkey.pem;
      auth_basic "netdata";
      auth_basic_user_file /etc/nginx/htpasswd.netdata;
      location / {
        proxy_pass http://127.0.0.1:19999;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
      }
    }
  5. If Prometheus is your primary store, scrape Netdata and disable redundant agents. A Prometheus job:

    - job_name: 'netdata'
      metrics_path: '/api/v1/allmetrics'
      params:
        format: ['prometheus']
        help: ['no']
        source: ['average']
      static_configs:
        - targets: ['web01.internal:19999']

    The ?format=prometheus&source=average query returns Netdata’s series in Prometheus format, averaged over the scrape interval. With this in place, you can remove node_exporter on the same host — Netdata covers the same metrics and more.

  6. Disable plugins you do not need. The defaults enable apps.plugin (per-process metrics), cgroups.plugin (container metrics), and python.d / go.d (dozens of integrations). On a host that runs one Postgres and nothing else, disabling unused integrations halves the metrics count.

    # /etc/netdata/python.d.conf
    nginx_log: no
    varnish: no
    couchdb: no

Operational notes

  • Netdata’s “alarms” feature exists and works, but if you have Alertmanager already, route alerts through that — running two alert paths produces conflicting silences.
  • apps.plugin on a busy host can use 5–10% CPU on its own; consider apps badges = no and limiting the process groups it tracks.
  • The dashboard’s “stream” feature can aggregate multiple agents into one parent agent — handy for small fleets, but it duplicates per-host data and you usually want Prometheus scraping each agent directly instead.
  • Default retention with dbengine is much shorter than the docs imply if your host has many metrics; verify with dbengine_stats and resize.
  • Upgrades through APT will overwrite /etc/netdata/netdata.conf unless you set dpkg --force-confold policy or put overrides in /etc/netdata/netdata.conf.d/ drop-ins.

For the Prometheus side, see prometheus-node-exporter. For an integrated TIG (Telegraf + Influx + Grafana) approach instead, see telegraf-influx-grafana.


Stack Harbor installs Netdata where high-resolution per-second insight matters during incidents — a managed-operations engagement uses it as the “what is this host doing right now” tool, paired with Prometheus for long-term retention and alerting. See the managed operations tier for how that fits together.