The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / coredns / coredns-memory-leak-heap-growth ▌

Operations Guides

CoreDNS memory climbing: heap growth, post-GC minima, and leak detection

CoreDNS memory has been creeping up for hours. The Grafana panel shows a sawtooth that never quite comes back down, and you need to answer one question before the pod gets OOMKilled: is this Go being Go, or is something actually leaking?

The trap is that go_memstats_heap_inuse_bytes is spiky by design. The heap grows, the garbage collector reclaims, the heap grows again. If you react to instantaneous peaks you will chase ghosts all night. The signal that separates normal GC behavior from a leak is the trend of the post-GC minima: the floor each sawtooth returns to. If that floor keeps rising over an hour or more and never returns to baseline, you have a genuine leak heading for the container memory limit.

The second trap is confusing heap with RSS. Heap in-use is what the Go runtime is actively managing. RSS (process_resident_memory_bytes) is what the kernel and the OOM killer see. They are different numbers, they answer different questions, and treating them as interchangeable leads to bad alert and capacity decisions in both directions.

What this means

CoreDNS is a Go process, so it inherits Go’s memory model. The runtime allocates heap for query handling, cache entries, the Kubernetes plugin’s in-memory snapshot of Services and Endpoints, goroutine stacks, and per-request buffers. The collector reclaims dead objects on its own schedule, and freed memory is returned to the OS lazily. The result is a sawtooth on any heap graph, with peaks that can sit far above the live data.

A leak here means memory that is still referenced and therefore cannot be reclaimed. The three leak shapes to check are goroutine-stack accumulation (goroutines blocked or leaked, each holding stack memory), unbounded cache growth (cache sized beyond what the container can hold, or query diversity exploding the working set), and connection leaks to upstreams (each leaked connection holds buffers and a file descriptor).

The failure mode is cliff-edge. There is no graceful degradation: RSS approaches the container limit, the OOM killer terminates the pod, and on restart the kubernetes plugin’s initial re-list can spike memory straight back into the limit, producing a crash loop. Your job is to catch the rising floor hours before the cliff.

Common causes

CauseWhat it looks likeFirst thing to check
Goroutine leak (blocked or never-exiting goroutines)go_goroutines climbs in step with heap minima; count does not return to baseline after load dropsgo_goroutines trend vs QPS trend
Cache oversized for the container limitcoredns_cache_entries pinned at configured maximum, evictions running, heap floor high but stableCache capacity in the Corefile vs container memory limit
Connection leak to upstreamsprocess_open_fds rising monotonically, connection cache misses increasingprocess_open_fds vs process_max_fds
Kubernetes plugin snapshot growthHeap floor tracks cluster growth (new Services/Endpoints), not trafficService and Endpoint counts over the same window
Normal Go behavior misread as a leakPeaks scary, post-GC floor flat; RSS elevated after a load spike but stableTrend of minima, not peaks
Plugin bug (version-specific)Slow steady leak at low QPS, e.g. a few MB per 30 minutesCoreDNS version against known leak fixes

