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-flush-time-rising ▌

Operations Guides

Fluentd average flush time rising: the earliest sign of destination slowdown

Your Fluentd process is alive. retry_count is zero. The buffer queue looks flat. And yet, if you are computing average flush time from flush_time_count and write_count, you can see the destination getting slower, sometimes hours before the first retry fires. This is the earliest signal of destination or network degradation in a Fluentd pipeline, and most teams never look at it because the monitor_agent API does not expose it as a ready-made field.

There is no last_flush_duration field in the API. What you get are two cumulative counters: flush_time_count (total milliseconds spent flushing buffer chunks) and write_count (total successful chunk writes). Both only reset on process restart. If you divide the raw cumulative values, you get a lifetime average that barely moves even when the destination is actively degrading. The only meaningful number is a windowed average: delta(flush_time_count) / delta(write_count) over your scrape interval.

This guide covers how to compute that number correctly, what a rising value means, what to check first, and how to act before it escalates into retries, queue growth, and data loss. For how buffers, flush threads, and retry mechanics fit together, see How Fluentd actually works in production.

What this means

Every output plugin flushes buffer chunks to its destination using flush_thread_count threads (default 1). Each successful flush increments write_count by one and adds the elapsed time of that flush to flush_time_count. A single flush can carry thousands of records, so flush time is dominated by network round trips, TLS handshakes, destination-side indexing or ingestion time, and chunk size.

When the average flush time rises, one of three things is happening:

  1. The destination is slower (Elasticsearch under indexing pressure, S3 throttling, a Kafka broker struggling).
  2. The network path is degraded (latency, packet loss, an LB closing or delaying connections).
  3. Chunks got bigger or compression/serialization got more expensive on the Fluentd side.

What matters is where this signal sits in the failure cascade. Rising flush time comes first. Slow flushes that cross slow_flush_log_threshold come next. Only when flushes actually fail do retry_count and rollback_count move. Queue growth and buffer pressure come last, when flush time approaches or exceeds flush_interval and the output can no longer drain chunks as fast as they stage.

flowchart LR
  A[Destination or network degrades] --> B[Average flush time rises]
  B --> C[slow_flush_count increments]
  C --> D[Flushes start failing: retry_count, rollback_count]
  D --> E[buffer_queue_length grows]
  E --> F[buffer_available_buffer_space_ratios falls]
  F --> G[overflow_action fires: drops, block, or exception]

If you only alert on retries or buffer fill, you are alerting at step 4 or 5 of a 7-step cascade. Average flush time is step 2. Alert on a sustained increase beyond roughly 2x your baseline. Because both counters are cumulative and never reset between restarts, all of this must be computed from deltas, never raw values.

Common causes

CauseWhat it looks likeFirst thing to check
Destination overload (ES yellow/red, S3 throttling, Kafka broker stress)Flush time rises steadily; slow_flush_count may start incrementing; destination’s own metrics degradedCheck the destination’s health and latency independently of Fluentd
Network congestion or added latency on the output pathFlush time rises with jitter; no Fluentd errors; retry_count still zeroCompare round-trip time to the destination from the Fluentd host
TLS handshake or connection churnFlush time spikes correlate with new connection setup; possible intermittent “broken pipe” in logsFluentd error log for TLS/connection-reset patterns; see broken pipe and LB timeouts
Chunk size growth (traffic pattern changed)Flush time rises proportionally with emit_records per write; no destination distressChunk sizes via buffer_total_queued_size / buffer_queue_length; input volume trends
Flush thread starvation (GVL contention, CPU-bound parsing)Flush time rises while destination is healthy; single-core CPU near 100%Per-thread CPU of the Fluentd process; parser/filter complexity
Time-sliced output holding chunks (false positive)Flush “age” looks high on outputs with timekey; no retries, queue drains on scheduleBuffer config: timekey, timekey_wait. This is legitimate behavior, not a latency fault

