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-cache-collapse-thundering-herd ▌

Operations Guides

CoreDNS cache collapse: the cold-cache thundering herd after a rollout

You just rolled out a CoreDNS config change or image bump. Within seconds, DNS latency across the cluster jumps, upstream DNS traffic spikes to several times baseline, and SERVFAILs appear in application logs. One to five minutes later, it all goes away on its own. The dashboard is green again.

That is the cache collapse pattern: every CoreDNS pod restarted at roughly the same time, every in-memory cache emptied at once, and every client in the cluster re-queried the same names simultaneously. The flood hit your upstreams harder than they could absorb. In the worst version, upstreams return SERVFAIL, CoreDNS caches those SERVFAILs for 5 seconds each, and a brief overload amplifies into a visible outage.

This article covers how to confirm the pattern during and after the event, why the SERVFAIL cache amplifies it, and how to prevent it with rollout hygiene. For the broader signal taxonomy, see the CoreDNS monitoring checklist.

What this means

The CoreDNS cache plugin is an in-memory cache with separate positive (success) and negative (denial) caches. It lives inside each pod’s process. There is no shared cache between replicas: two pods behind the kube-dns Service each hold their own cache, and a restart drops it to zero entries.

When a rolling update replaces pods, each new pod starts cold. That alone is survivable: 100% cache miss after a single restart is expected and resolves in seconds to minutes as the cache warms. The failure mode appears when the rollout is too aggressive:

  • maxUnavailable set too high (or a Recreate strategy), so all replicas go down and come up together.
  • A manual restart of all pods at once.
  • A ConfigMap change plus a reload pattern that flushes caches cluster-wide within the same minute.

The distinguishing feature is the signal ordering: cache-miss spike first, upstream-load spike second, latency and possibly SERVFAIL third. The event is temporally correlated with a deploy or restart, and it is transient unless the upstreams fold under the load.

flowchart TD
  A[Rollout: all CoreDNS pods restart together] --> B[All caches empty at once]
  B --> C[Clients re-query the same names simultaneously]
  C --> D[Upstream request rate spikes]
  D --> E{Upstreams absorb the flood?}
  E -->|Yes| F[Cache repopulates in 1-5 min, self-corrects]
  E -->|No| G[Upstreams return SERVFAIL]
  G --> H[CoreDNS caches SERVFAIL for 5s]
  H --> I[Cached SERVFAIL served to all clients, amplifying failure]
  I --> F

Common causes

CauseWhat it looks likeFirst thing to check
Rolling update with maxUnavailable too highAll pods’ start times within the same minute; cache entries drop to zero cluster-widekubectl get pods -n kube-system -l k8s-app=kube-dns and compare AGE against the event window
Manual restart of all replicasSame metric shape, but no rollout event in the deployment historykubectl rollout history deployment/coredns -n kube-system and your change log
Cache size too small for working setElevated baseline upstream traffic plus coredns_cache_evictions_total climbing even outside rolloutscoredns_cache_entries vs configured cache size
Upstream too weak to absorb a cold-cache fillThundering herd escalates into SERVFAIL and health check failures on upstreamscoredns_proxy_healthcheck_failures_total per to label during the window

Quick checks

All of these are read-only and safe to run during an incident. The curl commands assume you are exec’d into a CoreDNS pod or port-forwarding to its metrics port (kubectl port-forward -n kube-system <coredns-pod> 9153:9153).

# Confirm the temporal correlation: when did the CoreDNS pods last start?
kubectl get pods -n kube-system -l k8s-app=kube-dns -o wide

# Check the deployment rollout history
kubectl rollout history deployment/coredns -n kube-system

# Inspect the update strategy (maxUnavailable is the usual suspect)
kubectl get deployment coredns -n kube-system -o jsonpath='{.spec.strategy}'

# Cache state right now: entries should be near zero just after a collapse
curl -s http://localhost:9153/metrics | grep '^coredns_cache_entries'

