
A monitoring dashboard earns its keep when you’re half-awake at 2:13 a.m. and trying to answer one question: “What changed?” If you install Netdata on Ubuntu VPS, you get second-by-second visibility into CPU, RAM, disk, network, and supported services. That context helps you spot spikes, saturation, and slowdowns before they become downtime.
This post is a practical look at Netdata. We’ll cover what it does well, what it doesn’t replace, and how to run it on a VPS.
You’ll also set up HTTPS, tune alerts, plan retention-aware backups, and keep updates clean.
Why install Netdata on Ubuntu VPS instead of a hosted dashboard?
Hosted monitoring platforms (Datadog, New Relic, etc.) are great—until pricing scales with hosts, metrics volume, and retention. They also add a dependency outside your control.
If your monitoring vendor is slow, blocked, or having its own outage while your site struggles, you lose your best “black box recorder.”
Netdata takes the opposite approach. You run monitoring next to the workloads. Then you decide what (if anything) to ship elsewhere.
In practice, it helps you catch issues like:
- CPU steal on busy nodes (often the real reason “the server feels slow”)
- Memory pressure (page cache vs. an actual leak) and swap storms
- Disk latency (I/O wait jumps) and filesystem fill patterns
- Network retransmits and bandwidth saturation
- Service-level indicators for Nginx, systemd services, containers, and databases (where enabled)
If you run customer sites, internal apps, or APIs on a VPS, this level of detail can cut incident time dramatically.
Netdata spotlight: what it is (and who it’s for)
Netdata is an open-source, self-hostable monitoring agent with a web UI. It’s built for high-resolution metrics and fast troubleshooting.
The agent collects system and application metrics. The dashboard renders them with minimal delay.
On Ubuntu, you can run it as a native install or in a container.
Who it fits best:
- VPS operators who need a fast “what’s happening right now?” answer
- Teams that want an on-server dashboard alongside logs
- Resellers/agencies managing many small-to-mid servers where per-host SaaS costs add up
License: Netdata’s agent is open source. Some advanced features may be offered under different terms through the vendor’s hosted services.
If you want to stay fully self-hosted, stick to the agent + local dashboard. Treat any cloud tie-ins as optional.
If you want a broader look at the self-hosted approach, see Self-Host Netdata Cloud Alternative: Netdata Agent.
A quick comparison: Netdata vs Datadog/New Relic (and what you give up)
Netdata is best at real-time visibility and quick root-cause hints on a single server (or a small fleet). Hosted platforms usually win when you need long-term correlation across many hosts, compliance reporting, and deeper APM tracing out of the box.
- Netdata strengths: high-resolution charts, low friction, runs on your infrastructure, great for “what’s wrong right now?”
- Hosted strengths: central fleet views, longer managed retention, richer APM features, and less self-hosting overhead
A common pattern in 2026 is hybrid. Use Netdata locally for immediate troubleshooting. Use a separate system (or exports) for longer-term trend analysis.
What you need on a VPS (resource sizing that doesn’t hurt your workloads)
Netdata’s footprint depends on your collectors, retention settings, and whether you monitor containers and databases. On typical web servers, it stays modest.
- Small VPS (1 vCPU / 1 GB RAM): fine for basic system metrics, but keep retention short and avoid heavy collectors.
- Typical production VPS (2 vCPU / 2–4 GB RAM): a comfortable baseline for system + common service metrics with reasonable retention.
- Busy app/database node (4+ vCPU / 8+ GB RAM): better if you want deeper collectors plus longer on-box history.
Disk matters, too. Netdata stores its time-series database locally (unless you configure otherwise).
If you want longer history, plan extra storage and prefer SSD/NVMe.
If you’re choosing infrastructure for this, a HostMyCode VPS is a clean fit: predictable resources, root access, and enough flexibility to run monitoring alongside your stack.
Deployment options on Ubuntu: packages vs Docker (what I recommend)
You have two sensible ways to run Netdata on Ubuntu:
- Native install (recommended for most operators): simplest access to host metrics, smooth systemd integration, and fewer container-specific edge cases.
- Docker: convenient if the server is already container-first and you prefer Compose-based lifecycle management.
I’ll keep the commands brief. We’ll focus on the operational parts that usually matter more: secure exposure, alerting, backups, and updates.
Install Netdata on Ubuntu (safe defaults)
On a fresh Ubuntu server, handle the basics first: SSH keys, no password logins, and a minimal firewall.
If that isn’t done yet, follow Set Up SSH Keys And Disable Password Login On VPS.
Then install the agent using Netdata’s official installer. It’s common in production and handles dependencies:
sudo apt update
sudo apt install -y curl
curl -fsSL https://get.netdata.cloud/kickstart.sh | sudo sh
After installation, the service typically runs as netdata. It listens on 127.0.0.1:19999 or 0.0.0.0:19999, depending on defaults and your environment.
On production systems, treat Netdata as an internal service. Put it behind a reverse proxy with HTTPS.
Quick diagnostic:
sudo systemctl status netdata --no-pager
ss -lntp | grep 19999
Put Netdata behind HTTPS with Nginx (and keep it off the public port)
Don’t expose port 19999 to the internet. Even if Netdata is hardened, it’s easier to manage through one standard entry point.
Use Nginx on 80/443 with TLS and access controls.
On Ubuntu, create an Nginx site at /etc/nginx/sites-available/netdata:
server {
listen 80;
server_name netdata.example.com;
location / {
return 301 https://$host$request_uri;
}
}
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;
# Basic hardening
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
location / {
proxy_pass http://127.0.0.1:19999;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
}
Enable the site and reload:
sudo ln -s /etc/nginx/sites-available/netdata /etc/nginx/sites-enabled/netdata
sudo nginx -t
sudo systemctl reload nginx
For TLS certificates, use Let’s Encrypt with Certbot, or your preferred ACME flow.
If you already run a multi-app reverse proxy, adapt this config to match your conventions.
If you want a Compose-friendly TLS proxy instead, see Traefik With Docker Compose for HTTPS on a VPS.
Access control tip: Restrict access by IP (office VPN, bastion, or your own IP range). Netdata exposes operational data, so treat it like an admin tool.
Alerts that actually help: tune Netdata instead of accepting noise
Netdata ships with a lot of health checks. That’s useful, but defaults rarely match real systems.
Spend a little time tuning alerts. Aim for thresholds you will actually act on.
- Start with the basics: disk full, inode exhaustion, high load, swap storms, network errors, and service down alerts.
- Set realistic duration: alert only if it persists for a few minutes. Short spikes are normal.
- Route alerts somewhere you read: email, Slack-compatible webhooks, or your incident tool.
Netdata’s health configuration lives under /etc/netdata/health.d/ (exact layout can vary by install method).
If you manage multiple servers, keep custom health rules in version control. Apply them consistently.
If email delivery is part of your plan, make sure outbound mail is reliable (SPF/DKIM matter). These two guides are practical references:
- Set Up DKIM Signing With OpenDKIM on Ubuntu Postfix
- Set Up Postfix Relay on a VPS for WordPress Mail
Docker Compose deployment (if your server is container-first)
Netdata runs well in Docker, but don’t gloss over the trade-off. A monitoring container needs extra privileges to see host-level metrics.
If you’re not comfortable granting those permissions, stick with the native install.
A minimal Compose layout might look like this (store it in /opt/netdata/docker-compose.yml):
services:
netdata:
image: netdata/netdata:stable
container_name: netdata
pid: host
network_mode: host
restart: unless-stopped
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- apparmor:unconfined
volumes:
- netdataconfig:/etc/netdata
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
volumes:
netdataconfig:
netdatalib:
netdatacache:
Bring it up:
cd /opt/netdata
docker compose up -d
Even in Docker, keep Netdata on 127.0.0.1:19999. Publish it through Nginx or Traefik with HTTPS.
Retention-safe backups: what to back up (and what not to)
Monitoring backups aren’t the same as application backups. You usually don’t need every chart forever.
What you usually want is:
- Configuration (health rules, stream settings, enabled collectors)
- Local DB (only if you want historical metrics to survive a rebuild)
- Reverse proxy config (Nginx site files) and TLS automation state
For native installs, a practical backup set is:
/etc/netdata//var/lib/netdata/(history/DB; size depends on retention)/etc/nginx/sites-available/netdata(or your proxy config)
For Docker installs, back up the named volumes (or bind-mounted directories if you use those).
A common mistake is “backup the whole VPS nightly,” then discovering Netdata’s history grows until it blows up the backup window.
Keep monitoring backups scoped and intentional.
Simple tar backup example (local staging):
sudo tar -czf /root/backup-netdata-$(date +%F).tar.gz \
/etc/netdata /var/lib/netdata /etc/nginx/sites-available/netdata
Then copy it offsite (S3-compatible storage, another server, or your backup system).
If you need help with the broader migration/backup picture, HostMyCode also offers assisted moves via HostMyCode migrations.
Updating Netdata without breaking your monitoring
Updates are straightforward. The right method depends on how you installed Netdata.
- Native install: use Netdata’s update mechanism that matches the installer. Update during a quiet window, and make sure configs are backed up.
- Docker: pull the new image and recreate the container. If you automate updates, use an explicit policy and avoid loose “latest” behavior.
If you run multiple Compose apps on one VPS, a managed approach to container updates reduces drift over time. This guide shows the general pattern: Docker Compose Auto-Updates With Watchtower on a VPS.
Update check: after any Netdata update, confirm collection still works and the proxy still forwards correctly:
curl -I http://127.0.0.1:19999
sudo nginx -t
sudo systemctl status netdata --no-pager
Operational checklist: keep Netdata useful (not just “another dashboard”)
Netdata pays for itself when you treat it like production tooling, not a pretty chart page.
- Lock down access: HTTPS, and preferably IP allowlisting or SSO in front of it.
- Alert on symptoms you act on: disk, load, RAM pressure, service failures, network errors.
- Keep retention intentional: enough history to debug your normal incidents, not “forever by accident.”
- Watch the watcher: if the VPS is consistently resource-starved, upgrade it or move monitoring to a dedicated node.
If you’re already seeing timeouts or “random slowness,” pair monitoring with a targeted fix. For WordPress on Nginx, this troubleshooting guide is a useful companion: Fix WordPress 504 Gateway Timeout on Nginx VPS.
Summary: run Netdata where your problems happen
Netdata is most effective when it sits next to your workloads. It sees the same kernel, the same disks, and the same network interface.
If you install Netdata on Ubuntu VPS, put it behind HTTPS, tune alerts, and keep backups scoped. You’ll get faster answers with fewer blind spots.
Start with one server. Tune alerts for a week. Then roll out a standard config across the rest of your fleet.
For hosting that’s sized for real operational workloads, consider a HostMyCode VPS for self-managed control or managed VPS hosting if you want the platform maintained while you focus on the application.
If you’re adding monitoring because you’re accountable for uptime, run it on a VPS with predictable CPU and memory—plus support that can help when it’s time to scale. Netdata runs comfortably on a HostMyCode VPS, or choose managed VPS hosting if you’d rather keep patching, core services, and backups on a steady schedule.
FAQ
Should I expose Netdata directly on port 19999?
No. Keep it bound to localhost and publish it through Nginx (or another proxy) with HTTPS and access control.
How much retention should I keep on a VPS?
Keep enough history to debug your typical incidents—often hours to a few days. Longer retention increases disk usage and backup time.
Does Netdata replace long-term metrics platforms?
Not always. Netdata is excellent for real-time troubleshooting on the box. Long-term fleet reporting and deep APM still favors dedicated platforms, or a hybrid approach.
What’s the simplest backup strategy for Netdata?
Back up /etc/netdata (config) and optionally /var/lib/netdata (history). Keep it scoped so monitoring data doesn’t bloat your backup system.