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-storage-exhaustion-spiral ▌

Operations Guides

NATS JetStream storage exhaustion spiral: stalled consumers that starve retention

JetStream storage is climbing steadily. Not a spike, a slope. Then publishes start failing with API errors, producers back up, and the pipeline degrades. The server looks healthy: connections stable, CPU and memory fine. The disk is filling anyway.

This is the JetStream storage exhaustion spiral: a deadlock where one or more consumers have stalled (usually pinned at MaxAckPending) on a stream using interest or workqueue retention. The server cannot delete a message until every interested consumer has acknowledged it, so a single dead consumer makes its entire backlog undeletable. Messages accumulate, storage approaches the configured limit, and new publishes are rejected. The system is stuck: consumers must process messages to free space, but the consumers are the broken part.

This is not a plain full disk and not a producer flood, and the fix is not “add disk”. Find the stalled consumer and decide whether to revive it, pause it, or delete it so retention can proceed.

What this means

JetStream supports three retention policies. Two of them couple deletion to consumer behavior:

  • InterestPolicy: a message is kept as long as any consumer on the stream has not acknowledged it. Once all currently defined consumers have acked it, it is removed.
  • WorkQueuePolicy: a message is kept until a consumer has delivered and explicitly acknowledged it.
  • LimitsPolicy: retention is purely by age, count, or bytes. Consumer behavior does not block deletion, so limits-based streams do not exhibit this spiral.

On an interest or workqueue stream, a stalled consumer holds a veto over deletion. The most common stall is the MaxAckPending wall: the consumer has num_ack_pending equal to its configured max_ack_pending, the server suspends delivery entirely (this is a cliff, not a slope), and every new message piles up in the stream. The stream keeps accepting publishes until storage runs out.

flowchart TD
  A[Producers publish] --> B[Stream stores messages]
  B --> C{Consumer acking?}
  C -- yes --> D[Retention deletes acked messages]
  C -- no: stalled at MaxAckPending --> E[Messages undeletable, accumulate]
  E --> F[Storage approaches limit]
  F --> G[Publishes rejected, api.errors climb]
  G --> H[Producers back up or fail]

The distinguishing shape is storage climbing steadily over hours or days as the consumer falls behind. A producer flood or a misconfigured max_bytes looks different, and a plain filesystem full (another process ate the disk) shows JetStream storage well below its reserved limit while the disk itself is full. Check both before concluding anything.

Common causes

CauseWhat it looks likeFirst thing to check
Consumer application dead or hung, consumer still registerednum_ack_pending flat at max_ack_pending, num_pending growing, no acksnats consumer info for the consumer; is the application process alive?
MaxAckPending reached under slow processingConsumer alive but num_ack_pending pinned at the limit, delivery suspendedCompare num_ack_pending to config.max_ack_pending
AckWait too short for processing timenum_redelivered climbing, messages cycling delivered/redelivered without progressnum_redelivered growth rate in consumer info
Retention set to interest when limits was intendedStream grows with no consumer pressure; with zero consumers, messages vanish immediatelynats stream info, check the retention policy
max_bytes higher than the server storage budget, or unbounded (-1)One stream can eat the entire server quotaStream config vs reserved_storage in /jsz
Producer flood (not a spiral, a lookalike)Storage climbing but consumers acking normally, num_ack_pending lowConsumer lag: is num_pending flat while bytes grow?

Quick checks

All read-only. Run these before changing anything.

# 1. Server-level JetStream storage vs configured quota
curl -s http://localhost:8222/jsz | jq '{bytes, messages, memory, storage, reserved_memory, reserved_storage}'

# 2. API errors: publish rejections show up here
curl -s http://localhost:8222/jsz | jq '{api_total: .api.total, api_errors: .api.errors}'

# 3. Which streams are consuming storage, and is first_seq advancing?
nats stream report
# or per-stream detail via HTTP:
curl -s "http://localhost:8222/jsz?streams=true" | jq '.account_details[].stream_detail[] | {name: .name, messages: .state.messages, bytes: .state.bytes, first_seq: .state.first_seq, last_seq: .state.last_seq}'

