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-blocking-query-accumulation ▌

Operations Guides

Consul blocking query accumulation: leaked watches that pile up goroutines

Goroutine count on your Consul servers is creeping upward. File descriptor usage follows the same trajectory. Neither reverses during quiet periods. Eventually the server hits its FD limit or goroutine scheduling overhead degrades everything: new connections are refused, health checks stop reaching the catalog, anti-entropy sync stalls, and the cluster cascades.

The culprit is leaked blocking queries. Consul’s watch mechanism and any client using the HTTP long-polling API (?index= and ?wait= parameters) holds a goroutine and an FD on the server for up to the wait timeout (5 minutes default, 10 minutes maximum). A fleet of consul-template instances, application-level watchers, or service mesh control planes can open thousands of concurrent blocking queries. This is fine when queries are properly opened and closed. The leak starts when they are not: a client crashes without cleanly closing its connection, a consul-template bug prevents goroutine cleanup, a watch configuration exceeds the server’s tracking capacity, or a go-memdb WatchSet bug causes goroutine proliferation.

The accumulation is slow enough that it is visible in telemetry for days or weeks before it becomes an incident, but nothing alerts on it because the absolute count has not crossed a hard threshold.

How blocking queries work

A blocking query is Consul’s alternative to polling. The client sends a request with ?index= (from the previous response’s X-Consul-Index header) and ?wait= (how long the server holds the connection open). The server parks the request in a goroutine, watching the state store for changes. If the data changes, the server responds immediately. If nothing changes within the wait period, the server responds with the same data and the client re-issues with the updated index.

Each blocking query consumes:

  • One goroutine for the duration of the wait (up to 5 minutes default, 10 minutes maximum)
  • One file descriptor for the HTTP connection
  • Memory for the goroutine stack and any cached result set

A consul-template instance watching 10 service endpoints opens 10 concurrent blocking queries. A fleet of 100 opens 1000. The leak occurs when queries are opened but never torn down.

