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-upstream-connection-cache-misses ▌

Operations Guides

CoreDNS upstream connection cache misses: new connections adding latency per query

You are here because forwarded DNS queries got slower, or because coredns_proxy_conn_cache_misses_total is climbing and you need to know whether it matters. It does. Every connection cache miss means CoreDNS opens a fresh connection to an upstream resolver instead of reusing one from its pool. Setup cost lands on that query, and each new connection holds a file descriptor until it is closed or reaped.

This is usually degradation, not outage. CoreDNS keeps answering. The damage shows up as worse tail latency on uncached lookups, rising process_open_fds, and, under sustained churn, resource pressure that can turn into a real incident. Rule of thumb: a miss ratio above 50% sustained for 10 minutes is worth investigating.

The relevant counters are coredns_proxy_conn_cache_hits_total and coredns_proxy_conn_cache_misses_total, in the proxy subsystem, with labels proxy_name (typically forward), to (upstream address), and proto (udp, tcp, or tcp-tls). Those labels are what make the signal actionable: they tell you which upstream and which protocol is churning.

What this means

The forward plugin keeps a persistent connection pool per upstream. When a query needs forwarding, CoreDNS checks the pool for a reusable connection to that upstream. A hit reuses it. A miss opens a new one. For UDP the “connection” is lightweight. For TCP and DNS-over-TLS (tcp-tls) a miss means a handshake, and TLS adds negotiation on top. That setup cost is paid by the query that caused the miss.

Two forward plugin knobs govern pool behavior. expire controls how long an idle cached connection is kept before cleanup closes it; the documented default is 10 seconds. max_idle_conns caps idle connections per upstream per protocol; the default is 0, meaning unlimited. If you set neither, connections live for about 10 idle seconds and the idle pool has no explicit upper bound.

flowchart LR
  Q[Forwarded query] --> C{Connection in pool?}
  C -->|hit| R[Reuse connection
no setup cost] C -->|miss| N[New connection
handshake adds latency
consumes one FD] R --> U[Upstream resolver] N --> U U --> RC[Connection returned to pool
closed after expire
or by upstream]

A rising miss ratio has four plausible cause families: the upstream closes connections before CoreDNS can reuse them, CoreDNS discards connections too aggressively, the network path drops connections, or traffic is too sparse to keep connections warm. The job is to separate those before tuning anything.

Common causes

CauseWhat it looks likeFirst thing to check
Upstream closes connections aggressivelyMisses concentrated on one to label, often on tcp or tcp-tls; upstream idle timeout shorter than CoreDNS expireTest the upstream directly and observe whether it drops idle connections quickly; check upstream vendor limits
expire too short for query patternUniform misses across upstreams; queries to each upstream arrive less often than every expire intervalCompare per-upstream forward rate against configured expire (default 10s)
Upstream restarts or instabilityMisses spike in bursts, correlated with health check failures or latency blipscoredns_proxy_healthcheck_failures_total{to=...} and coredns_proxy_request_duration_seconds{to=...}
Network instability dropping connectionsMisses across protocols with simultaneous upstream latency jitterPer-upstream latency histogram and node-level network errors
Traffic too sparse to keep pool warmHigh miss ratio at low QPS that normalizes during busy periodsCorrelate miss ratio with forward query rate over the day
DNS client library connection recyclingMisses scaling linearly with TCP query volume, suggesting connections are not being reusedCoreDNS’s proxy pool has no per-connection query cap: it recycles connections by idle timeout (expire) and connection age. Check your build’s changelog and observe whether misses scale linearly with TCP query volume