# 4. Per-consumer state: the smoking gun
curl -s "http://localhost:8222/jsz?streams=true&consumers=true" | jq '.account_details[].stream_detail[].consumer_detail[] | {name: .name, ack_pending: .num_ack_pending, pending: .num_pending, redelivered: .num_redelivered}'

# 5. Confirm a specific stalled consumer
nats consumer info STREAM CONSUMER --json | jq '{ack_pending: .num_ack_pending, max_ack_pending: .config.max_ack_pending, pending: .num_pending, redelivered: .num_redelivered}'

# 6. Is it JetStream or the actual filesystem?
df -h /path/to/jetstream/store

Two cautions. /jsz?consumers=true is costlier on servers with many consumers; use it once for diagnosis, not as a tight poll loop. And per-consumer numbers on follower nodes of a replicated consumer can report zero while the leader holds the real state. Query the leader (or use the NATS CLI, which talks to the system) before concluding a consumer is idle. The zero-on-follower report was observed on 2.9.22; maintainers later aligned follower metrics through multiple fixes, including one released in 2.10.17, but leader-first checks remain the reliable incident procedure.

How to diagnose it

  1. Confirm the shape. Look at JetStream storage over time. A steady climb over hours with stable producers is the spiral. A vertical jump is a flood or a config change. Check df to rule out a non-JetStream process filling the disk.

  2. Confirm publishes are being rejected. api.errors in /jsz rising alongside storage near the limit means the server is refusing writes. This is the point of user impact.

  3. Rank streams by storage. nats stream report shows which streams hold the bytes. Pick the top offender. Check whether first_seq is advancing: if messages grows while first_seq is static, retention is blocked, not just slow.

  4. Check the retention policy. nats stream info STREAM shows the policy. If it is limits, this article does not apply; you have a sizing or flood problem. If it is interest or workqueue, continue.

  5. Find the stalled consumer. For each consumer on the stream, compare num_ack_pending against max_ack_pending. A consumer sitting at the limit with num_pending growing is stalled: delivery is suspended and its backlog pins retention. Also check num_redelivered: rapid growth means AckWait is expiring before processing finishes, and the consumer is cycling instead of progressing.

  6. Check whether the application is alive. A durable consumer whose application crashed hours ago still holds its ack state. The server sees a registered consumer with outstanding acks and refuses to delete the messages. This is the most common root cause.

  7. Check for stranded messages at MaxDeliver. On workqueue streams, messages that exhaust MaxDeliver attempts stay in the stream and are not automatically removed. They must be deleted manually via the JetStream API. A backlog of poison messages can hold storage even after the consumer recovers.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
/jsz storage vs reserved_storageCapacity metric; approaching the limit is where publish rejections startRatio above 90%, or linear growth implying exhaustion within days
/jsz api.errors (rate)Publish rejections and other JetStream failures surface hereSustained positive rate, or errors/total above 5%
Per-stream messages, bytes, first_seqShows which stream is growing and whether deletion is progressingmessages growing while first_seq is static
Consumer num_ack_pending vs max_ack_pendingThe stall detector; equality means delivery suspendedRatio above 80%; equality is critical
Consumer num_pending growthBacklog building behind a stalled or slow consumerSustained positive growth rate
Consumer num_redeliveredProcessing slower than AckWait, or consumer crash-loopingContinuous increase
Consumer delivery lag (last_seq - delivered.stream_seq)How far behind the consumer actually isGrowing lag, especially expressed as minutes of traffic
Filesystem free space on the store volumeJetStream respects its own quota, but other processes do notDisk full while /jsz storage is well under quota

The storage graph alone will not save you. Storage tells you the disk is filling; consumer lag tells you why. Correlate the two: storage climbing plus a consumer at MaxAckPending is the spiral. Storage climbing with all consumers acking normally is a producer flood or sizing problem.

Fixes

Order matters. Free storage pressure first, then fix the consumer. Do not restart the NATS server as a first move: it does not unblock retention, and on a large store, recovery replay will make things worse before they get better.