The last row deserves emphasis: time-sliced outputs (for example daily or hourly S3 files) hold chunks until the time slice expires. A chunk held for an hour by timekey 3600 is working as designed. Do not page anyone for it. Either exclude time-sliced outputs from flush-time alerting or compare against the expected timekey interval.

Quick checks

All read-only. Paths below use the td-agent package layout; adjust for fluent-package or your container image.

# 1. Snapshot flush counters per output (the raw material for the average)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, flush_ms: .flush_time_count, writes: .write_count, slow: .slow_flush_count, retries: .retry_count}'

# 2. Confirm the monitor_agent itself is responsive (rules out a hung event loop)
curl -s -o /dev/null -w "%{http_code}\n" --max-time 5 http://localhost:24220/api/plugins.json

# 3. Check queue state: is the backlog growing yet, or is this still early?
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, queue: .buffer_queue_length, avail_pct: .buffer_available_buffer_space_ratios}'

# 4. Slow-flush warnings in Fluentd's own log (one warning line per slow flush)
grep -i "slow flush" /var/log/td-agent/td-agent.log | tail -20

# 5. Look for connection-level problems that inflate flush time
grep -iE "broken pipe|connection reset|timed out|tls|ssl" /var/log/td-agent/td-agent.log | tail -20

# 6. Rule out CPU-side flush starvation (GVL contention on a single worker)
ps -o pid,%cpu,comm -p $(pgrep -f fluentd | head -1)

How to diagnose it

  1. Compute the windowed average correctly. Take two snapshots of flush_time_count and write_count separated by a fixed interval (60 seconds works well), then compute delta(flush_time_count) / delta(write_count). Do not divide the raw cumulative values: they are lifetime counters since process start, and a lifetime average will hide a doubling of recent flush time for days on a long-lived process.

  2. Establish the baseline. You need the host’s own historical average for the same output plugin, at comparable load. There is no universal threshold: an Elasticsearch output with 64 MB chunks has a completely different normal from a small forward output. Use a relationship-based rule: sustained rise beyond about 2x baseline.

  3. Confirm the rise is real, not sampling noise. A single window with a small delta(write_count) produces a noisy average (one big flush dominates). Require the elevated average to persist across several consecutive windows before treating it as a signal.

  4. Check whether slow flushes have started. Look at delta(slow_flush_count) and the “slow flush” warnings in the Fluentd log. Individual flushes that cross slow_flush_log_threshold (configurable; default 20 seconds) increment that counter. If the average is rising but slow_flush_count is flat, degradation is still mild and uniform; if slow_flush_count is climbing, some flushes are already severely delayed.

  5. Localize the slowness. Compare Fluentd’s flush time against the destination’s own view. If the destination (Elasticsearch indexing latency, broker produce latency, S3 response codes) shows the same degradation, the problem is downstream. If the destination looks healthy but flush time is high, suspect the network path, connection churn, or Fluentd-side serialization cost.

  6. Check for the false positive. If the affected output uses timekey-based chunking, verify whether “slow” flushes align with time-slice boundaries. Held chunks are not a latency fault.

  7. Project the runway. Compare the current average flush time to flush_interval. Average flush time should stay under 50% of flush_interval. When it approaches the interval, a single flush thread can no longer keep pace and queue growth becomes inevitable, even with zero failures. Effective output capacity is roughly flush_thread_count / avg_flush_time chunks per second.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
delta(flush_time_count) / delta(write_count)The signal this article is about; earliest destination-degradation indicatorSustained >2x baseline
delta(slow_flush_count)Counts individual flushes that crossed the slow threshold; confirms severityAny sustained increment rate, or a high ratio to delta(write_count)
delta(retry_count)Flushes have started failing outright; you are no longer in early-warning territoryAny non-zero delta in a healthy system
delta(rollback_count)Chunks dequeued, failed, and returned to the queueSustained non-zero rate
buffer_queue_lengthBacklog forming because output cannot keep paceSustained upward trend
buffer_available_buffer_space_ratiosDistance to overflow_action firingBelow ~20% and falling
buffer_oldest_timekeyAge of the oldest undelivered data; a freshness SLA check (exposed by monitor_agent only for outputs with time-based chunking)now - oldest_timekey exceeding ~2x flush_interval (non-time-sliced)
Fluentd process CPU (per worker)Distinguishes destination slowness from GVL starvation on the Fluentd sideOne core pinned near 100%

