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 / consul / consul-goroutine-leak ▌

Operations Guides

Consul goroutine count climbing: the leak behind slow resource exhaustion

consul.runtime.num_goroutines is a gauge of how many concurrent operations the process is juggling: every blocking query, every gRPC or xDS stream, every health check handler runs inside a goroutine. In a healthy cluster the number is baseline-dependent but flat. When it creeps upward hour over hour, something is spawning goroutines and not cleaning them up.

The absolute number is a distraction. A medium cluster idles between a few hundred and 20,000 goroutines; a large Connect deployment legitimately runs higher. The trend is the signal. Monotonic growth without a matching increase in services, watchers, or sidecar count is a leak, regardless of where the number sits.

Each leaked goroutine holds a stack that starts at 2 KB and grows, plus references to any memory it touches. The Go runtime must scan every goroutine stack during stop-the-world GC phases, so a rising count lengthens GC pauses even when heap growth is modest. Sustained GC pause growth eats into Raft heartbeat budgets and can trigger leadership changes, turning a quiet resource leak into a cluster availability incident.

Frequent restarts mask the problem. If you restart agents weekly for deploys, the count resets each time and you never see the curve. The leak is still there. Plot the trend over the longest window your agents stay up.

What this means

A climbing goroutine count means the Consul process is creating goroutines faster than it is reaping them. The Go runtime does not garbage-collect goroutines; they exit only when the code running inside them returns or is unblocked. A leak is a code path that blocks forever, or a caller that spawns without tracking the lifecycle.

The leak almost always falls into one of three buckets.

Blocking queries that never terminate cleanly. A client opens an HTTP long-poll watch and then disconnects without sending the signal that ends the watch. The server goroutine parked on that watch waits for the full wait timeout (default five minutes) Confirmed by official API docs before it reaps, and a steady stream of misbehaving clients keeps the count growing.

xDS or gRPC streams that are not torn down. When Consul Connect is enabled, each Envoy sidecar holds a gRPC stream to a server. If the stream is abandoned rather than closed, the server goroutine serving it stays parked. At thousands of sidecars this adds up.

Health checks for services that were deregistered. The check loop is supposed to stop when the service is deregistered, but registration bookkeeping bugs or anti-entropy races can leave a check running against a service ID that no longer exists.

Each has a distinct signature when you correlate goroutine count with secondary signals.

flowchart TD
  A["num_goroutines climbing"] --> B{"Memory climbing too?"}
  B -- yes --> C["Classic leak: goroutines hold state"]
  B -- no --> D{"RPC connections climbing?"}
  D -- yes --> E["External client leak"]
  D -- no --> F["Lightweight leak: check handlers, watchers"]
  C --> G["Capture pprof goroutine profile"]
  E --> G
  F --> G
  G --> H["Group stack traces by call site"]

Common causes

CauseWhat it looks likeFirst thing to check
Blocking query leakGoroutines climbing in step with HTTP active connections; cache miss rate elevated; commit index stable/debug/pprof/goroutine for parked blockingQuery stacks
xDS stream leakGoroutines climbing with Connect enabled; stream churn elevated; correlated with sidecar restartsxDS stream count vs known Envoy proxy count
Health check leakGoroutines climbing slowly; no change in query load; correlates with service deregistration eventsCheck handler counts vs registered service counts
Watch handler accumulationGoroutines and watch count climbing together; often from consul-template fleetsWatch handler metrics vs expected watchers
Version-specific bugLeak appears after upgrade or persists across restarts; matches a known fixed issueConsul version against changelog

Quick checks

All read-only. Run on the suspect agent.

# Current goroutine count
curl -s http://127.0.0.1:8500/v1/agent/metrics | grep num_goroutines

# Heap allocation, for the classic-leak correlation
curl -s http://127.0.0.1:8500/v1/agent/metrics | grep -E "alloc_bytes|heap_objects"

# GC pause trend
curl -s http://127.0.0.1:8500/v1/agent/metrics | grep -i gc

# File descriptor usage and limit
ls /proc/$(pgrep -x consul)/fd | wc -l
grep "Max open files" /proc/$(pgrep -x consul)/limits

# Client RPC failure rate
curl -s http://127.0.0.1:8500/v1/agent/metrics | grep -E "client.rpc"

# Consul version, to rule out a known fixed leak
consul version

# Goroutine stack dump (safe, read-only; output can be large)
curl -s http://127.0.0.1:8500/debug/pprof/goroutine?debug=1 | head -40