The consumer application is dead or hung

Get the application healthy if you can do it quickly: restart the worker, unblock the stuck downstream call, fix the deadlock. Once it resumes acking, retention follows automatically and storage drains.

If the application cannot be revived soon, the deliberate move is to remove the consumer’s veto over deletion:

  • NATS 2.11 and later: pause the consumer with the consumer pause API or PauseUntil. Pausing suspends delivery without destroying ack state, so you can resume later.
  • Any version: delete the consumer. This is destructive to that consumer’s position and pending state. Under interest retention, deleting the last interested consumer makes its pending messages eligible for deletion, which is exactly what frees the space. Under workqueue, unacked messages become available to other consumers on the stream if any exist. Understand which semantic you are triggering before running it.

Deleting a consumer to unblock retention is a real tradeoff: you are choosing to drop the unprocessed backlog to keep the stream writable. If the backlog matters, snapshot or drain it first.

MaxAckPending too low for processing latency

If the consumer is alive but perpetually pinned, raise max_ack_pending (default 1000) or parallelize processing so acks keep up. On NATS 2.10 and later, also check stream-level ConsumerLimits: a stream-level cap can override your per-consumer increase, so verify both levels.

AckWait shorter than processing time

Increase AckWait so messages are not redelivered mid-processing, or make processing idempotent and faster. Watch num_redelivered flatten out as confirmation.

Retention policy wrong for the workload

If the stream does not actually need consumer-coupled retention, moving to limits retention with a sane age/bytes bound removes the deadlock class entirely. This changes data durability semantics; confirm consumers tolerate replay gaps.

Emergency capacity

Extending the filesystem or raising the server/account storage limit buys time while you fix the consumer. Treat this as a bridge, not a fix: if the consumer stays stalled, the climb resumes.

Prevention

  • Alert on the precursor, not the limit. Warn when any consumer’s num_ack_pending exceeds 80% of max_ack_pending, and when num_pending grows for more than a few minutes. The spiral takes hours to fill the disk; the stall is visible within minutes.
  • Track stream growth vs first_seq movement. Retention that has stopped deleting is the earliest storage-side signal.
  • Size retention for consumer failure, not just throughput. On interest/workqueue streams, your storage headroom must absorb the longest plausible consumer outage multiplied by publish rate. Keep at least 25% free; more for interest retention, where retention depends on consumer health.
  • Avoid unbounded streams. max_bytes: -1 lets one stream consume the entire server quota. Set explicit per-stream limits below the server budget.
  • Prefer pull consumers for unreliable workers. Push consumers are subject to the MaxAckPending suspension cliff; pull consumers control their own fetch rate and degrade more gracefully.
  • Test the failure mode. Kill a consumer in staging on an interest-retention stream and watch what happens to storage, num_pending, and publish behavior. The interaction of MaxAckPending, AckWait, redelivery, and retention is only obvious once you have seen it break.
  • Scrape carefully. Per-consumer data via /jsz?consumers=true is expensive on large deployments; poll it at tens of seconds, not sub-second.

How Netdata helps

Netdata’s NATS collector polls the HTTP monitoring endpoints and surfaces the signals that matter for this failure mode:

  • JetStream storage vs reserved quota from /jsz, so the steady climb is visible as a trend with time-to-exhaustion context, not discovered at the publish-rejection wall.
  • JetStream API error rate (api.errors), which catches publish rejections the moment storage pressure turns into user impact.
  • Stream and message totals to correlate which streams are driving growth.
  • Server health, uptime, and throughput alongside, so you can rule out the lookalikes (process restarts, producer floods, connection churn) in the same view.

The diagnostic value is correlation: storage climbing, API errors starting, and publish throughput flat or rising, all on one dashboard, points at retention being blocked rather than at the server or the network. Per-consumer ack-pending detail is the one gap: Netdata currently collects aggregate JetStream figures, so keep the nats consumer info checks from this guide in your runbook for the per-consumer step.