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-write-deadline-tuning ▌

Operations Guides

NATS write_deadline and buffer sizing: tuning how long the server waits on a slow writer

A client gets disconnected with Slow Consumer Detected in the server log. Someone raises write_deadline, the disconnects stop, and the ticket gets closed. Two weeks later the same client is back in the log, and now the server is also showing memory growth because the larger buffer window lets more messages pile up per connection. This is the standard lifecycle of a write_deadline tuning mistake.

write_deadline controls how long the NATS server will block on flushing data to a connection before it declares that connection slow. The per-connection pending buffer controls how much data can accumulate while the server waits. Together they define the backpressure contract between the server and every client, route, gateway, and leafnode connection. Set them too aggressively and healthy-but-bursty clients get disconnected. Set them too loosely and pending buffers pin memory while genuinely broken consumers go undetected longer.

This guide covers how detection works, how to size both knobs against your RTT and payload profile, and how to tell a tuning problem from an under-scaled consumer.

What this means

Every connection to a NATS server gets dedicated read and write goroutines with a per-connection write buffer. When the server routes a message to a subscriber, it writes into that connection’s pending buffer, and the write goroutine flushes the buffer to the socket. Two conditions flag the connection as a slow consumer:

  1. A flush to the connection takes longer than write_deadline (default 10 seconds since v2.2; it was 2 seconds in v2.0.x through v2.1.x).
  2. The pending outbound bytes for the connection exceed the internal buffer limit (the server-side max_pending, 64 MB per connection by default).

When either trips, the server closes the connection and logs a line of the form Slow Consumer Detected: WriteDeadline of Xs exceeded with N chunks of Y total bytes. The client library then auto-reconnects, resubscribes, and if the underlying consumer is still too slow, immediately starts building a backlog again. That is the reconnect-disconnect churn spiral.

flowchart TD
  A[Message matched to subscriber] --> B[Write into connection pending buffer]
  B --> C{Flush completes within write_deadline?}
  C -->|yes| D[Connection healthy]
  C -->|no| E[Flag slow consumer]
  B --> F{Pending bytes exceed buffer limit?}
  F -->|no| C
  F -->|yes| E
  E --> G[Server closes connection]
  G --> H[Client auto-reconnects and resubscribes]
  H --> B

One detail that changes blast radius: this logic applies to every connection type, not just clients. Routes, gateways, and leafnodes each carry their own buffers and their own slow consumer risk. A slow consumer on a route means inter-server delivery is backing up, which is a cluster-wide problem. Check the breakdown before assuming it is a client issue:

# Slow consumer totals and breakdown by connection type
curl -s http://localhost:8222/varz | jq '{slow_consumers, slow_consumer_stats}'

Common causes

CauseWhat it looks likeFirst thing to check
Under-scaled consumer applicationslow_consumers rate climbs steadily; same client names recur after reconnectsPer-connection pending_bytes via /connz?sort=pending
Deadline too tight for burst profileDisconnections cluster at traffic peaks; consumers are healthy the rest of the timeCorrelate disconnect timestamps with in_msgs rate spikes
High RTT or congested pathHigh-RTT connections are the ones flagged; LAN clients finertt per connection in /connz?sort=rtt
Route/gateway backpressureslow_consumer_stats.routes or .gateways non-zero; cluster-wide delivery degradation/routez per-route pending_size
Rolling restart transientsRoute slow consumer events only during deploys; node catching up on gossipTiming correlation with restarts
Server version pre-v2.6.5One slow subscriber stalls delivery to other subscribers on the same publish path; Readloop processing time warnings in logsServer version

Quick checks

All read-only, safe to run against a production server with the monitoring port enabled.

# Overall slow consumer counters and per-type breakdown
curl -s http://localhost:8222/varz | jq '{slow_consumers, slow_consumer_stats}'

# Worst-offending client connections by buffered bytes
curl -s "http://localhost:8222/connz?sort=pending&limit=10" | \
  jq '.connections[] | {cid, name, ip, pending_bytes, subscriptions, rtt}'