Version-specific leaks are real and fixed in specific releases. CoreDNS before 1.12.2 has a DNS-over-QUIC memory exhaustion issue (CVE-2025-47950, fixed in 1.12.2 with max_streams and worker_pool_size limits). Release 1.12.4 fixed a goroutine leak in the transfer plugin on AXFR error (PR #7516) and a span leak in the gRPC plugin (PR #7487). Release 1.13.2 fixed a secondary plugin goroutine leak on reload (PR #7694). If your version predates these and the leak shape matches, upgrading is the fix.

Quick checks

All of these are read-only. The metrics endpoint is on port 9153 by default.

# Heap in use (spiky: judge the floor, not the peaks)
curl -s http://localhost:9153/metrics | grep '^go_memstats_heap_inuse_bytes'

# RSS: the number the OOM killer cares about
curl -s http://localhost:9153/metrics | grep '^process_resident_memory_bytes'

# Goroutines: baseline is typically 20-50 at idle
curl -s http://localhost:9153/metrics | grep '^go_goroutines'

# GC pauses: increasing pauses track heap pressure
curl -s http://localhost:9153/metrics | grep '^go_gc_duration_seconds'

# Cache utilization: entries pinned at max means eviction pressure
curl -s http://localhost:9153/metrics | grep -E '^coredns_cache_(entries|evictions_total)'

# File descriptors: rising without fall suggests a connection leak
curl -s http://localhost:9153/metrics | grep -E '^process_(open|max)_fds'

Two supporting checks outside the metrics endpoint:

# Confirm OOM kills actually happened (Kubernetes)
kubectl describe pod -n kube-system <coredns-pod> | grep -A3 'Last State'

# Cluster growth check: is the snapshot growing?
kubectl get svc --all-namespaces | wc -l
kubectl get endpoints --all-namespaces | wc -l

How to diagnose it

Work through this in order. Each step either clears a suspect or hands you the next one.

  1. Establish the floor trend. Graph go_memstats_heap_inuse_bytes over at least one hour, ideally longer. Read the minima of each GC trough, not the peaks. A flat floor with tall peaks is a healthy process under load. A floor that rises steadily and never returns to baseline is the leak signature. A useful alert-grade threshold: post-GC minimum growing more than 10 MB per minute sustained without returning to baseline.

  2. Check OOM risk separately with RSS. Compare process_resident_memory_bytes against the container memory limit, not the heap number. Working limits: below 70% is the operating target, 80% is warning, 90% is critical. It is entirely possible to have a scary heap graph and comfortable RSS, or the reverse, because Go does not eagerly return freed memory to the OS. Heap answers “is something leaking”; RSS answers “how long until the OOM killer acts”.

  3. Estimate runway. (container memory limit - current RSS) / growth rate per minute, using the post-GC minimum growth rate rather than peak growth. This tells you whether you have hours to diagnose properly or minutes to add headroom.

  4. Correlate the floor with the three leak shapes. Pull go_goroutines, coredns_cache_entries, and process_open_fds onto the same time window as the heap floor. Whichever metric rises in lockstep with the floor names the leak family: goroutines for stack accumulation, cache entries for cache growth, FDs for connection leaks. If none of them track the floor, suspect the kubernetes plugin snapshot (compare against Service/Endpoint counts) or a plugin bug.

  5. Capture heap profiles to pinpoint the source. Metrics tell you the leak family; pprof tells you the exact allocation site. Capture two heap profiles separated in time (for example, 30 minutes apart during the rising phase) and diff them. The diff shows which allocation paths grew between the two snapshots:

# Diff two heap profiles to isolate the growth
go tool pprof -base heap_1.pb.gz heap_2.pb.gz

Inside pprof, top and the inuse_space sample type show live heap by call stack. One caveat: the heap profile reads the low watermark right after a GC cycle, so with the default GC target the live process can be holding roughly double what the profile reports between cycles. Use the profile to identify the source, not to reconcile exactly against RSS. Also note that the pprof endpoint is not exposed by default; enabling it requires adding the pprof plugin to the server block in the Corefile (it listens on localhost:6053 by default, path /debug/pprof/) and a reload, which resets runtime stats. Capture your trend data from metrics before doing it.

  1. Rule out the normal lookalikes. Before concluding “leak”, check the boring explanations: a recent load spike whose RSS has not decayed yet (Go returns memory lazily, so elevated RSS after a burst is normal if the floor is flat), cold-cache warmup after a restart, or goroutine count spiking at startup and settling within about 30 seconds.
flowchart TD
  A[Heap floor rising over 1h+] --> B{RSS vs container limit}
  B -->|">90%: critical"| C[Add memory headroom now]
  B -->|"Headroom OK"| D{Correlate floor with...}
  D -->|go_goroutines rising| E[Goroutine or stack leak]
  D -->|cache_entries at max| F[Cache oversized for limit]
  D -->|process_open_fds rising| G[Connection leak]
  D -->|None track| H[Snapshot growth or plugin bug]
  E --> I[pprof heap diff]
  G --> I
  H --> J[Check CoreDNS version vs fixed leaks]

Metrics and signals to monitor

SignalWhy it mattersWarning sign
go_memstats_heap_inuse_bytes (post-GC minima)Leak detection and growth trendFloor rising >10 MB/min sustained, never returning to baseline
process_resident_memory_bytesOOM risk against the container limit>80% of limit warning, >90% critical
go_goroutinesGoroutine-stack accumulation>2x baseline sustained; >5000 with rising memory is a strong leak indicator
go_gc_duration_secondsHeap pressure showing up as pausesPauses >10ms sustained, or increasing over hours
coredns_cache_entries vs configured maxCache-driven heap growthPinned at maximum with active evictions
process_open_fds / process_max_fdsConnection leaks and FD exhaustion>80% of limit, or rising monotonically
Pod restarts with OOMKilled reasonThe cliff-edge itselfAny increment: the previous climb already finished

Fixes

Goroutine or connection leak

If the leak family is goroutines or FDs and the process is degrading, a restart clears the accumulated state, but treat it as buying time, not a fix. Blocked goroutines on slow upstreams accumulate until memory runs out; the upstream slowness is the root cause and the leak will recur under the same conditions. If the leak shape matches a known version-specific bug (transfer plugin, gRPC plugin, secondary plugin, DoQ), the fix is upgrading to the release that carries the fix.

Cache oversized for the limit

Reduce the cache capacity in the Corefile so the steady-state working set plus GC headroom fits inside the container limit with margin. The tradeoff is direct: smaller cache means more evictions, lower hit ratio, higher upstream load and latency. Size from the memory limit downward, not from the hit-ratio wish list upward. The default capacity is 9984 entries per cache, and entries are counted by record, not by byte, so record-size distribution affects real memory per entry.

Kubernetes plugin snapshot growth

If the floor tracks cluster growth, the fix is raising the memory limit to match the cluster you actually have, with at least 50% headroom over steady-state RSS. The headroom is not optional: it covers GC overhead (Go can hold roughly double the live heap before collecting under the default target) and the re-list spike on restart, which is the peak memory event. A limit set 10-20% above steady state is what turns a routine restart into an OOM crash loop.

Emergency headroom

When runway is measured in minutes, temporarily raise the container memory limit while you diagnose. This is a stopgap: it converts an imminent OOM kill into time to find the source.

Prevention

  • Track the floor, not the peaks. Alert on the post-GC minimum growth rate and on RSS relative to the limit. Never alert on instantaneous heap values; that is a false-positive machine.
  • Size memory for the restart spike. Set the limit with at least 50% headroom over steady-state RSS so the kubernetes plugin re-list on restart cannot OOM the pod into a crash loop.
  • Keep CoreDNS current. Several real leaks (transfer, gRPC, secondary, DoQ) are fixed in specific releases. Pin to a version that carries those fixes.
  • Recheck sizing after cluster growth events. New Services and Endpoints grow the snapshot permanently. A limit that was right six months ago may be one rollout away from the cliff.
  • Correlate replicas independently. Two CoreDNS replicas behind the Service can diverge; one leaking pod is invisible in averaged metrics.

How Netdata helps

  • Netdata charts go_memstats_heap_inuse_bytes at high resolution alongside process_resident_memory_bytes, so the sawtooth peaks and the rising floor are visibly distinct on the same dashboard, and RSS can be read directly against the container limit.
  • Correlating go_goroutines, coredns_cache_entries, and process_open_fds against the heap floor on one screen turns the “which leak family” step from a guess into a visual match.
  • go_gc_duration_seconds next to request latency shows when heap pressure starts taxing tail latency before the OOM kill arrives.
  • Pod restart events with OOMKilled reason overlaid on the memory trend confirm the cliff and anchor the post-incident timeline.