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-connection-storm ▌

Operations Guides

NATS connection storm: reconnect thundering herd after a network event

A network device fails and recovers. A load balancer health check flaps. A rolling restart drops a node. For a few seconds, every client attached to a NATS server loses its connection. Then the network heals, and every one of those clients tries to reconnect in the same second.

Each reconnect is not cheap: TCP handshake, optional TLS handshake, protocol negotiation, authentication, and a full resubscribe of every subscription the client held. Multiply that by hundreds or thousands of clients arriving simultaneously and you have a connection storm: a sharp spike in connections and total_connections, a CPU spike dominated by TLS handshakes if encryption is enabled, memory climbing as per-connection state is allocated, and in the worst case the server hitting max_connections or the OS file descriptor limit and rejecting clients. Rejected clients retry. Now you have a reject-and-retry loop on top of the storm.

This guide covers how to recognize the pattern, tell it apart from lookalikes, ride out the acute phase, and fix the client behavior that makes storms expensive.

What this means

A connection storm is a thundering herd on the reconnect path. The trigger is always a mass disconnect event followed by mass recovery. The clients did nothing wrong individually; the problem is that they all recovered at the same instant with no spreading of their retry timing.

The server-side cost concentrates in three places:

  • CPU. Protocol negotiation and auth per connection are modest. TLS handshakes are not. Hundreds of simultaneous TLS handshakes can saturate a core, and while the server is busy negotiating sessions it is not serving the clients that are already connected.
  • File descriptors. Every connection consumes an FD, on top of routes, gateways, leaf nodes, JetStream file handles, and listener sockets. If the storm pushes the process against ulimit -n, accept() starts failing and no new connections get in. This is a cliff-edge failure with no graceful degradation.
  • Connection slots. If the server was already at moderate connection counts before the event, the burst can push it past max_connections (default 65536). New attempts are rejected outright; there is no server-side queue. The client sees the rejection and retries, which is where the loop forms.

The pattern has a characteristic shape:

flowchart LR
  A[Network event: blip, LB flap, rolling restart] --> B[Mass client disconnect]
  B --> C[Network recovers]
  C --> D[All clients reconnect simultaneously]
  D --> E[CPU spike: TLS handshakes]
  D --> F[FD and connection-slot pressure]
  E --> G{Server keeps up?}
  F --> G
  G -->|Yes| H[Connections stabilize, CPU drops]
  G -->|No| I[Rejections: max_connections or FD limit]
  I --> J[Clients retry: reject-and-retry loop]
  J --> D

Two things define severity. If the server absorbs the burst and the connection count stabilizes, this is a ticket: expensive but self-healing. If the server starts rejecting connections and clients retry in tight loops, this is a page: the storm is now self-sustaining.

If the drop-and-spike pattern repeats cyclically, the triggering network fault is still active. Treat the network as the incident, not the reconnect behavior.

Common causes

CauseWhat it looks likeFirst thing to check
Network device failure and recoveryOne sharp drop in connections, one sharp recovery spike, then stableNetwork device logs, interface error counters on the NATS hosts
Cloud networking maintenanceDrop and spike correlated with a provider maintenance windowProvider event log for the affected hosts and subnets
DNS resolution failure and recoveryClients disconnected because they could not resolve, then flooded backResolver logs, client-side DNS error timestamps
Load balancer health check flappingRepeated drop-and-spike cycles as backends are removed and restoredLB health check logs and backend membership history
Rolling restart without connection drainingStorm synchronized with deploy timing; one server drops to zero then refillsDeploy timeline vs total_connections delta on each node
Missing client backoff or jitterEvery reconnect attempt lands in the same few milliseconds after recoveryClient library reconnect configuration

Quick checks

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

# Connection state: active, cumulative, and the configured ceiling
curl -s http://localhost:8222/varz | jq '{active: .connections, total: .total_connections, max: .max_connections}'

# CPU and memory: is the server still working through handshakes?
curl -s http://localhost:8222/varz | jq '{cpu, mem, cores}'

# Uptime: did the server itself restart during the event?
curl -s http://localhost:8222/varz | jq .uptime