Fixes

Fixes depend on where the slowness lives. Do not restart Fluentd as a first move; the counters reset on restart and you lose the trend data you need to confirm the fix.

Destination-side slowness

  • Fix the destination. Scale the Elasticsearch cluster, resolve the throttling, replace the struggling broker. Fluentd-side tuning only buys buffer time; it cannot outrun a slow destination forever.
  • If the destination is undergoing maintenance, verify your buffer headroom (buffer_available_buffer_space_ratios) and compute time-to-overflow at the current fill rate: (total_limit_size - buffer_total_queued_size) / growth_rate. If the runway is shorter than the maintenance window, intervene early. See buffer available space low.

Network path degradation

  • Look for LB idle timeouts closing long-lived connections, forcing reconnection (and TLS handshakes) on every flush. Keepalive behavior and LB timeout alignment are covered in broken pipe / connection reset.
  • Check for path changes: new hops, cross-AZ or cross-region routing shifts, MTU problems. A modest latency add multiplies across every flush.

Fluentd-side causes

  • Increase flush_thread_count on the affected output if single-flush latency is high but the destination has spare capacity. Network writes release the GVL, so parallel flush threads genuinely parallelize I/O. This does not help if the destination itself is saturated; it makes destination overload worse.
  • Reduce chunk size (chunk_limit_size) if chunks have grown with traffic and per-chunk write time is the problem. Tradeoff: more chunks means more flush operations and more per-request overhead at the destination.
  • Shorten flush_interval if chunks are sitting queued between flushes. Tradeoff: smaller, more frequent writes.
  • Reduce parser/filter cost if per-thread CPU shows GVL starvation rather than destination slowness.

What not to do

  • Do not treat a restart as a fix. A restart masks the symptom, resets the counters, and with file-backed buffers adds a replay burst that temporarily makes flush times look even worse.
  • Do not alert on raw flush_time_count or raw write_count. They are monotonic counters; an alert on the absolute value is meaningless.

Prevention

  • Alert on the windowed average, not the counters. Scrape flush_time_count and write_count per output plugin, compute the delta ratio, and page on a sustained rise beyond ~2x baseline. This single alert fires earlier than anything else in the cascade.
  • Pair it with the slow-flush ratio. Track delta(slow_flush_count) / delta(write_count) so a rising average is immediately qualified by how many flushes are severely slow.
  • Keep flush headroom. Enforce the capacity rule in config reviews: expected average flush time under 50% of flush_interval, and flush_thread_count sized so the output can drain at peak input rate.
  • Segment your alerting by output type. Time-sliced outputs need different expectations (compare against the timekey interval) than streaming outputs like Elasticsearch or forward.
  • Correlate with destination metrics in dashboards. Flush time next to Elasticsearch indexing latency or S3 error rates turns a 30-minute localization step into a 30-second glance.

How Netdata helps

  • Netdata collects the Fluentd monitor_agent counters, including flush_time_count, write_count, and slow_flush_count, per output plugin, so the windowed average flush time can be charted and alerted on as a derived ratio rather than a hand-rolled cron job.
  • Because collection is per-second, the delta computation is fine-grained enough to catch flush-time drift within minutes instead of waiting for a 5-minute scrape to smear it.
  • Per-plugin breakdowns let you see one output degrading (the Elasticsearch match) while others (S3, forward) stay flat, which immediately localizes the problem to a destination rather than the host.
  • Netdata charts flush-time trends alongside buffer_queue_length, retry_count, and buffer space ratios on the same dashboard, so the full cascade from early slowdown to queue pressure is visible in one view.
  • Process-level CPU and RSS for the Fluentd workers are collected on the same host, which makes the destination-versus-GVL-starvation distinction a single correlation instead of two separate investigations.