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-how-it-works-in-production ▌

Operations Guides

How CoreDNS actually works in production: the plugin chain mental model

Most CoreDNS incidents are pipeline incidents, not DNS incidents. An upstream resolver gets slow, goroutines pile up, memory climbs, and the pod gets OOMKilled. Or the Kubernetes API watch drops silently and CoreDNS keeps answering every query correctly except the answers are three hours stale. Each failure mode is a direct consequence of how CoreDNS is built internally, and most CoreDNS runbooks assume you already hold that internal model in your head.

This article is that model: the plugin chain, the goroutine-per-query concurrency model, the cache, forward, and kubernetes plugins, and the Go runtime underneath. It does not cover specific failure patterns or fixes; those get their own guides. The goal is that when a runbook says “the forward plugin is accumulating blocked goroutines” or “SERVFAIL is being served from the denial cache,” you know which piece of the machine that sentence is about.

What the plugin chain is and why it matters

CoreDNS is a DNS server written in Go, built around a plugin chain. There is no monolithic resolver. Every query traverses an ordered chain of plugins defined in the Corefile, and each plugin can inspect the query, modify it, answer it, or pass it to the next plugin.

Three rules define everything:

  1. Every query traverses an ordered plugin chain. The chain order is fixed by the build, not by the order plugins appear in your Corefile. Rearranging lines in the Corefile does not change execution order.
  2. The most specific server block wins. A query is matched to a server block by zone, using the longest matching suffix. With blocks for . and cluster.local, a query for kubernetes.default.svc.cluster.local runs through the cluster.local chain, and a query for example.com runs through the . chain. Each block has its own chain.
  3. A plugin that answers stops the chain. If the cache has the record, the query never reaches the kubernetes or forward plugins. If forward returns SERVFAIL, that is the final answer. The chain is not a failover mechanism: a plugin returning an error response has still handled the query, and later plugins never see it.

Rule 3 is the one that bites operators. It explains why a single dead forward target produces SERVFAIL for every forwarded zone instead of falling through to another plugin, and why a warm cache can completely mask a dead upstream until TTLs expire.

How a query moves through CoreDNS

The full path for a typical Kubernetes deployment:

  1. A listener accepts the query on UDP or TCP port 53 (port 53 in the standard Kubernetes container, with the Service targetPort also 53).
  2. The Go scheduler hands the query its own goroutine. There is no thread pool and no connection queue.
  3. The query is matched to the most specific server block by zone.
  4. The block’s plugin chain executes synchronously inside that goroutine. In a standard Kubernetes Corefile, the plugins that actually answer queries are, in chain order: cache, then kubernetes, then forward.
  5. The first plugin that produces a response ends the chain. The response goes back to the client and the goroutine exits.
flowchart LR
  Q[Client query] --> L[Listener UDP/TCP 53]
  L --> G[Goroutine per query]
  G --> S{Most specific server block}
  S --> C[cache]
  C -->|hit| R[Response]
  C -->|miss| K[kubernetes]
  K -->|answer| R
  K -->|not in cluster zone| F[forward]
  F -->|answer or SERVFAIL| R
  F --> U[Upstream resolvers]

Alongside the answer-producing plugins, the chain typically carries supporting plugins that change behavior without answering queries: errors and log for output, health and ready for probe endpoints, prometheus for metrics on :9153, loop for startup loop detection, reload for Corefile hot reload, and bufsize (default EDNS0 buffer 1232 bytes). autopath, when enabled, short-circuits Kubernetes search domain expansion server-side at the cost of extra CPU and memory.

The pieces every runbook assumes

Goroutine-per-query

CoreDNS has no thread pool and no inbound connection queue. Each in-flight query occupies one goroutine, and goroutine count is bounded only by memory. This is why “slow upstream” and “memory exhaustion” are the same incident: when forward blocks waiting on an upstream, the query’s goroutine stays alive holding memory, and client retries create more goroutines on top. A healthy CoreDNS idles at roughly 20 to 50 goroutines. A growing count that never returns to baseline means blocked calls or a leak.

The cache plugin

