Netdata

On this page 7

Netdata is an open-source, real-time monitoring agent that collects thousands of system and application metrics at one-second resolution, stores them locally and presents them in interactive dashboards with built-in alerting. Within monitoring & logs for servers, it occupies the niche of high-resolution, low-configuration observability: it is installed on each host, discovers running services automatically and begins charting them within minutes.

The agent is written mainly in C, runs on Linux, FreeBSD, macOS and Windows, and can operate standalone, stream data to central parent nodes or connect to the optional Netdata Cloud service for a unified view of many hosts. It focuses on metrics rather than log management, although recent versions can also browse systemd journal logs.

How the Netdata agent collects and stores metrics

Netdata works by running a lightweight daemon on every monitored host that polls data sources every second. Internal collectors read kernel interfaces such as /proc and /sys, while plugins written in Go and other languages query services like NGINX, MySQL, PostgreSQL, Redis and Docker through their status endpoints. Auto-discovery detects many of these services without manual configuration.

Collected values go into the dbengine time-series database, which keeps recent data in memory and writes compressed pages to disk. Data is organized in tiers of decreasing resolution: per-second samples for recent days, then per-minute and per-hour aggregates for longer periods. Retention therefore depends on the disk space assigned to each tier rather than on a fixed number of days.

The following table summarizes the main architectural components.

ComponentFunctionWhere it runs
AgentCollects, stores and serves metricsEvery monitored host
Collectors and pluginsRead data from the system and servicesInside or beside the agent
DbengineTiered, compressed metric storageLocal disk of the agent
Health engineEvaluates alert rules continuouslyEvery agent or parent
Parent nodeReceives streamed metrics from child agentsCentral server
Netdata CloudOptional unified view and notification routingHosted service
Core components of a Netdata deployment

Alerting, anomaly detection and streaming

Netdata ships with hundreds of preconfigured alert definitions covering CPU saturation, disk space, network errors, memory pressure and common service failures. Rules are written in a declarative format in the health.d directory and use warning and critical thresholds evaluated against rolling averages, which reduces noise from single-sample spikes.

A distinctive feature is built-in machine learning anomaly detection. The agent trains lightweight models for each metric on recent history and flags samples that deviate from learned behavior, producing an anomaly rate per chart. This helps operators find unusual metrics during an incident without knowing in advance which ones to inspect, although anomalies indicate deviation, not necessarily a fault.

For larger estates, agents can stream metrics to parent nodes, which centralize storage, alerting and dashboards. Children can then run with minimal local retention, which suits small virtual machines, containers and IoT devices with limited disk.

The table below compares the main deployment patterns.

PatternBest suited forMain trade-off
Standalone agentSingle server or small labNo central view across hosts
Parent and childrenFleets inside one networkParents need more memory and disk
Agents with Netdata CloudDistributed teams and many sitesDepends on an external service
Export to PrometheusExisting Prometheus and Grafana stacksDuplicate storage and configuration
Netdata deployment patterns

Netdata compared with other monitoring tools

Netdata differs from classic monitoring systems mainly in resolution, setup effort and storage model. Tools such as Nagios and Zabbix grew around status checks and centrally polled metrics, typically at intervals of 30 to 60 seconds. Netdata favors distributed collection with per-second granularity and dashboards generated automatically for every discovered metric.

The comparison below highlights the practical differences with frequently mentioned neighbors.

ToolPrimary focusTypical resolutionConfiguration effort
NetdataReal-time host and service metrics1 secondLow, auto-discovery
ZabbixCentralized metrics and alerting30 to 60 secondsModerate to high
NagiosService and host status checks1 to 5 minutesHigh, plugin based
PrometheusPull-based metrics and querying15 to 60 secondsModerate
ELK stackLog aggregation and searchEvent basedHigh
Netdata and related monitoring systems

These tools are often combined rather than substituted. A common arrangement uses Netdata for live troubleshooting, a log aggregation platform such as Graylog or the ELK stack for events, and uptime monitoring for external availability checks.

Practical use and resource overhead

Netdata is most useful during live incident investigation, when per-second charts reveal short bursts that minute-level averages hide, such as a ten-second disk I/O stall or a brief spike in TCP retransmissions. Administrators also use it to validate load tests with tools like k6 or Apache JMeter, observing CPU, memory and connection counts while the test runs.

Resource consumption is modest but not zero. On a typical server, the agent uses a few percent of one CPU core and roughly 100 to 300 MB of memory, depending on the number of metrics, retention settings and whether machine learning is enabled. Disabling unused collectors or ML on very small hosts lowers this further.

  • Restrict dashboard access by binding the web interface to localhost or placing it behind an authenticated reverse proxy.
  • Tune retention per tier to match available disk rather than accepting defaults blindly.
  • Review alert defaults and silence those irrelevant to the workload to prevent alert fatigue.
  • Use parents for fleets so that short-lived or small nodes do not need long local history.

Limitations and common mistakes

Netdata is not a complete observability platform by itself. Its log features are limited compared with dedicated log systems, distributed tracing is outside its scope, and long-term capacity planning over years is better served by downsampled central storage. Teams should plan which questions each tool answers before deployment.

The table below lists recurring problems and their remedies.

SymptomLikely causeFix
Dashboard reachable from the internetDefault port 19999 left openFirewall or bind to localhost
History shorter than expectedSmall dbengine tier sizesIncrease disk allocation per tier
Too many notificationsUnreviewed default alertsAdjust thresholds or disable rules
Service not chartedStatus endpoint not enabledEnable the endpoint and restart
Agent memory grows on small VMsML and many metrics enabledDisable ML or stream to a parent
Common Netdata problems and fixes

Licensing also deserves attention. The agent itself is released under the GPLv3 license, while some newer dashboard components and the cloud service follow different terms, so organizations with strict open-source policies should verify the license of each component they deploy.

Stripped to the essentials

Netdata is like a heart-rate monitor for a computer. It sits on the machine, checks hundreds of vital signs every single second and draws them as live graphs that anyone with access can open in a web browser.

Because it looks so often, it catches short hiccups that slower tools miss. It also raises an alarm when something crosses a danger line, such as a disk that is almost full. In short, Netdata shows what a server is doing right now, in great detail, with very little setup.

Where it is applied

A small hosting provider runs 40 Linux servers that host customer websites. Customers occasionally report pages that hang for a few seconds, yet the existing monitoring, which samples every minute, shows nothing unusual. The administrators install the Netdata agent on every host and stream all metrics to two parent nodes in the data center.

Within a day, the per-second charts on one server reveal disk I/O wait spikes of eight to twelve seconds every hour, matching the reported hangs. The anomaly rate points to a backup job that saturates the shared storage volume. After the team moves the backup to a throttled schedule, the spikes disappear, and a new alert on I/O wait above 30 percent for ten seconds now warns them if the pattern returns.