# Slow consumers: did the storm push any connections into backpressure?
curl -s http://localhost:8222/varz | jq .slow_consumers

# Route health: in a cluster, did routes flap too?
curl -s http://localhost:8222/varz | jq .routes

# Health probe: is the server responsive at all right now?
curl -s http://localhost:8222/healthz?js-server-only=true

# OS file descriptor ceiling for the server process
cat /proc/$(pgrep nats-server | head -1)/limits | grep "open files"

/varz exposes both an aggregate slow_consumers counter and a slow_consumer_stats breakdown (clients, routes, gateways, leafs), but neither endpoint identifies which specific connection tripped; the server log carries the per-connection detail.

The two numbers to watch together are connections (active gauge) and total_connections (cumulative counter since start). During a storm, total_connections jumps rapidly while connections oscillates. After recovery, connections flattens and total_connections stops climbing. If total_connections keeps climbing at a high rate while connections stays flat or low, clients are connecting and being dropped or disconnected in a loop.

How to diagnose it

  1. Confirm the shape. Pull a time series of connections and total_connections across the event window. A connection storm shows a sharp drop followed seconds later by a near-vertical recovery. A slow consumer cascade or connection leak ramps; a storm steps.
  2. Check whether the server kept up. If connections recovered to roughly the pre-event count and CPU has fallen back, the server absorbed the burst. Verify the slow consumer counter did not tick up during the window, since a burst of reconnecting clients resubscribing and catching up can push weak consumers into backpressure.
  3. Look for rejection. If connections recovered to a plateau below the pre-event count and total_connections is still climbing fast, clients are being rejected and retrying. Compare connections against max_connections (alert-worthy above 85% utilization) and against the process FD limit. On the client side, the Go client surfaces this as a max-connections-exceeded error; in server logs you will see the corresponding rejects.
  4. Attribute the CPU spike. If TLS is enabled and CPU spiked with the reconnect burst while message throughput was still recovering, handshake cost is the driver. Plain TCP reconnects rarely saturate CPU on their own.
  5. Decide if it is cyclical. One drop-and-spike is an event. Repeated drop-and-spike at a regular interval is an active fault: a flapping LB health check, an unstable link, or a DNS resolver failing intermittently. Do not tune clients to tolerate a fault that should be fixed.
  6. Correlate across the cluster. In a multi-server cluster, check uptime and connections on every node. If clients pile onto surviving nodes after one node dropped, the blast radius concentrates there. Route counts on each server should be N-1 for an N-node cluster; a route drop during the same window means the event hit the cluster fabric too, which is a different and larger problem.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
connections (active)Current client load; the storm shape lives hereSharp drop followed by near-vertical recovery
total_connections deltaChurn rate; reveals reject-and-retry loops even when active count looks stableHigh delta rate while connections stays flat
connections / max_connectionsProximity to the hard rejection wallAbove 85% during or after a recovery event
FD usage vs ulimit -nThe cliff that arrives before max_connections doesHeadroom below 30% during normal operation
cpuTLS handshake saturation during the burstSpike synchronized with the reconnect burst, slow to decay
memPer-connection state allocation during the burstStep up during the storm that does not release
slow_consumersReconnected clients catching up can trip backpressureAny increase during the recovery window
uptimeSeparates “server restarted” from “network dropped clients”Reset synchronized with the event means a different incident
routesCluster fabric health during the same eventBelow N-1 for the cluster size

Fixes

Ride out the acute phase

If the server is recovering (connection count stabilizing, CPU falling), do nothing disruptive. Do not restart the server; a restart drops every connection again and re-triggers the exact storm you are trying to exit. Watch total_connections delta and CPU until both settle.

If the server is rejecting connections in a loop:

  • Confirm which wall you hit. connections pinned at max_connections is the NATS limit. accept() errors in the server log with connections below max_connections is the FD limit. The remediation differs.
  • If the FD limit is the wall, raising ulimit -n requires a restart to take effect, which itself causes a full storm. Plan it: raise the limit, then restart during a window when a full-client reconnect burst is survivable, or roll through a cluster one node at a time so clients land on peers. Production NATS should run with at least 65536 FDs; the 1024 default on some systems is catastrophically low.
  • If max_connections is the wall, remember that routes, gateways, and leaf node connections count toward it too, so the pool available to clients is smaller than the number suggests. Raising it buys headroom but does nothing for the FD or CPU limits underneath.

