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 / nats / nats-subscription-leak ▌

Operations Guides

NATS subscription leak: unbounded subscription growth and subject-trie bloat

The symptom is a number that only goes up. You open /varz on a NATS server and subscriptions is higher than it was yesterday, higher than it was last week, climbing for days while connections stays flat. Memory follows the same slope. Nothing is erroring. No slow consumers, no restarts, no complaints from applications. The server just keeps getting heavier.

That is a subscription leak: an application (or a bug) is registering subscriptions faster than it removes them. Every subscription lives in the server’s subject trie and in per-connection tracking state. Left alone, the leak consumes memory, slows subject matching, and in a cluster propagates interest across routes so that one leaky client inflates the subject trie on every server.

What this means

NATS routes messages through an in-memory subject trie (the Sublist). Each subscription inserts nodes into that trie, and each connection carries its own subscription tracking state. Wildcard subscriptions (* for one token, > for multi-token) add branching to the trie, so pathological wildcard patterns cost more than plain literal subjects. The trie is efficient, but it is not free: every subscription consumes memory, and every published message is matched against the trie, so a bloated trie adds CPU cost to the hot path of every message.

Three properties make this failure mode nasty:

  1. It is silent. Subscribing is a normal, successful operation. The server does not log or reject a subscription just because a client already has 200,000 of them (unless you set a limit; see Fixes).
  2. It survives reconnects in a disguised form. When a leaky client disconnects, its subscriptions are cleaned up, but a buggy auto-resubscribe loop recreates them immediately, so the count dips and resumes climbing.
  3. It spreads. In a cluster, interest propagation advertises subscriptions across routes. A leak on one server inflates routing state on all of them.
