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-raft-election-storm ▌

Operations Guides

NATS JetStream Raft election storm: leaders flapping and writes pausing repeatedly

Your JetStream cluster is electing leaders over and over. Logs alternate rapidly between Stepping down and JetStream cluster new leader. Publishes intermittently time out, stream and consumer management calls error out, and some streams briefly report no leader at all. Then it settles for a few minutes and starts again.

This is a Raft election storm. It is not a clean failover and it is not usually a software bug. It is a symptom of resource starvation or latency somewhere in the cluster, and it feeds itself: elections consume CPU and I/O, which delays heartbeats further, which triggers more elections.

JetStream almost always self-heals once you remove the underlying pressure. The job is to find that pressure fast, because while the storm runs, writes to affected Raft groups are paused.

What this means

Clustered JetStream uses Raft for consensus. There is one meta Raft group for cluster-wide JetStream metadata (stream and consumer assignments), and each replicated stream and consumer has its own Raft group. Leaders must heartbeat to followers on time. When heartbeats are delayed, by CPU starvation, disk I/O latency on the Raft WAL, network jitter, or Go GC pauses, followers stop hearing from the leader and start an election.

A single election is normal and cheap. A storm happens when the cause affects all nodes at once: the new leader inherits the same starvation, misses its own heartbeats, and gets voted out. Each election pauses writes for that group, and when many stream and consumer groups elect simultaneously, the election traffic itself adds load. That is the self-reinforcing part.

In current nats-server source, the defaults are a 1-second heartbeat interval and a randomized election timeout from 4 to 9 seconds; neither is an operator configuration option.

Two operational reference points from the field:

  • More than 1 election per hour in steady state warrants investigation.
  • More than 1 election per minute is critical: JetStream writes are effectively blocked.

Election storms pause writes but do not destroy stored data. Messages already committed in streams are safe. The damage is availability: writes and management operations fail during elections, and if the meta group is flapping, every stream and consumer group whose leader sat on the flapping node feels it.

flowchart TD
  A[Underlying pressure: CPU steal, slow WAL disk, network jitter, GC pauses] --> B[Raft heartbeats delayed]
  B --> C[Followers time out and start elections]
  C --> D[Writes pause for electing groups]
  C --> E[Election traffic adds CPU and I/O load]
  E --> A
  D --> F[api.errors spike, api.inflight climbs]
  D --> G[Streams intermittently report no leader]

Common causes