# Cache hits vs requests: hit ratio craters during the event
curl -s http://localhost:9153/metrics | grep -E 'coredns_cache_(hits|requests)_total'

# Are upstreams failing health checks under the flood?
curl -s http://localhost:9153/metrics | grep 'coredns_proxy_healthcheck_failures_total'

# SERVFAIL responses, broken out by plugin
curl -s http://localhost:9153/metrics | grep 'coredns_dns_responses_total' | grep 'SERVFAIL'

These curl commands sample counters at one instant. The real confirmation comes from graphing them over the incident window: cache hit ratio dropping toward zero at the same moment upstream request rate spikes.

How to diagnose it

  1. Establish the timeline. Get the pod start times and the deployment rollout history. The pattern requires a restart or reload event within a minute or two of the latency/SERVFAIL spike. If there is no restart event, this is not cache collapse; look at CoreDNS all upstreams down or CoreDNS slow upstream instead.

  2. Confirm the cache emptied. coredns_cache_entries{type="success"} should show a drop to zero (restart) or a sharp decrease at the event time on every affected pod. The cache hit ratio (coredns_cache_hits_total / coredns_cache_requests_total) should crater toward 0% simultaneously.

  3. Verify the ordering. The cache-miss spike must lead the upstream-load spike. If upstream latency or SERVFAIL rose before the cache emptied, the direction of causality is reversed: the upstream failed first and this is a different incident.

  4. Check whether upstreams folded. Look at coredns_proxy_healthcheck_failures_total{to=...} and coredns_proxy_request_duration_seconds{to=...} per upstream. If upstreams held, the event self-corrects and your job is prevention. If they folded, check whether the forward plugin also started rejecting queries: coredns_forward_max_concurrent_rejects_total incrementing means the flood exceeded the forward plugin’s concurrency cap and clients got REFUSED on top of everything else. See CoreDNS forward max_concurrent rejects.

  5. Check for SERVFAIL cache amplification. During the window, coredns_dns_responses_total{rcode="SERVFAIL"} includes responses served from the negative cache, not just fresh upstream failures. The tell: SERVFAILs continuing for several seconds after upstream health metrics recover. That is the 5-second default SERVFAIL cache at work.

  6. Rule out a sizing problem. If coredns_cache_evictions_total was already climbing before the rollout, your cache was undersized and the collapse is partly chronic, not purely rollout-induced.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
coredns_cache_hits_total / coredns_cache_requests_totalHit ratio is the primary collapse detectorRatio drops toward 0% outside a known restart window
coredns_cache_entriesConfirms the cache actually emptiedSudden drop to zero across all pods at once
coredns_dns_request_duration_secondsEvery miss goes upstream; latency followsP99 jumps from sub-10ms toward upstream RTT territory
coredns_proxy_request_duration_seconds{to=...}Shows whether upstreams are degrading under the floodPer-upstream P99 climbing during the event
coredns_proxy_healthcheck_failures_total{to=...}Tells you the flood is breaking upstreams, not just slowing themAny sustained increment during the window
coredns_dns_responses_total{rcode="SERVFAIL", plugin=...}The user-pain signal, including cached SERVFAILsNonzero SERVFAIL rate, especially persisting after upstreams recover
coredns_forward_max_concurrent_rejects_totalFlood exceeded forward plugin capacityAny increment
coredns_cache_evictions_totalDistinguishes chronic undersizing from acute rollout collapseClimbing at baseline traffic
Pod restart timestampsThe correlation anchor for the whole patternAll replicas restarted within the same minute

Fixes

If you are in the event right now

If upstreams are holding, the correct action is usually wait. The cache repopulates in 1-5 minutes and the event self-corrects. Restarting pods again just re-empties the caches and restarts the clock.