flowchart TD
    A["consul-template fleet
app watchers"] -->|"?index= + ?wait= query"| B["Server parks goroutine
+ FD per query"] B -->|"client crash or
misconfigured watch"| C["Query leaks: goroutine
+ FD not released"] C -->|"accumulates over
hours to weeks"| D["Goroutine count climbs
FD count climbs"] D -->|"hits FD or goroutine
limit"| E["New connections refused"] E --> F["Health checks fail
anti-entropy stalls"] F --> G["Catalog goes stale
discovery breaks"]

Several distinct mechanisms produce the same symptom: rising goroutine count and FD usage.

Client disconnect without cleanup. When a client abruptly terminates a blocking query (process crash, network timeout, load balancer killing the connection), the server-side goroutine and FD may remain until the full wait timeout expires. A misbehaving client that repeatedly opens and aborts queries piles up goroutines faster than they expire.

consul-template goroutine leaks. consul-template creates and destroys watches on configuration reload. Lifecycle bugs can leak goroutines. consul-template v0.37.4 fixed a leak where dependencies could be added after a runner stops. Earlier versions had similar issues on config reload, including a Vault token watcher leak fixed in v0.29.4.

go-memdb WatchSet goroutine leak. A bug in WatchSet.watchMany() caused goroutine proliferation during blocking queries on large service catalogs. With a service of 10,000 instances, goroutines could spike from 40,000 to over 1 million. Fixed in Consul 1.12.7, 1.13.4, and 1.14.0 via a go-memdb update (HashiCorp merged a 1.11 backport, but published no later 1.11 patch release).

Watch limit fallback busy-loop. Consul caps the number of watch channels per blocking query (originally 2048, increased to 8192 in Consul 1.7.0). In the unoptimized health-query path, each instance can add three watches (node, node-level checks, service-specific checks); modern Consul optimizes eligible services to a service-level watch to avoid this. When a service still exceeds this limit, the WatchSet falls back to coarse-grained root nodes, watching all services, checks, and nodes. The blocking query returns early on any unrelated change, re-queries the tree, and repeats. This amplifies CPU load without leaking goroutines per se.

Streaming backend gRPC leak. When the streaming backend is enabled, gRPC connections can accumulate on client agents during router rebalancing. The cache entry is evicted after its 20-minute idle TTL. This produces a different leak surface than HTTP long-polling but the same class of resource exhaustion on client agents.

Common causes

CauseWhat it looks likeFirst thing to check
consul-template goroutine leakGoroutine count grows after config reloads and never fully recoversconsul-template version
Client crash without closing querySteady goroutine growth correlating with deploys or restarts; FD count tracks goroutine countAccess logs for source IPs of blocking queries
Watch limit fallback busy-loopHigh RPC query rate with stable Raft commit index; elevated cache misses; CPU spike on serversService instance count vs watch limit (up to three watches per instance in the fallback path)
go-memdb WatchSet leakMassive goroutine spike (100K+) correlating with high-churn service or large catalogConsul version (patched in 1.12.7, 1.13.4, 1.14.0)
Streaming backend gRPC leakgRPC connection count grows on client agents and does not reverseconsul.grpc.client.connections on client agents

Quick checks

Run these read-only commands on the affected Consul server. None are disruptive.

# Goroutine count
curl -s http://localhost:8500/v1/agent/metrics | grep consul_runtime_num_goroutines

# Count open FDs directly from the OS (assumes single consul process)
ls /proc/$(pgrep -x consul | head -1)/fd/ | wc -l

# OS-level FD limit
cat /proc/$(pgrep -x consul | head -1)/limits | grep "Max open files"

# Goroutine profile: stack traces grouped by call site
curl -s http://localhost:8500/debug/pprof/goroutine?debug=1 | head -100

# Watch-related metrics
curl -s http://localhost:8500/v1/agent/metrics | grep consul_watch

# HTTP request latency (blocking queries inflate aggregate latency)
curl -s http://localhost:8500/v1/agent/metrics | grep consul_http | grep -E "Mean|Count"

# Verify streaming backend for health queries (this is itself a 2-second blocking query)
curl -s -o /dev/null -D - "http://localhost:8500/v1/health/service/consul?index=0&wait=2s" | grep -i x-consul-query-backend

The pprof goroutine dump is the single most useful check. It shows stack traces grouped by call site, so you can immediately see whether leaked goroutines cluster in blocking query handling, watch processing, or something else entirely.

Metric names above use Prometheus-style underscore format. If your Consul telemetry uses the default dot format, replace underscores with dots (for example, consul.runtime.num_goroutines).

How to diagnose it

  1. Confirm goroutine growth is abnormal. Compare against baseline. For medium clusters, 10,000 to 20,000 goroutines is typical. Monotonic increase over hours or days without load increase is the signal. A spike to 100K or more is an active leak.

  2. Capture a goroutine profile during the leak. Run curl -s http://localhost:8500/debug/pprof/goroutine?debug=1 > goroutine-dump.txt. Look for stacks containing blockingQuery, WatchSet, WatchCtx, or watchMany. Count goroutines sharing the same stack. The call site with the most goroutines is your leak source.

  3. Identify the source clients. Check Consul HTTP access logs or network-level connection tracking for clients with many concurrent connections. Each blocking query holds a separate HTTP connection. A single consul-template instance or application pod with hundreds of connections to a server is suspicious. Look for patterns: is growth from a specific service, deployment, or namespace?

  4. Verify consul-template version. If consul-template is in the stack, versions before v0.37.4 have known goroutine leaks on config reload. If you cannot upgrade immediately, reducing config reload frequency slows the leak.

  5. Check for watch limit fallback. For health queries, use up to three watches per instance in the unoptimized path. If this exceeds 8192 (or 2048 on Consul before 1.7.0), the query falls back to root nodes and busy-loops. The symptom is high consul_rpc_query rate with a stable consul_raft_commitIndex and elevated cache miss rate despite stable data.

  6. Check Consul version for known bugs. The go-memdb WatchSet leak was fixed in 1.12.7, 1.13.4, and 1.14.0. If your servers are on 1.11.x or an earlier patch in 1.12.x/1.13.x with services that have thousands of instances, this may be the root cause.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
consul_runtime_num_goroutinesDirect proxy for concurrent blocking queriesMonotonic growth without load increase; above 50K warrants investigation, above 100K is urgent
FD usage (read /proc/<consul-pid>/fd and /proc/<consul-pid>/limits)Blocking queries hold FDs; exhaustion cascades to refused connectionsAbove 70% of soft limit, or sustained growth without corresponding connection count
consul_watch metricsWatch handler count and execution rateCount growing without corresponding service growth
HTTP API latency (consul_http_*)Blocking queries with 5-minute waits inflate latencyElevated mean latency that does not match user-perceived slowness
consul_rpc_query rateForwarded queries indicate cache misses or stale readsHigh rate with stable consul_raft_commitIndex suggests read amplification, not write load
consul_cache miss rateCache thrashing from watch limit fallback or improper index handlingElevated miss rate despite stable catalog data
consul.grpc.client.connections (if streaming enabled)Streaming backend can leak gRPC connections during rebalanceGrowing connection count on client agents that does not reverse

Note on HTTP latency: blocking queries with a 5-minute wait that return after 3 minutes report 3 minutes of latency. This is normal for that query type but pollutes aggregate latency metrics. Filter out requests carrying ?wait= or ?index= when analyzing API performance.

Fixes

Upgrade consul-template

If the goroutine profile shows leaked goroutines in consul-template’s watch lifecycle and the version is below v0.37.4, upgrade. The fix prevents dependencies from being added after a runner stops.

Upgrade Consul

If goroutine profiles show proliferation in WatchSet.watchMany() and the Consul version predates the 1.12.7, 1.13.4, or 1.14.0 patch line, upgrade. This matters most for clusters with large service catalogs where individual services have thousands of instances.

Enable the streaming backend

Consul 1.9+ introduced a streaming backend for service health queries that replaces HTTP long-polling with gRPC subscriptions. When active, API responses include X-Consul-Query-Backend: streaming. The streaming backend eliminates the per-query goroutine model for health queries, reducing server goroutine pressure.

Caveat: the streaming backend has its own known issue where gRPC connections accumulate on client agents during router rebalancing. Old subscriptions hold connections open until cache eviction. If you enable streaming to fix a goroutine leak, monitor consul.grpc.client.connections on client agents for this new failure mode.

Rate-limit or shed abusive clients

If a specific client or service is opening excessive blocking queries, rate-limit the blocking query loop on the client side. Use a token bucket with a small burst (for example, burst of 2) rather than a fixed sleep. A fixed sleep delays updates in the happy case and worsens busy-loop behavior during high churn.

If the abusive client cannot be identified or fixed quickly, consider temporarily blocking its connections at the network level while the root cause is addressed. This is disruptive to that client; use it as a stopgap, not a permanent fix.

Reduce watch scope for large services

For health queries on services with enough instances to exceed the watch limit, the watch falls back to root nodes and busy-loops. This produces server-side pressure similar to a goroutine leak (high CPU, elevated RPC rate) even though the mechanism is different. Options:

  • Split the large service into smaller logical groups that each stay under the watch limit
  • Use the streaming backend, which does not have the same per-instance channel limit
  • Watch the version you deploy: the limit is the internal watchLimit constant, not a supported user-facing setting

Increase FD limits as a stopgap

If the server is approaching FD exhaustion and the root cause cannot be fixed immediately, increasing the FD limit buys time. Check the systemd unit’s LimitNOFILE and the process-level ulimit -n. Consul documentation recommends a minimum of 65536 for servers. This does not fix the leak; it only delays the cliff.

Do not restart Consul servers as a primary fix. A restart clears goroutines and FDs temporarily but the accumulation resumes as soon as clients reconnect and re-establish their watches.

Prevention

Monitor goroutine count as a trend, not just a threshold. Alert on rate of change: goroutine count increasing by more than 1000 per minute sustained, or any monotonic increase over 24 hours without corresponding load increase. A threshold alert at 100K fires too late.

Track expected blocking query load. Know your normal: consul-template instances times templates per instance, plus application watchers, plus Connect xDS streams. If goroutine count diverges from expected blocking query load, investigate.

Verify consul-template and Consul versions during upgrades. Both have had multiple goroutine leak fixes across versions. Track versions in your fleet and prioritize upgrades when leak fixes land.

Watch for the watch limit fallback pattern. If your largest services approach the instance count where health queries exceed the watch limit (up to three watches per instance in the fallback path), plan for the streaming backend or service decomposition before the busy-loop starts.

Size FD limits with headroom. FD usage should stay below 60% of the limit in steady state. Each new consul-template instance, Connect proxy, or blocking query consumer adds to the baseline. Size the FD limit at roughly 3x current usage.

How Netdata helps

  • Per-second goroutine count metrics expose the leak trend early. A slow goroutine leak produces a visible upward slope that per-second resolution makes obvious within minutes rather than hours.
  • Correlate goroutine count with FD usage, HTTP API latency, and RPC request rate in a single view to distinguish a blocking query leak from other goroutine consumers (health check execution, gRPC streams, internal processing).
  • Anomaly detection on goroutine count flags deviations from baseline before a hard threshold fires, which matters for slow leaks that develop over days.
  • File descriptor utilization alerts (configurable at 70% and 90%) provide early warning before refused connections cascade.
  • HTTP API latency segmentation helps isolate blocking query pollution in aggregate latency metrics, so you do not chase a false latency problem when the real issue is goroutine accumulation.