If misses are paired with intermittent forward errors on cached connections, check the changelog for your exact CoreDNS build for forward/proxy connection-cache fixes before tuning: the fix for the “cached connection was closed by peer” (ErrCachedClosed) comparison landed in CoreDNS 1.12.3 (PR #7427), so 1.12.2 and earlier builds lack it. Do not tune around a known connection-handling bug.

Quick checks

All of these are read-only. They assume the metrics endpoint is localhost:9153; adjust if yours differs.

# Connection cache hit and miss counters, per upstream and protocol
curl -s http://localhost:9153/metrics | grep 'coredns_proxy_conn_cache'

Look at the raw distribution first. If misses cluster on one to value, you have an upstream-specific problem. If they spread evenly with a high ratio everywhere, suspect configuration or traffic shape.

# Miss ratio over a 10-minute window, per upstream and protocol
sum by (to, proto) (rate(coredns_proxy_conn_cache_misses_total{proxy_name="forward"}[10m]))
  /
(
  sum by (to, proto) (rate(coredns_proxy_conn_cache_hits_total{proxy_name="forward"}[10m]))
  +
  sum by (to, proto) (rate(coredns_proxy_conn_cache_misses_total{proxy_name="forward"}[10m]))
)

Sustained values above 0.5 are the investigation trigger.

# File descriptor pressure: each new connection holds an FD until reaped
curl -s http://localhost:9153/metrics | grep -E '^process_(open|max)_fds'
# Per-upstream latency: misses should show up as a latency premium on forwarded queries
curl -s http://localhost:9153/metrics | grep 'coredns_proxy_request_duration_seconds'
# Upstream health: churn caused by a flapping upstream shows here
curl -s http://localhost:9153/metrics | grep 'coredns_proxy_healthcheck_failures_total'
# Confirm the upstream actually accepts and holds a TCP connection
dig @<upstream-ip> example.com +tcp +time=2 +tries=1

How to diagnose it

  1. Quantify the miss ratio per upstream and protocol. Use the PromQL above. If nothing exceeds 50% sustained, this is informational, not an incident. Record the baseline and move on.
  2. Isolate the protocol. UDP setup is cheap, so a high UDP miss ratio mostly signals churn without much per-query cost. TCP and TLS misses are where the latency premium lives. Focus there.
  3. Isolate the upstream. If one to label accounts for most misses, test that upstream directly with dig +tcp and repeated queries. An upstream that closes idle connections faster than CoreDNS’s expire window will defeat the cache no matter how you tune CoreDNS. Verify the documented idle connection limits for your specific upstream (cloud VPC DNS, dnsmasq, etc.).
  4. Check for upstream instability. Correlate miss bursts with coredns_proxy_healthcheck_failures_total{to=...} and the to-labelled latency histogram. A flapping upstream produces both health check failures and connection churn.
  5. Check the FD trajectory. If process_open_fds trends upward with miss rate and never recovers, new connections are accumulating faster than cleanup reaps them. With max_idle_conns at 0 (unlimited), heavy churn can build real FD pressure. Compare against process_max_fds; above 80% utilization is warning territory.
  6. Check traffic shape. At low per-upstream query rates, connections idle past expire between uses and every query is effectively a miss. That is expected behavior, not a fault. Plot miss ratio against forward query rate; if the ratio collapses as rate rises, your pool is fine and your traffic is just sparse.
  7. Rule out version bugs. If misses come with forward errors on cached connections, confirm whether your CoreDNS build includes relevant forward/proxy pool fixes before changing expire or max_idle_conns.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
coredns_proxy_conn_cache_misses_total / hits ratio by to, protoThe primary signal: connection reuse efficiencyMiss ratio > 50% sustained over 10 minutes
coredns_proxy_request_duration_seconds{to=...}Connection setup cost lands here; shows the actual latency premiumP99 rising on the same upstream that has rising misses
process_open_fds vs process_max_fdsEvery fresh connection holds an FD until reaped; churn plus unlimited idle conns can exhaust FDsFD usage > 80% of max, or steady growth without recovery
coredns_proxy_healthcheck_failures_total{to=...}Distinguishes “upstream closes connections” from “upstream is flapping”Failures incrementing on the same upstream as the misses
coredns_dns_request_duration_secondsEnd-to-end confirmation of user-visible impactP99 on forwarded zones rising in step with miss ratio
go_goroutinesQueries blocked on connection setup accumulate goroutinesGrowth disproportionate to query rate

Fixes

Upstream closes connections aggressively

If the upstream’s idle timeout is shorter than CoreDNS’s expire, connections die before reuse. Two options: shorten CoreDNS’s expire so CoreDNS stops handing out doomed connections (this does not reduce misses, but it avoids paying for a failed reuse attempt first), or switch affected traffic to UDP with prefer_udp if the upstream supports it and truncation/fallback behavior is acceptable, since UDP has no handshake cost. If the upstream is a managed resolver with documented connection limits, respect them rather than fighting them.

expire misaligned with traffic

If queries to each upstream arrive at intervals longer than expire, every query pays setup. Raising expire keeps idle connections longer and raises the hit ratio, at the cost of holding more FDs longer. That tradeoff is only safe if you also set max_idle_conns to bound the pool. Never raise expire while max_idle_conns remains 0 on a high-churn upstream; that is how a latency problem becomes FD exhaustion.

Unbounded pool under load

With max_idle_conns at its default of 0, bursts of misses create connections en masse and old ones take time to clean up. Set an explicit max_idle_conns per upstream sized to steady concurrency, then watch process_open_fds after the change to confirm the pool stays bounded.

Network instability

If misses correlate with latency jitter and health check failures across multiple upstreams, the path is the problem, not the pool. Tuning CoreDNS will not help. Work the network layer: routing, firewall connection tracking, and any middlebox that might reset idle TCP flows. Verify middlebox idle-TCP timeout behavior in your environment.

Sparse traffic

If the miss ratio is high only because per-upstream query rates are low, there is nothing to fix. Check whether the cache plugin is absorbing repeated names so connection reuse is irrelevant for most queries. A high DNS response cache hit ratio makes a high connection cache miss ratio mostly harmless.

Prevention

  • Baseline the ratio per upstream. Miss ratio only means something against your own traffic pattern. Alert on deviation from baseline, with the 50%-over-10-minutes rule as the outer bound.
  • Set max_idle_conns explicitly. The unlimited default is a latent FD exhaustion risk under any churn condition. Bound it, then monitor process_open_fds against process_max_fds.
  • Tune expire with max_idle_conns as a pair. Longer retention plus a bounded pool is the safe combination. Longer retention with an unbounded pool is not.
  • Track CoreDNS upgrades. Connection pool behavior has received bug fixes and rework across releases. Stale builds carry stale connection-handling bugs.
  • Correlate, do not isolate. A miss ratio alert without upstream latency and FD context produces false confidence in both directions. Dashboard the three together.

How Netdata helps

  • Netdata collects the CoreDNS Prometheus endpoint, so coredns_proxy_conn_cache_hits_total and coredns_proxy_conn_cache_misses_total are charted per to and proto without hand-built scrapes, giving you the per-upstream breakdown this diagnosis depends on.
  • Per-second granularity on coredns_proxy_request_duration_seconds lets you see the latency premium from connection setup as it happens, rather than averaged away over a minute.
  • process_open_fds is collected alongside CoreDNS metrics, so the “misses driving FD growth” correlation is visible on one dashboard instead of two tools.
  • Health check failure metrics per upstream sit next to the connection cache charts, which makes the flapping-upstream versus aggressive-upstream distinction a visual comparison.
  • Anomaly detection on the miss ratio surfaces drift from your baseline traffic shape, which is the alert you actually want for this signal.