If upstreams are failing under the flood:

  • Check per-upstream health with the to label. If one upstream is collapsing, consider temporarily removing it from the Corefile so traffic concentrates on the healthy ones. This is a disruptive change to a running resolver during an incident: apply it via ConfigMap and verify the reload took effect before declaring victory.
  • Do not restart anything. Let the caches refill.
  • If clients are being REFUSED due to max_concurrent, that is a capacity cap doing backpressure; the fix is upstream capacity or a higher limit, not more restarts.

Reduce the SERVFAIL amplification

CoreDNS caches SERVFAIL responses for 5 seconds by default. During a thundering herd, a one-second upstream hiccup becomes five seconds of cached SERVFAIL served to every client asking for that name. The cache plugin supports a servfail DURATION directive to change this; setting the duration to 0 disables SERVFAIL caching entirely. Tradeoff: disabling it means every retry during a real upstream outage goes to the already struggling upstream, so you trade client-visible errors for upstream load. A short nonzero value is the conservative middle ground. The servfail directive was introduced in CoreDNS v1.10.0.

Stop all replicas from restarting together

This is the root fix and belongs in Prevention below, but if your update strategy is maxUnavailable: 100% or a Recreate strategy, change it before the next rollout.

Prevention

  • maxUnavailable=1. Only one CoreDNS pod should be down at a time during a rollout. Each remaining pod keeps serving its warm cache, and only a fraction of cluster traffic hits the one cold pod.
  • PodDisruptionBudget. Set a PDB so voluntary disruptions (drains, upgrades) cannot take out more than one replica. This covers the cases the deployment strategy does not.
  • Stagger manual restarts. If you restart CoreDNS manually (config change without the reload plugin, for example), delete pods one at a time and wait for each replacement to pass readiness and warm its cache before proceeding.
  • Use lameduck for graceful shutdown. The health plugin’s lameduck DURATION keeps /health returning 200 for the duration while the pod shuts down, giving endpoints time to drain before the pod (and its cache) disappears. Endpoint propagation delays through kube-proxy and the CNI can still cause brief client timeouts even with lameduck configured.
  • Consider serve_stale. The cache plugin’s serve_stale option (default 1 hour when enabled) serves expired entries while refreshing in the background. It does not survive a pod restart (the cache is in-memory), so it does not fix the cold-cache flood itself, but it blunts the impact of upstream SERVFAILs during recovery. Watch coredns_cache_served_stale_total if you enable it.
  • Size the cache for the working set. If coredns_cache_evictions_total is nonzero at baseline, the cache is too small and every restart is more expensive than it needs to be.
  • Prefetch popular entries. The cache plugin’s prefetch directive refreshes popular items before expiry, keeping hot names warm and reducing the miss burst after any disruption.
  • NodeLocal DNSCache reduces but does not eliminate the risk. A node-local caching layer absorbs much of the re-query storm, but its caches start cold too. It reduces how many clients hit CoreDNS directly; it does not prevent the initial cache-miss surge.
  • Keep CoreDNS current. Older releases had cache bugs that made cold starts worse: expired denial entries obscuring positive entries (fixed around v1.6.8/1.6.9) and a DO-bit cache-miss bug that doubled miss load for DNSSEC-enabled clients (fixed in v1.7.1). If you are on an old release, the thundering herd hits harder than it should.

How Netdata helps

  • Netdata charts coredns_cache_hits_total and coredns_cache_requests_total per second, so the hit-ratio collapse and recovery are visible at the resolution this event actually happens at. One-minute aggregation can miss a 3-minute collapse entirely.
  • The cache-entries gauge alongside pod restart events makes the temporal correlation with a rollout obvious on one screen.
  • Per-upstream breakdowns (to label on proxy latency and health check failures) show whether upstreams absorbed the flood or folded, which decides whether you wait or intervene.
  • SERVFAIL rates split by rcode and plugin expose the 5-second cached-SERVFAIL tail persisting after upstream health recovers, confirming the amplification loop rather than a continuing upstream outage.
  • Anomaly detection on upstream request rate flags the flood signature (miss spike leading upstream spike) even when no static threshold was crossed.