# Route-level backpressure (clustered servers only)
curl -s http://localhost:8222/routez | jq '.routes[] | {rid, ip, pending_size, rtt}'

# Memory and churn context: buffers show up in RSS, churn shows in total_connections
curl -s http://localhost:8222/varz | jq '{mem, connections, total_connections}'

# Write-path distress precursors, where exposed
curl -s http://localhost:8222/varz | jq '{stalled_clients, stale_connections}'

# Disconnect events in the server log
grep "Slow Consumer Detected" /var/log/nats/nats-server.log | tail -20

How to diagnose it

  1. Confirm which connection type is being flagged. Pull slow_consumer_stats from /varz. If the increment is in clients, continue with client diagnosis. If it is in routes or gateways, skip to step 5; the remediation and the urgency are different.

  2. Identify the specific connections. Use /connz?sort=pending and note the name, ip, pending_bytes, and rtt of the top entries. Poll a few times 10 seconds apart. A single snapshot with high pending bytes can be a burst artifact; sustained or growing pending is the real signal. These endpoints are point-in-time, so a buffer can spike and clear between scrapes.

  3. Classify the flagged client: slow, or just bursty? Compare the disconnect timestamps in the log against throughput. If disconnects only happen during publish bursts and the client drains quickly otherwise, you are looking at a deadline/buffer sizing problem. If pending bytes grow monotonically until the disconnect regardless of traffic shape, the consumer itself cannot keep up. That is an application capacity problem, and no server-side tuning fixes it.

  4. Check RTT on the flagged connections. A connection with elevated RTT drains its buffer more slowly, so the same publish rate that is fine on a LAN client will trip a WAN client. If flagged clients cluster at high RTT, the fix is usually buffer headroom sized to the bandwidth-delay product, not a global deadline increase.

  5. For route or gateway slow consumers, treat it as cluster infrastructure. Check /routez pending_size and route RTT. A restarting node catching up on gossip can transiently appear slow on routes; community reports describe rolling restarts tripping route slow consumers, with operators raising the deadline from 15s to 20s as a workaround at the cost of slower detection of real slow consumers. Sustained route pending outside of restarts means network degradation or an overloaded peer.

  6. Check the server version. Before v2.6.5, a single slow subscriber could block the publisher’s read loop for the full write_deadline, stalling delivery to other subscribers on the same path (upstream issue #2679, fixed in v2.6.5). If you see Readloop processing time warnings alongside slow consumer events on an old server, upgrade before you tune anything.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
slow_consumers rate (varz)Trailing indicator: disconnections already happenedAny sustained positive rate
slow_consumer_stats breakdownSeparates client noise from route/gateway incidentsAny non-zero routes or gateways count
Per-connection pending_bytes (connz)Leading indicator: backpressure builds before the flagSustained growth, not transient spikes
Per-route pending_size (routez)Cluster-internal backpressureAny sustained non-zero value
stalled_clients (varz)Write-path distress before slow consumer flaggingNon-zero for more than a few minutes
total_connections delta vs connectionsChurn from reconnect-disconnect spiralsTotal climbing fast while active count is flat
mem (RSS) trendPending buffers pin memoryMonotonic growth without GC recovery
Per-connection rttExplains why some clients trip the deadline firstFlagged clients correlating with high RTT

Tuning and fixes

Fix the consumer, not the deadline, when the consumer is the bottleneck

If pending bytes grow monotonically regardless of traffic shape, the consumer is under-scaled: blocked on a database write, starved on CPU, stuck in a GC pause, or doing synchronous work in the message handler. Raising write_deadline here only postpones the error while more memory accumulates in per-connection buffers. Scale the consumer out, move blocking work off the handler, or reduce the fan-out to that subscriber.

Raise the deadline deliberately, not defensively

write_deadline takes a Go duration string and is reloadable without a restart:

# nats-server.conf
write_deadline: "10s"

Older v1.x configs used a bare integer in seconds; that form is deprecated in favor of the duration string. Current releases still accept the legacy integer form (treated as seconds) but emit a config warning advising conversion to a duration string.

Raising the deadline is legitimate when your traffic is genuinely bursty and consumers demonstrably drain between bursts: the deadline must exceed your worst-case flush stall, including GC pauses on the client and network jitter. The tradeoff is detection latency. A 30-second deadline means a truly dead consumer sits connected, buffering, for 30 seconds before the server acts. On routes, that delay extends to cluster-wide delivery.

Size buffers against RTT and payload

The buffer question is: how many bytes can pile up before the server gives up? A useful floor is the bandwidth-delay product of the connection path: pending headroom >= drain_rate x worst_case_stall_time. Work it from your numbers:

  • Estimate peak publish rate to a single connection (messages/s x average payload bytes). Watch byte rate, not just message rate; a 10x jump in average payload size has the same buffer impact as a 10x jump in message rate and only shows up in in_bytes/out_bytes.
  • Multiply by the longest stall you are willing to absorb (client GC pause, brief redeploy, network blip). That product is the minimum useful buffer headroom.
  • Compare against the server-side per-connection pending limit (max_pending, 64 MB default) and the client-side subscription pending limits (default 65536 messages or 64 MB per subscription, whichever hits first; -1 disables a limit, which trades slow consumer protection for unbounded memory growth).

Larger buffers are not free. Every connection’s pending capacity is potential RSS. Multiply your per-connection headroom by connection count and make sure the result fits in your memory budget with room for Go GC overhead. A reasonable target: keep peak RSS under 70-80% of the container or host limit.

Client-side pending limits as the second line

The client library enforces its own per-subscription pending limits independent of the server. If the server-side knobs are correct but a single greedy subscription starves others on the same connection, tune the client limits per subscription rather than loosening the server globally. Keep at least one of the message-count or byte limits finite; unbounded on both sides is how a stalled consumer turns into a host OOM.

What not to do

  • Do not raise write_deadline globally to mask route slow consumers during deploys without understanding you are also delaying detection of real route failures. If restart transients are the only problem, consider whether the deploy sequence can give nodes time to catch up instead.
  • Do not treat slow_consumers as a server fault. It is the server correctly enforcing backpressure; the fault is on the slow end of the connection.
  • Do not scrape /connz aggressively on high-connection-count servers to watch pending bytes. Poll at 10-15 seconds and use sort=pending with a limit rather than enumerating everything.

Prevention

  • Alert on the rate, not the counter. slow_consumers is cumulative; a static non-zero value is history. Alert on any sustained positive rate of change, weighted by type.
  • Watch the precursor. pending_bytes and stalled_clients build before the disconnect. A top-N pending check catches the problem minutes earlier than the slow consumer event.
  • Load-test burst profiles before choosing the deadline. Measure your real worst-case flush stall (client GC pause plus network jitter) in staging and set the deadline with margin above it, not by doubling whatever value last stopped the pages.
  • Budget buffer memory explicitly. Per-connection headroom x connection count must fit in RSS with GC headroom. Revisit the budget whenever you raise limits or connection counts.
  • Pin the server version. Anything older than v2.6.5 carries the publisher-blockage bug that makes one slow consumer hurt healthy subscribers.

How Netdata helps

  • Netdata’s NATS collector polls the monitoring HTTP endpoints and charts slow_consumers as a rate, so you see disconnection events as they happen rather than discovering them in logs.
  • Correlating the slow consumer rate against in_msgs/out_msgs throughput separates “bursty traffic tripping a tight deadline” (spike aligns with traffic peaks) from “consumer cannot keep up” (rate climbs while traffic is flat).
  • The connection churn view, total_connections delta against stable active connections, makes the reconnect-disconnect spiral visible as churn rather than as a connection count drop.
  • Tracking mem alongside slow consumer events shows whether your buffer sizing is pinning memory, which is the cost side of a loose deadline.
  • Route and gateway context on the same dashboard lets you confirm quickly whether the event is a client problem or a cluster-internal one, which changes who gets paged.