Fix client reconnect behavior (the real fix)

The storm exists because every client retries at the same moment. Spreading retries in time is what turns a storm into a queue the server can drain.

  • Enable or increase reconnect jitter. The Go client defaults are a 2s reconnect wait with 100ms jitter for plain TCP and 1s jitter for TLS (ReconnectJitter, ReconnectJitterTLS). For large client populations, those defaults spread reconnects over a narrow window. Increasing jitter, especially the TLS value, directly reduces simultaneous handshakes.
  • Keep bounded retries with backoff. MaxReconnect default is 60 attempts. Clients that give up entirely during a long event become a different incident (a fleet of dead services), so do not fix the storm by disabling reconnects. Fix the timing, not the resilience.
  • Randomize the server list. Most client libraries randomize the order of the configured server list on connect and reconnect by default, which spreads the herd across cluster nodes. If your clients were configured with an explicit ordered server list and randomization disabled, a recovery event concentrates the entire fleet on the first server in the list.
  • Watch the reconnect buffer. During the disconnect window, clients buffer publishes (default 8MB in the Go client). Publishers that out-produce the buffer drop messages with a reconnect-buffer-exceeded error. This is a data-loss edge hiding inside the connectivity incident.

Server-side admission control

  • connection_rate_limit (TLS config block, server v2.7.0+) caps new TLS client connections per second. This is the primary server-side defense against handshake storms: it deliberately slows admission so CPU stays available for established connections. Default is 0 (disabled). It applies to TLS client connections only; there is no equivalent rate limiter for plain TCP connections.
  • Connection-slot headroom. Keep at least 20% of max_connections free in steady state specifically to absorb reconnection bursts. If your normal operating point is above 80%, the next network event becomes a rejection incident by arithmetic, not bad luck.

Fix the network fault

If the pattern is cyclical, none of the above is the fix. Pull LB health check history, DNS resolver logs, and network device logs for the exact timestamps of the drops. A flapping health check that removes and restores a backend every 30 seconds will produce a connection storm every 30 seconds until someone fixes the check.

Prevent storms from your own restarts

Rolling restarts and config reloads are self-inflicted mass-disconnect events. Lame duck mode drains clients gradually: the server signals clients to reconnect elsewhere over a drain window instead of dropping them all at once. Use it for planned restarts. Even a fast restart without draining drops all connections simultaneously and hands the thundering herd to the surviving servers.

Prevention

  • Client-side jitter and backoff as a standard. Make reconnect jitter (with a raised TLS jitter for large fleets) part of your standard client configuration, not a per-team choice.
  • FD limits sized for the storm, not the average. ulimit -n should exceed max_connections plus JetStream file handles plus routes, gateways, and leaf nodes, with margin.
  • Enable lame duck mode for all planned restarts and verify your deploy tooling uses it.
  • Alert on churn, not just count. total_connections delta rate is the leading indicator of a reject-and-retry loop; connections alone masks it because a stable active count can hide violent churn underneath.
  • Distribute clients across the cluster with randomized server lists, and watch per-node connection concentration. If most of an account’s clients sit on one server, losing that server turns a node event into an account-wide storm on the survivors.
  • Enable connection_rate_limit on TLS servers as cheap insurance against handshake saturation.

How Netdata helps

  • Storm shape recognition: Netdata collects connections and total_connections from /varz per second, so the drop-and-vertical-recovery signature is visible in the dashboard without waiting for a 60-second scrape to smear it out.
  • Churn vs count: plotting the total_connections rate against the active connections gauge exposes reject-and-retry loops that a stable-looking active count would hide.
  • CPU correlation: overlaying process CPU on the reconnect window confirms (or rules out) TLS handshake saturation as the bottleneck during the burst.
  • Capacity wall proximity: tracking connections against the configured max_connections shows how close a recovery event pushed you toward hard rejections.
  • Cluster-wide correlation: viewing the same signals across all nodes at once separates a single-server event from a cluster-wide network fault, and shows where the herd re-landed.