CauseWhat it looks likeFirst thing to check
Network-attached storage WAL latency (the #1 cause)Elections sporadic rather than continuous; high iowait; disk latency spikes correlate with election burstsiostat -x on the JetStream storage device during a storm
CPU starvation / oversubscribed VMsElections coincide with CPU saturation or high steal time; too many Raft groups for the core countCPU per node during a storm; steal time; stream and consumer counts
Network jitter between cluster membersRoute RTT fluctuating; elections cluster around network events/routez RTT across peers over several minutes
Go GC pausesElections follow memory pressure; sawtooth memory with growing peaks/varz mem trend; GC behavior under load
Too many Raft groupsThousands of streams/consumers; even healthy hardware cannot keep up/jsz streams and consumers counts
Rolling restart or lame-duck cyclingElections follow a pod/node restart pattern; orchestrator health checks killing slow-recovering nodes/varz uptime across nodes; orchestrator event history

Quick checks

All read-only. Run these during a storm if you can; the signals decay fast.

# 1. Meta group leader: is it stable? Run repeatedly over a few minutes.
curl -s http://localhost:8222/jsz | jq '.meta_cluster | {leader, replicas: [.replicas[]? | {name, current, offline, lag}]}'

# 2. JetStream API pressure: errors and inflight during elections
curl -s http://localhost:8222/jsz | jq '{api_total: .api.total, api_errors: .api.errors, api_inflight: .api.inflight}'

# 3. Election frequency from the logs (the signature of a storm)
grep -c "new leader" /var/log/nats/nats-server.log
grep -c "Stepping down" /var/log/nats/nats-server.log

# 4. Overall JetStream state and Raft group inventory
nats server report jetstream

# 5. Per-stream leader distribution: is leadership concentrated on one node?
nats stream report --json | jq '.[] | {stream: .Name, leader: .Cluster.Leader}'

# 6. Route RTT: is inter-node latency elevated or fluctuating?
curl -s http://localhost:8222/routez | jq '.routes[] | {rid, ip, rtt}'

# 7. Disk latency on the JetStream storage path
iostat -x 2 5

# 8. Kernel-level I/O errors
dmesg | tail -50

# 9. CPU and memory of the server process
curl -s http://localhost:8222/varz | jq '{cpu, cores, mem, uptime}'

On check 1: a healthy clustered deployment holds the same meta leader for days or weeks. If the leader field changes between polls a minute apart, you have your confirmation. For per-stream Raft group detail beyond the meta group, use /raftz (see the diagnostic steps below).

How to diagnose it

  1. Confirm the storm and measure its rate. Count elections over a fixed window from the logs: grep "new leader" /var/log/nats/nats-server.log | wc -l over a known log rotation period, or watch meta_cluster.leader across polls. Compare against the reference points: more than 1/hour is worth investigating, more than 1/minute is critical.

  2. Determine the blast radius: meta group, stream groups, or both. If only the meta leader is flapping, administrative operations (stream/consumer create, update) fail, but existing stream leaders keep serving reads and writes independently. If stream and consumer groups are also electing, writes to those specific streams pause during each election. Check per-stream state with nats stream info <stream> --json | jq '.cluster' and per-group detail via curl -s http://localhost:8222/raftz.

  3. Check the disk first. Network-attached storage with variable WAL write latency is the most common root cause. Raft log appends are latency-sensitive; when they stall, heartbeat processing stalls. During a storm, run iostat -x and watch await and %util on the JetStream device, and check dmesg for I/O errors or filesystem stall messages. If JetStream storage sits on network storage (EBS-class volumes, NFS), treat it as the prime suspect until proven otherwise.

  4. Check CPU on every cluster member, not just the current leader. Election storms are usually a whole-cluster condition. Look for saturation, steal time on cloud VMs (oversubscribed hosts), and whether the node and core count are plausible for the number of Raft groups you are running. Thousands of streams and consumers means thousands of Raft groups, each with timers and apply loops; there is a real ceiling per node.

  5. Check memory and GC. Growing RSS with deepening sawtooth peaks means GC pressure, and a long GC pause on the wrong goroutine delays heartbeats. Pull /varz mem over time and correlate election bursts with GC recovery drops.

  6. Check the network between peers. Pull route RTT repeatedly from /routez on each node. Low average RTT does not rule out jitter; you are looking for variance and spikes that line up with election bursts. Cross-AZ deployments are more exposed here than same-rack ones.

  7. Check for a cycling node. If one server keeps restarting (failing health checks during slow JetStream recovery, then being killed by the orchestrator), each restart forces leadership step-downs and re-elections. Compare uptime across nodes; a node with repeatedly resetting uptime during storms is a cause, not a victim.

  8. Correlate with application-visible symptoms. During elections, /jsz shows api.inflight climbing and api.errors increasing; clients see publish timeouts and failed management calls. Confirming this correlation tells you the storm, not a separate storage or consumer problem, is what users are feeling. For the client-side symptom view, see NATS context deadline exceeded.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Election event rate (log-derived)Direct measure of the storm>1/hour investigate; >1/minute critical
meta_cluster.leader stability (/jsz)Confirms whether the meta group is flappingLeader name changing between scrapes
meta_cluster.replicas[].current / .offline / .lag (/jsz)Peers falling behind or unreachable reduce real redundancyAny peer current=false or offline=true sustained
api.errors rate (/jsz)Management and publish operations failing during electionsSustained positive rate; errors/total >5%
api.inflight (/jsz)JetStream slow to answer API calls, often Raft or diskPersistently high versus baseline
Route RTT (/routez)Inter-node latency and jitter, a leading election triggerVariance and spikes, not just averages
Disk await / iowait on the JetStream deviceWAL latency is the most common root causeLatency spikes correlating with election bursts
/varz cpu and mem per nodeCPU starvation and GC pauses delay heartbeatsSaturation or steal on any member during storms
Uptime resets per node (/varz)A cycling node forces repeated step-downsUptime resetting during storm windows

Fixes

Grouped by cause. Do not restart anything until you know which one you are dealing with.

Break the cycle first (any cause)

If the storm is self-sustaining and writes are broadly blocked, you have two levers:

  • Reduce load. Pause or throttle non-critical publishers and any JetStream-heavy batch jobs. Fewer in-flight proposals and less WAL pressure gives Raft room to stabilize.
  • Rolling restart, one node at a time. Restarting a single node temporarily reduces the active Raft group count on that node and can interrupt the feedback loop. Wait for the node to fully rejoin and for its peers to report current=true before touching the next one. Do not restart more than one node at a time; in a 3-node cluster, losing two members simultaneously loses quorum for every R=3 group, which converts a storm into an outage.

Slow storage: the WAL latency fix

Move JetStream storage to local SSDs. This is the durable fix for the most common cause and the playbook recommendation for production. If you cannot move off network-attached storage immediately, reduce the number of streams and consumers sharing the volume, and check for competing I/O: filesystem backups and snapshots on the same device cause exactly the kind of intermittent latency that produces sporadic (not continuous) flapping.

CPU starvation

Add cores, move nodes off oversubscribed hosts, or reduce the Raft group count by consolidating streams and deleting unused consumers. Note from the field: upgrading instance size alone does not always resolve storms when the group count is very high; the group count itself is the scaling dimension.

Network jitter

Co-locate cluster members (same AZ or at least low-variance paths), and investigate any route RTT variance found in diagnosis. There is no operator-tunable Raft election timeout in NATS; the fix is to remove the jitter, not to tune the protocol.

A cycling node

Fix the restart loop before anything else: generous readiness probe timeouts so JetStream recovery can finish, and check the orchestrator’s reason for killing the pod. Each cycle forces step-downs and elections, and the node rejoining under load makes the storm worse. See NATS crash loop: unexpected uptime resets and repeated restarts.

Prevention

  • Local SSDs for JetStream storage. Treat network-attached storage for the Raft WAL as a known-risk configuration, not a default.
  • Budget Raft groups. Track stream and consumer counts from /jsz as a capacity metric, the same way you track connections and storage. Growth here is growth in election surface area.
  • Alert on election rate, not on “is JetStream up”. Elections give you minutes to hours of warning before availability degrades. Server-level health checks fire after the damage.
  • Alert on the leading indicators: api.inflight trend, disk await on the JetStream device, route RTT variance, and per-node CPU steal. These move before the elections start.
  • Size headroom for the worst window, not the average: deploys, backups, and recovery storms all stack on top of normal load. Keep CPU and IOPS comfortably below saturation.
  • Watch leader distribution. Leadership should be roughly even across members. Concentration on one node concentrates write load and makes that node’s slowdown a cluster-wide election trigger.

How Netdata helps

  • Election detection without log plumbing: Netdata tracks JetStream meta cluster state from /jsz, so leader churn and peer current/offline/lag status are visible as time series rather than something you grep for after the fact.
  • API pressure correlation: api.errors, api.total, and api.inflight on one dashboard let you confirm in seconds that user-facing failures line up with election windows.
  • Disk latency next to JetStream signals: per-device await and utilization charts alongside JetStream API metrics make the WAL-latency root cause visible as a correlation, not a guess.
  • CPU, steal time, and memory per node: the three starvation sources (oversubscription, GC pressure, saturation) are charted per second, which matters because election-triggering pauses are short.
  • Uptime resets across the cluster: a cycling node shows up immediately when uptime charts for all members are stacked.
  • Route and connection health in the same view: since network jitter is a candidate cause, having route connectivity and system network metrics adjacent shortens the elimination step.