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 / fluentd / fluentd-buffer-queue-length-growing ▌

Operations Guides

Fluentd buffer queue length growing: the output cannot keep pace with the input

You are looking at a graph of buffer_queue_length for one of your Fluentd outputs and it has been climbing for twenty minutes. No alerts have fired, nothing has crashed, but the trend only goes one direction. This is the earliest visible stage of the most common Fluentd failure mode: the output destination is falling behind the input, and the buffer is absorbing the difference.

The buffer is not the problem. The buffer is the symptom. Every queued chunk is data accepted from your inputs but not yet delivered. If the queue keeps growing, you are on a clock: when the buffer reaches total_limit_size, the configured overflow_action fires, and depending on how it is set you will either block your inputs, drop new events at the input, or start discarding the oldest buffered data.

This guide covers reading the signal correctly, finding why the output is behind, and fixing it before the overflow decision gets made for you.

What this means

Fluentd buffers organize events into chunks. A chunk moves through a lifecycle: staged (filling with incoming events), queued (full and waiting for a flush thread), flushing (being written to the destination), then purged on success or rolled back to the queue on failure.

buffer_queue_length counts the chunks sitting in the queued state. A few things about this number trip people up:

  • It is a gauge, not a counter. It goes up and down. Brief non-zero values are normal during every flush cycle.
  • It is per output plugin, per worker. In multi-worker mode, each worker has its own independent buffer. An aggregate view can hide one worker drowning while the others are fine.
  • It is a count, not a size. Chunks vary in size. buffer_total_queued_size gives you the byte-level view, which is what actually matters against total_limit_size.
  • Growth rate matters more than level. A queue of 200 chunks that is draining (write_count incrementing) is a backlog being worked off. A queue of 20 chunks that has not moved in ten minutes (write_count flat) is a stalled output.
flowchart LR
  IN[Input plugins] --> ST[Stage: filling chunk]
  ST --> Q[Queue: buffer_queue_length]
  Q --> FL[Flush threads]
  FL -->|success| OUT[Destination]
  FL -->|failure| RB[Rollback + retry backoff]
  RB --> Q
  Q -->|total_limit_size reached| OV[overflow_action fires]

A growing queue means the loop above is unbalanced: chunks enter the queue faster than flush threads can purge them. Your job is to find which side of that imbalance is broken.

Common causes

CauseWhat it looks likeFirst thing to check
Destination down or unreachablewrite_count flat, retry_count climbing, connection errors in logscurl or telnet the destination endpoint directly
Destination slow (degraded, not down)write_count incrementing but slowly, slow_flush_count rising, average flush time upflush_time_count / write_count trend
Authentication or TLS failureretry_count climbing, 401/403 or TLS errors in Fluentd logs, flat write_countgrep Fluentd log for auth, 401, 403, certificate
Retry storm with exhausted backoffQueue high but stable, retry.next_time far in the futureThe retry object in the monitor agent response
Input spike exceeding output capacityInput emit_records rate jumped, queue growing linearly, retries at zeroCompare input vs output emit rates over 15 minutes
Flush threads starved (GVL / CPU-bound)Single core at 100%, queue growing, destination healthyPer-thread CPU with ps -T -p <pid>
Undersized flush configurationQueue grows at peak and recovers off-peak, every dayflush_thread_count, flush_interval, chunk sizing vs input rate

Quick checks

All of these are read-only. They assume the monitor agent is enabled on port 24220 (auto-incrementing per worker in multi-worker mode). Paths use the td-agent package layout; adjust for fluent-package or your container image.

# 1. Queue length and stage length per output plugin
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, queue: .buffer_queue_length, stage: .buffer_stage_length}'

High stage with low queue is normal batching. High queue with low or normal stage is backpressure. That distinction is the first fork in the diagnosis.

# 2. Is the queue draining or stuck? Sample write_count twice, 60s apart
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, writes: .write_count}'
sleep 60
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, writes: .write_count}'

Incrementing means the output is alive but behind. Flat means it is fully stalled. These demand different responses.

# 3. Retry state, not just the counter
# (v1.19.3+ ignores the ?with_retry query parameter; set include_retry true
#  in the monitor_agent source instead)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, retries: .retry_count, retry: .retry}'

retry.steps and retry.next_time tell you how deep the backoff hole is. A retry.next_time 20 minutes out means the pipeline is effectively dead even though it is “retrying”.