The cache is an in-memory LRU with two stores: a positive (success) cache for NOERROR answers and a negative (denial) cache for NXDOMAIN/NODATA. SERVFAIL responses are also cached, in the denial cache, for 5 seconds by default. Default capacity is 9984 entries per cache, split across 256 shards, with LRU eviction when full.

Two operational consequences matter constantly:

  • The cache masks upstream failure. A warm cache keeps serving answers while upstreams are down. The failure only becomes visible as TTLs expire, which is why upstream health must be monitored independently of end-to-end success.
  • The cache amplifies upstream failure. A one-second upstream blip writes SERVFAIL into the cache, and every client asking for that record gets SERVFAIL from cache for the next 5 seconds even though the upstream has recovered.

Cache hit ratio (coredns_cache_hits_total / coredns_cache_requests_total) is the single biggest lever on both latency and upstream load. Cluster DNS typically sees 80%+ hit rates on repeated service names. Note that coredns_cache_misses_total is deprecated; derive misses as requests minus hits.

The forward plugin

The forward plugin maintains connection pools to upstream resolvers, with connection reuse, health checking, backoff, and load balancing policies across multiple upstreams (random, round_robin, sequential). Per-upstream state is what makes it debuggable: coredns_forward_request_duration_seconds{to=...} and coredns_forward_healthcheck_failures_total{to=...} break latency and health down by individual upstream. (Older deployments using the deprecated proxy plugin, removed from the default build in 1.5.0, expose the equivalent data under the coredns_proxy_* prefix; the forward plugin has always used the coredns_forward_* prefix.)

Behaviors worth memorizing:

  • When all upstreams fail health checks, coredns_forward_healthcheck_broken_total increments. By default CoreDNS still tries a random unhealthy upstream rather than failing instantly, unless failfast_all_unhealthy_upstreams is set. So the counter proves degraded forwarding, not necessarily total failure.
  • A fully dead upstream produces fast SERVFAIL with low latency. A slow-but-alive upstream produces high latency and goroutine accumulation. These are different incidents with different fixes.
  • If max_concurrent is configured, excess in-flight queries are rejected with REFUSED (SERVFAIL on releases before 1.8.1) and counted in coredns_forward_max_concurrent_rejects_total. That is deliberate backpressure, and preferable to unbounded goroutine growth.
  • The loop plugin probes for forwarding loops at startup. A loop introduced by a mid-flight config change is not caught until the next restart, because the plugin does not re-probe while running.

The kubernetes plugin

The kubernetes plugin does not query the API server per DNS query. It runs watch-driven informers against the API server and builds an in-memory record set from the streamed state. DNS answers come from that local snapshot.

This design has three consequences that show up in every CoreDNS outage review:

  • Stale is the failure mode, not down. If the API watch disconnects, CoreDNS keeps answering from its last known state. Existing services resolve fine; new services and endpoint changes are invisible. Metrics stay green while the data drifts. There is no binary “watch broken” metric; you infer it from coredns_kubernetes_rest_client_requests_total error codes or from logs.
  • Memory scales with the cluster. The snapshot grows with Services and Endpoints, and the post-restart re-list is the peak memory event. Memory limits sized close to steady-state RSS cause OOM crash loops on restart.
  • Readiness is plugin-aware. The /ready endpoint on :8181 waits for the initial watch sync before reporting ready. Using /health (process liveness only, :8080) as the Kubernetes readiness probe lets pods receive traffic before they can resolve cluster names.

The Go runtime

CoreDNS inherits the Go runtime wholesale. Stop-the-world GC pauses add directly to P99 latency (go_gc_duration_seconds). Heap that grows without being reclaimed across GC cycles is a leak signal (go_memstats_heap_inuse_bytes), but the OOM killer acts on RSS (process_resident_memory_bytes), which is always larger and is the number to compare against the container limit. Go also returns memory to the OS lazily, so elevated RSS after a load spike is normal and is not, by itself, a leak.

File descriptors are the other runtime resource: one per upstream connection, per listening socket, per API watch stream, per log file. process_open_fds approaching process_max_fds ends in “too many open files,” not graceful degradation.

Where the model pays off in production

Each of CoreDNS’s characteristic failures maps to exactly one piece of the model:

FailurePiece of the model
Upstream black hole (fast SERVFAIL, low latency)Forward plugin: all upstreams dead, chain stops with error
Slow upstream drag (high latency, rising memory)Goroutine-per-query: blocked forwards accumulate goroutines
Cache collapse after rolloutCache plugin: cold cache, 100% miss, thundering herd upstream
Silent stale cluster DNSKubernetes plugin: watch disconnected, snapshot drifting
OOM kill or crash loopGo runtime: heap or re-list spike exceeds container limit
CrashLoopBackOff with “Loop detected”Loop plugin: startup probe found a forwarding loop, fatal exit
Perfect metrics, client timeoutsBelow the model: UDP buffer or conntrack drops before queries arrive

The last row is why the mental model has to include what is not CoreDNS. Packets dropped by the kernel (UDP receive buffer exhaustion, conntrack table full) never reach a listener, never get a goroutine, and never appear in any coredns_dns_* metric. CoreDNS dashboards look too good to be true: low latency, no errors, suspiciously low throughput. The model tells you where visibility ends, which is at the socket.

Common misreadings of the model

  • Treating the chain as failover. A plugin that returns SERVFAIL has handled the query. Nothing later in the chain runs. There is no “try the next plugin on error.”
  • Reordering the Corefile to change execution. Plugin execution order is fixed at build time. Corefile order does not control it.
  • Trusting /health as proof DNS works. /health checks process liveness only. A pod can return 200 while answering SERVFAIL to every query. RCODE metrics are the availability signal.
  • Alerting on NXDOMAIN. NXDOMAIN is a normal answer, and high NXDOMAIN rates are expected in Kubernetes because ndots:5 search domain expansion generates them by design. Alert on SERVFAIL and REFUSED.
  • Reading QPS as logical lookups. With ndots:5, one application lookup can become 4 to 6 queries. CoreDNS QPS is the amplified number, and with NodeLocal DNSCache deployed it is only the cache-miss remainder.

Signals to watch in production

SignalWhy it mattersWarning sign
coredns_dns_responses_total{rcode="SERVFAIL"}The actual user-pain signal; the plugin label isolates forward vs kubernetesAny sustained nonzero rate; >1% of responses over 5 min
coredns_dns_request_duration_secondsEnd-to-end server-side latency; cache hits should be sub-millisecondP99 >100ms sustained; P50 rising means systemic, not tail
coredns_forward_request_duration_seconds{to=...}Per-upstream latency; identifies which upstream is the bottleneckP99 >250ms on any single upstream
coredns_forward_healthcheck_broken_totalAll upstreams simultaneously unhealthyAny increment
coredns_cache_hits_total / coredns_cache_requests_totalCache effectiveness; inverse of upstream load and latencyDrop below 50% of baseline; evictions rising
go_goroutinesIn-flight work; the early indicator of slow-upstream accumulationSustained >2x baseline, or growth that never returns to baseline
process_resident_memory_bytes vs container limitWhat the OOM killer sees>80% of limit; post-GC minimum trending upward
coredns_kubernetes_rest_client_requests_total by codeAPI watch health; 5xx means API trouble, 403 means RBACAny sustained 5xx or any 403
coredns_reload_failed_totalA Corefile change failed; old config still running, config driftAny increment
coredns_panics_totalRecovered panics; each is a dropped query and a bugAny nonzero value

How Netdata helps

  • Netdata charts the response-code distribution per plugin, so SERVFAIL from forward and SERVFAIL from kubernetes are visually separate incidents instead of one blended error rate.
  • Per-upstream forward latency and health check failures are graphed individually via the to label, which is the breakdown you need when exactly one of three upstreams is slow.
  • Go runtime signals (goroutines, heap, GC pause duration) sit on the same timeline as DNS latency, making the “blocked goroutines, rising memory, GC pauses, then OOM” cascade readable as one story instead of four dashboards.
  • Cache hit ratio next to upstream request rate shows the masking effect directly: you can see upstream health degrade while end-to-end success stays green behind a warm cache.
  • Per-second collection keeps the 5-second SERVFAIL cache amplification window and post-reload cold-cache spikes visible rather than averaged away.
  • In Kubernetes, node-level signals like conntrack utilization and UDP buffer errors can be correlated with CoreDNS metrics from the same node, which is how you catch the failures that never reach the process.