flowchart TD
    A[Client subscribes in a loop or without unsubscribe] --> B[subscriptions counter climbs in /varz]
    B --> C[Subject trie nodes accumulate]
    B --> D[Per-connection tracking state grows]
    C --> E[RSS grows without GC recovery]
    C --> F[Subject matching CPU rises]
    B --> G[Interest propagates across routes]
    G --> H[Peer servers' routing state inflates too]

One nuance before you assume the worst: in a cluster, /varz subscriptions includes remote interest. Remote subscriptions from cluster peers show up as binary interest, roughly one entry per subject per remote server, so a clustered server will always report more subscriptions than its local clients hold. Compare like for like: trend over time on the same server, and sanity-check against per-connection counts.

Common causes

CauseWhat it looks likeFirst thing to check
Subscribe-without-unsubscribe bugSteady linear growth in subscriptions, flat connections/connz?subs=1 sorted to find the connection holding the most subs
Per-request subscriptions (unique reply subjects or per-entity subjects)Growth correlates with request rate, subjects look like orders.8372614.> or _INBOX.xxx variantsInspect the actual subject strings on the heaviest connection
Buggy auto-resubscribe on reconnectSawtooth: count drops when a client disconnects, then climbs again after reconnectCorrelate total_connections churn with subscription growth
Wildcard explosionFewer subscriptions but disproportionate memory and matching CPULook for overlapping wildcard patterns like *.*.foo across many subject namespaces
Cluster interest amplificationAll servers show growth even though the leaky client connects to oneCompare subscriptions across cluster members; find the origin server
Counting artifact (old server versions)Count climbs but per-connection accounting does not matchCheck server version against known /varz counting bugs (see below)

A note on the last row: certain older server versions had genuine counting bugs. Notably, nats-server PR #2172 fixed /varz doubling the subscription count on every HTTP fetch; it was merged after 2.2.2 and included in 2.2.3. Also, 2.0.0-era remote binary interest could make the global /varz count legitimately diverge from /connz per-connection totals (issue #1065). If the global count climbs but per-connection subscription counts are stable, verify the version and account for remote interest before blaming an application.

Quick checks

All of these are read-only against the monitoring port (default 8222).

# 1. Get the subscription count. This is the only number you need for trending.
curl -s http://localhost:8222/varz | jq .subscriptions

# 2. Compare against connection counts. Growth without connection growth = leak.
curl -s http://localhost:8222/varz | jq '{connections, total_connections, subscriptions, mem, uptime}'

# 3. Find the connections holding the most subscriptions.
curl -s "http://localhost:8222/connz?subs=1&limit=20" \
  | jq '[.connections[] | {cid, name, ip, subscriptions}] | sort_by(.subscriptions) | reverse | .[:10]'

# 4. Sample the count twice to compute a leak rate.
curl -s http://localhost:8222/varz | jq .subscriptions; sleep 60; curl -s http://localhost:8222/varz | jq .subscriptions

# 5. In a cluster, compare across servers to find the origin.
for h in nats-1 nats-2 nats-3; do echo -n "$h: "; curl -s http://$h:8222/varz | jq .subscriptions; done

Two hard safety rules:

  • Never fetch /subsz?subs=1 on a server with a high subscription count. The full subscription scan can stall a large server. Use the COUNT from /varz, never the LIST from /subsz. If you must inspect individual subjects, inspect them per-connection via /connz?subs=1 with limit and offset, and even that is expensive at scale.
  • Treat /connz with subs=1 as a diagnostic you run a few times during an incident, not something you scrape every 10 seconds.

If you have the NATS CLI tooling installed, nats-top -n 1 -sort subs is the documented one-shot form for the largest subscription counts without touching /subsz; use its subscription-column toggle if your UI hides the column.

How to diagnose it

  1. Confirm the trend. Pull /varz subscriptions at two or three points over a few minutes. A flat line with deployment spikes is normal. A monotonic climb at a steady rate is a leak. Compute the rate: (count2 - count1) / interval.

  2. Rule out connection growth. Check connections and total_connections over the same window. If connections is flat while subscriptions climbs, one or more existing clients are accumulating subscriptions. If total_connections is climbing fast while connections is stable, you have churn, and the leak may be a resubscribe bug: each reconnect adds subscriptions without cleaning up. See NATS connection churn for that pattern.

  3. Identify the culprit connection. Use /connz?subs=1 with a limit and sort client-side by the subscriptions field (step 3 above). The leaking connection usually stands out by orders of magnitude. Note its cid, name, and source IP.

  4. Inspect the subject strings. On the offending connection, look at the actual subjects. The pattern tells you the bug class:

    • Unique token per subscription (foo.<uuid>, events.user.<id>): the app is subscribing per entity or per request and never unsubscribing.
    • _INBOX-style names piling up: request-reply traffic creating subscriptions per request instead of using a single wildcard inbox.
    • The same literal subject thousands of times on one connection: a resubscribe loop that re-registers on every reconnect attempt.
  5. Check the blast radius. In a cluster, query /varz subscriptions on every server. If all servers show growth, interest has propagated; the origin server is the one where the culprit connection lives. Also check memory (/varz mem) on each peer to see how much the propagated interest is costing them.

  6. Rule out a counting artifact. If per-connection counts do not add up to anywhere near the /varz total, check the server version against the known counting bugs mentioned above. On a clustered server, remember that remote interest legitimately inflates the total.

  7. Quantify the resource impact. Watch /varz mem and cpu alongside the subscription count. Memory climbing with the count confirms trie and tracking-state bloat. CPU rising while message rate is steady confirms matching cost.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
/varz subscriptionsThe primary leak indicator. Alert on rate of change, not absolute valuePositive slope sustained over hours with flat connection count
/varz connections and total_connectionsSeparates a leak (flat connections) from churn-driven resubscription (climbing total)Churn delta high while count stable
/varz memTrie and per-connection tracking consume RSS; growth here confirms real bloatMonotonic growth without GC recovery, tracking the subscription slope
/varz cpuSubject matching runs per message against the trieCPU rising while message rate is flat
/varz routes and per-server subscriptionsCluster-wide propagation checkPeer subscription counts rising in lockstep
/varz http_req_statsDetects someone scraping /subsz and making things worseNon-trivial request rate against /subsz
/varz uptimeA restart resets the count and hides the leak historyUnexpected resets masking the trend

The single most useful alert is rate-of-change on subscriptions relative to connections. Absolute thresholds break across deployments; tens of thousands of subscriptions is normal for one system and catastrophic for another. A deployment will temporarily double the count (blue-green overlap) and that is fine, which is another reason to alert on sustained slope over hours, not instantaneous spikes.

Fixes

Fix the client bug (the real fix)

Everything else is containment. The common shapes:

  • Subscribe once, demux in the handler. If the app subscribes per entity (orders.<id>), replace with a wildcard (orders.*) plus routing logic in the callback, or a shared subscription with a dispatch table.
  • Unsubscribe deterministically. Every subscribe needs a matching unsubscribe (or drain) tied to the same lifecycle as the work it serves. If subscriptions are created per request, they must be torn down per request, or replaced by a single wildcard inbox subscription.
  • Fix the resubscribe path. Client libraries auto-resubscribe after reconnect by replaying the subscription set. If application code also re-subscribes in a connect callback, you get duplicates on every reconnect. Subscribe in exactly one place.

Set a per-connection limit (containment)

The max_subscriptions server configuration option limits how many subscriptions a single client (or leafnode) connection may hold. The default is 0, meaning unlimited. Setting a real ceiling, sized well above legitimate per-client usage, converts a silent memory leak into a loud client-side error the moment the buggy app crosses the line. That is a much better failure mode than an OOM-killed server; exceeding the limit disconnects the connection with Maximum Subscriptions Exceeded.

Tradeoff: a legitimate high-subscription client (an aggregator, a gateway-style service) will hit the wall too, so size the limit from observed baselines, not guesses.

Restart or disconnect (triage only)

Killing the offending connection frees its subscription state immediately. The count drops, memory follows after GC. But if the client bug is still live, the leak resumes on reconnect, sometimes faster. Disconnect the client only to buy time while the fix ships, and expect the count to start climbing again. Do not restart the server as a first response: in a cluster the client will reconnect to a peer and continue leaking there, and you lose the evidence.

Reduce wildcard cardinality

If the bloat comes from overlapping wildcard patterns rather than raw count, consolidate the subject namespace. Many overlapping wildcard subscriptions across high-cardinality subject trees create far more trie branching than the same number of literal subscriptions. Flattening the namespace or replacing overlapping wildcards with fewer, broader ones reduces both memory and matching cost.

Prevention

  • Alert on slope, not level. Track subscriptions per second over a rolling window and alert on sustained positive rate-of-change decoupled from connection growth. Gate out deploy windows if blue-green spikes are noisy.
  • Baseline per-application subscription counts. Know how many subscriptions each service should hold. A connection with 10x its baseline is a leak in progress, long before server-level totals look scary.
  • Set max_subscriptions on every production server as a backstop, sized from observed legitimate maximums.
  • Add the count to your monitoring checklist alongside connections, memory, and slow consumers. Subscription count tracking is a Level 3 maturity signal in the NATS monitoring maturity model, and this incident is exactly why.
  • Never automate /subsz collection. Keep it out of scrapers and cron jobs. Count from /varz, inspect per-connection with /connz when actively debugging.
  • Test reconnect behavior in staging. Bounce a client repeatedly and watch whether its subscription count returns to baseline or ratchets upward. Resubscribe bugs only show up across reconnect boundaries.

How Netdata helps

  • Netdata’s NATS collector polls /varz continuously, so subscriptions, connections, and total_connections are charted together at high resolution. The leak signature, a rising subscription line over a flat connection line, is visible at a glance.
  • Rate-of-change alerting on the subscription count catches slow leaks that take days to matter. An absolute threshold would either never fire or fire on every deployment.
  • Correlating subscriptions with process RSS (mem) and CPU on the same dashboard confirms the bloat is real resource consumption, not a counting artifact, and shows the slope you need for runway estimation.
  • Uptime tracking alongside the count exposes restarts that reset the counter and disguise a long-running leak as a fresh baseline.
  • In a cluster, per-server subscription charts side by side show propagation: all servers climbing together means interest is spreading from one origin, which narrows the search to the server holding the culprit connection.