# 4. How much room is left
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, avail_pct: .buffer_available_buffer_space_ratios, total_bytes: .buffer_total_queued_size}'

Below 20% available and still growing: investigate now. Below 5%: overflow is imminent.

# 5. Input vs output record rates (sample twice and compare deltas, not raw counters)
curl -s http://localhost:24220/api/plugins.json | \
  jq '{input: ([.plugins[] | select(.plugin_category=="input") | .emit_records // 0] | add),
       output: ([.plugins[] | select(.plugin_category=="output") | .emit_records // 0] | add)}'

On Fluentd older than v1.19.0, input emit_records requires enable_input_metrics true in <system>; without it the input counter is always 0.

# 6. What the logs say about why
grep -E "failed to flush|retry|temporarily failed|could not connect|broken pipe" \
  /var/log/td-agent/td-agent.log | tail -20
# 7. Auth and TLS failures specifically
grep -iE "(tls|ssl|auth|401|403|unauthorized|forbidden|certificate)" \
  /var/log/td-agent/td-agent.log | tail -20
# 8. Slow flushes (flush_time_total_ms is cumulative; use deltas for average flush time)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, slow: .slow_flush_count, flush_time_total_ms: .flush_time_count, writes: .write_count}'

How to diagnose it

  1. Confirm the signal. Is buffer_queue_length actually growing over 10 to 15 minutes, or oscillating? Oscillation around a flush cycle is normal. Time-sliced outputs (daily S3 files, for example) hold chunks until the slice expires and create legitimate large queues that drain on schedule. Sustained one-direction growth is the real signal.

  2. Split draining from stuck. Run check 2. If write_count is incrementing, the destination works but cannot keep up: go to step 4. If write_count is flat, the output is stalled: go to step 3.

  3. For a stalled output, find the failure reason. Check retry_count and the retry object (check 3), then the logs (checks 6 and 7). The pattern is usually one of: connection refused (destination down), 401/403 or TLS errors (credentials or certificates), or nothing at all with retry.next_time far in the future (backoff exhaustion). Verify destination health independently: curl the endpoint from the Fluentd host. Do not trust Fluentd’s view alone; DNS, firewall, and proxy changes all sit between them.

  4. For a draining-but-losing output, quantify the deficit. Compare input and output emit rates over a 15-minute window (check 5). Compute average flush time as delta(flush_time_count) / delta(write_count). If average flush time is approaching flush_interval, the output is at capacity: each chunk takes almost as long to write as the interval between flushes, so any burst accumulates.

  5. Check whether Fluentd itself is the bottleneck. Look at per-core CPU. A single worker pegged at 100% of one core with a healthy destination is GVL starvation: parsing and filtering are starving the flush threads. pgrep -f fluentd lists the worker processes; ps -T -p <busy_pid> -o spid,%cpu,comm shows whether one thread is doing all the work. The fix here is parser simplification or multi-worker mode, not destination work.

  6. Estimate time to overflow. Compute runway as (total_limit_size - buffer_total_queued_size) / growth_rate. For file-backed buffers, also check filesystem free space on the buffer directory: the disk, not total_limit_size, may be the real limit, and a full buffer partition can break more than Fluentd if the filesystem is shared.

  7. Check per-worker. In multi-worker mode, repeat the checks against each worker’s monitor agent port (24220, 24221, …). One worker behind on a hot tag is invisible in any aggregate.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
buffer_queue_lengthDepth of the chunk backlogSustained upward trend over 10+ minutes
buffer_stage_length vs queueSeparates healthy batching from backpressurequeue > 5x stage, sustained
write_count (rate)Whether chunks are actually being deliveredFlat while queue grows
buffer_available_buffer_space_ratiosDistance to overflowBelow 20% and falling; below 5% is imminent
buffer_total_queued_sizeTrue byte footprint vs total_limit_sizeAbove 80% of limit with positive growth
retry_count and retry.next_timeDestination failing; backoff depthNon-zero retries; next_time minutes out
flush_time_count / write_countAverage flush latency, earliest destination-slowdown signalRising past 50% of flush_interval
slow_flush_countFlushes over slow_flush_log_threshold (default 20s)Rising ratio of slow to total flushes
buffer_oldest_timekeyAge of oldest undelivered datanow - oldest exceeds 2x flush_interval
drop_oldest_chunk_countConfirmed data loss, if that overflow action is setAny increment

Alert on sustained growth, not a static queue-level threshold. Batch and time-sliced workloads legitimately produce large temporary queues. “Queue growing for 15 minutes and write_count not keeping pace” catches real incidents; “queue > 100” pages you every night at the batch window.

Fixes

Destination is down or failing

Fix the destination first; nothing on the Fluentd side substitutes for that. While it is down, your lever is runway: verify buffer headroom and time-to-overflow (step 6 above), and decide consciously what happens at the limit rather than discovering it. If the destination is failing on auth or TLS, rotate the credentials or certificates in the Fluentd config and reload. If backoff has exhausted (retry.next_time far out), restarting Fluentd resets retry state. Do this only once the destination is healthy again, and only with file-backed buffers: a restart with memory buffers loses every unflushed chunk.

Destination is slow, not down

The cheapest lever is flush concurrency: raise flush_thread_count so multiple chunks flush in parallel. Network writes release the Ruby GVL, so I/O-bound flush threads genuinely parallelize within one worker. If flush latency itself is rising (check 8), the problem is on the destination side: Elasticsearch under indexing pressure, S3 throttling, an overloaded Kafka broker. Fluentd tuning cannot fix a saturated destination; it can only buy buffer time.

Input exceeds output capacity structurally

If input rate has permanently outgrown what one output path can flush, options are raising flush_thread_count, moving to multi-worker mode (each worker gets independent buffers and event loops, and it is the only way to get true CPU parallelism), or scaling the destination. Note that in_tail does not support multi-worker and must be pinned to a specific worker, so plan the topology change rather than flipping workers N blindly.

Fluentd is CPU-bound (GVL starvation)

Simplify parsing: replace complex regex with structured formats where the source allows it. Increase chunk sizes so fewer, larger chunks reduce per-chunk overhead and Ruby object churn. Move to multi-worker mode to use more cores.

Choosing overflow_action deliberately

This is a policy decision, not an incident fix, but the incident is when you find out what you chose:

  • throw_exception (default): new events are rejected at the input when the buffer is full. Some inputs log the drop, but no metric tracks the loss, so it is easy to miss. Worst option for auditability.
  • block: inputs stall and backpressure propagates upstream. Protects Fluentd’s data but can drop data further up (UDP syslog at the kernel, for example).
  • drop_oldest_chunk: bounded loss of the oldest data, tracked by drop_oldest_chunk_count. Often the right default for metrics-like logs, wrong for audit or security logs.

Prevention

  • Alert on growth, not level. Sustained positive slope on buffer_queue_length over 10 to 15 minutes, confirmed by write_count lagging, is the alert that fires early enough to act.
  • Watch average flush time. flush_time_count / write_count rising is the earliest destination-degradation signal, appearing before retries start.
  • Keep headroom. Target buffer_available_buffer_space_ratios above 30% in normal operation, and keep filesystem free space on the buffer partition well above the configured total_limit_size.
  • Use file-backed buffers in production. Memory buffers lose everything unflushed on crash or OOM. File buffers survive restart and give you disk-sized runway.
  • Size flush threads to latency. Average flush time should stay under half of flush_interval; if it does not, add threads before you add buffer.
  • Enable input metrics. On versions before v1.19.0, set enable_input_metrics true in <system> so the input/output rate comparison is possible at all.
  • Test the overflow path. Know what your overflow_action does and verify the corresponding counter is monitored before an incident demonstrates it for you.

How Netdata helps

  • Netdata collects the Fluentd monitor agent metrics per output plugin, so buffer_queue_length, buffer_stage_length, and buffer_total_queued_size are visible as time series rather than point-in-time curl samples.
  • Stage versus queue is charted separately, which makes the healthy-batching versus backpressure distinction immediate instead of something you reconstruct by hand.
  • Because write_count, retry_count, rollback_count, and flush_time_count are collected alongside the buffer gauges, you can correlate a climbing queue with flat writes or climbing retries on one dashboard and jump straight to the stalled-versus-draining fork.
  • Anomaly detection on the queue length trend flags sustained abnormal growth without a static threshold, which avoids paging on legitimate batch windows.
  • Per-worker breakdowns in multi-worker deployments keep one drowning worker from hiding inside a healthy aggregate.