How to diagnose it

  1. Confirm the trend, not the absolute number. Pull consul.runtime.num_goroutines over the longest window the agent has been up. If the curve is flat or oscillates with load, this is not a leak. If it is monotonically rising, proceed.

  2. Correlate with memory. Pull consul.runtime.alloc_bytes over the same window. Rising goroutines with rising memory is the classic leak signature: parked goroutines hold references to result sets, watch state, or stream buffers. Rising goroutines with flat memory means the goroutines are lightweight (parked on a channel, not holding data). The leak is still real but the failure mode is slower.

  3. Correlate with RPC connections. Rising goroutines with rising RPC or HTTP active connections points at an external client leak: clients opening watches or streams and not closing them. Flat connection count points at an internal leak (health check handlers, watch handlers local to the agent).

  4. Pull a goroutine profile during the climb. The single most useful artifact is /debug/pprof/goroutine?debug=1. It dumps every goroutine with its stack. Review the output for repeated stack patterns parked in blockingQuery, Watch, xDS serve handlers, or health check loops. The call sites with the highest repetition are your leak source.

    # Capture full profile to a file for offline analysis
    curl -s http://127.0.0.1:8500/debug/pprof/goroutine?debug=1 > /tmp/consul-goroutines.txt
    wc -l /tmp/consul-goroutines.txt
    
  5. Identify the caller. For blocking query leaks, check which clients are issuing long-poll requests and whether they close them properly. Load balancers without session affinity can break index tracking and force clients to re-issue watches. For xDS leaks, compare stream count against the number of registered Envoy sidecars. For health check leaks, look for services deregistered while their checks were still running.

  6. Check the version against known fixed leaks. Several goroutine leaks have been fixed in specific Consul releases. The go-memdb blocking-query leak (large services, default wait timeouts, goroutine counts spiking sharply) was addressed in Consul 1.14.0 backported to active branches. xDS subsystem goroutine leaks were also addressed in 1.14.0, and a further xDS stream handling leak was fixed in 1.18.1. If you are running an older release, the fix may be an upgrade.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
consul.runtime.num_goroutinesPrimary leak indicatorMonotonic increase over hours with no load change
consul.runtime.alloc_bytesCorrelates with classic leakRising in lockstep with goroutines
consul.runtime.total_gc_pause_ns (confirmed: cumulative gauge, nanoseconds since process start)Headroom for Raft timingTrending up as goroutine count grows
consul.runtime.heap_objectsObject retention behind the leakGrowing without service growth
File descriptor usageConnection-driven leaks exhaust FDs firstSustained growth, ratio to limit
consul.client.rpc / consul.client.rpc.exceeded (consul.client.rpc.exceeded for rate-limited, consul.client.rpc.failed for errors)Client-server pipeline healthSustained non-zero failure rate
consul.raft.commitTimeWhether the leak is hurting writesCreeping up as goroutine count climbs
xDS stream countConnect control plane healthStream churn or mismatch with proxy count

Fixes

Blocking query leaks

The fastest mitigation is to stop the source. Identify misbehaving clients from access logs or by correlating connection counts with goroutine growth. Common culprits are consul-template fleets with too many templates, custom polling loops that do not respect X-Consul-Index, and load balancers that spread blocking queries across servers (which breaks index affinity).

If the source is large-service health queries, enable the streaming backend. use_streaming_backend replaces HTTP long-polling with server-pushed streaming RPC for endpoints that support it, eliminating the parked-goroutine pattern for those queries. It defaults to on in current Consul releases Confirmed: use_streaming_backend defaults to true in current releases; confirm in your agent config.

If you cannot stop the source, lower the blocking query wait timeout so parked goroutines are reaped faster. This trades freshness for headroom.

xDS stream leaks

Compare active xDS stream count against the number of registered Envoy sidecars. If streams significantly exceed proxies, sidecars are reconnecting without cleanly closing old streams.

curl -s http://127.0.0.1:8500/v1/agent/metrics | grep -i xds

Short-term mitigation is a rolling restart of the affected sidecars or the Consul server. Long-term, verify you are on a release with the xDS leak fixes (1.14.0 for the subsystem-wide leak, 1.18.1 for stream handling). If you have a very large mesh, review whether enable_xds_load_balancing is appropriate; the stream limiter it introduces has its own failure modes ; verify behavior on your version before enabling.

Health check leaks

This is harder to mitigate without a code or version fix because the goroutine is internal to the agent. Identify the pattern by correlating the goroutine rise with service deregistration events. Services that register and deregister frequently with script checks are the prime suspects.

The durable fix is to ensure you are on a release where check handlers are correctly torn down on deregistration, and to set deregister_critical_service_after on services with transient registrations so that critical services are cleaned up rather than lingering with running checks.

Restarting as a last resort

A restart reaps every goroutine and resets the count to baseline. It also resets every cache, invalidates every watch, and triggers a reconnect storm from clients. Use it to buy time during an active incident, not as a substitute for finding the leak. If you are restarting agents on a schedule to keep goroutine count manageable, you have a leak that needs a code or config fix.

Prevention

  • Plot goroutine count on the longest window agents stay up. A weekly restart schedule will hide a slow leak. If your agents restart weekly, capture the trend inside that week and watch the slope.
  • Alert on the slope, not the absolute number. A useful starting point is sustained growth of more than 1000 goroutines per minute, or any monotonic climb over 24 hours. Adjust to your baseline.
  • Correlate goroutine count with memory, FD usage, and connection count. Each correlation narrows the cause.
  • Track Consul version against known leak fixes. Several significant leaks were fixed in the 1.14.x and 1.18.x lines. Running an older release is the most common reason a leak persists.
  • Audit blocking query consumers. Every consul-template instance, every custom watcher, every long-poll client is a potential leak source. Track their count against your goroutine baseline.

How Netdata helps

  • The Consul collector captures consul.runtime.num_goroutines, alloc_bytes, GC pause, and consul.raft.commitTime at per-second resolution, so you can correlate goroutine growth with memory, GC pressure, and write latency on a single timeline without manual instrumentation.
  • Anomaly detection flags the slope change on goroutine count regardless of where the absolute number sits, which is the failure mode that hides leaks behind restart schedules.
  • Per-node dashboards let you isolate a single misbehaving agent from a cluster-wide pattern.