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-memory-growing ▌

Operations Guides

Fluentd memory growing: leak versus the normal Ruby fragmentation plateau

Fluentd RSS has been climbing for hours or days and you are trying to decide whether you have a memory leak or whether this is just what Ruby does. The answer matters because the two cases have completely different responses: one requires no action at all, the other ends in an OOM kill and, if your buffers are memory-backed, permanent loss of buffered log data.

Ruby’s garbage collector almost never returns memory to the operating system. After a traffic spike, Fluentd’s heap is mostly free slots internally, but the RSS stays at the peak level. This produces the characteristic pattern: RSS climbs during load, reaches a high level, and then sits there. That plateau is normal. A truly leaking process never plateaus; it keeps climbing at a roughly constant rate until the kernel or the container runtime kills it.

This article gives you the decision procedure: how to read the RSS trend correctly, how to use buffer metrics to split buffer-driven growth from plugin leaks, and what to fix in each case.

What this means

Fluentd memory consumption has three distinct drivers, and they need different responses:

  1. Ruby fragmentation plateau. Ruby allocates memory in arenas and rarely gives it back. RSS grows to a level determined by your peak workload and then flattens. High but stable. Not a leak, not fixable by tuning, not dangerous as long as the plateau fits within your memory limit with headroom.
  2. Buffer-driven growth. If you use memory-backed buffers and the output cannot keep up, buffered events accumulate in RAM. RSS tracks buffer_total_queued_size almost one-to-one. This is a capacity or destination problem, not a leak. It ends in either buffer overflow or OOM, whichever limit hits first.
  3. Genuine leak. A plugin, a C extension, or tag explosion allocates memory that is never reused. RSS climbs monotonically regardless of traffic, buffer metrics stay flat, and the process eventually dies. In Kubernetes this shows up as OOMKilled restarts; see Fluentd CrashLoopBackOff if you are already in the restart cycle.
flowchart TD
  A[RSS climbing over hours-days] --> B{Buffer total queued size also rising?}
  B -- yes --> C[Buffer-driven growth: output cannot keep pace]
  B -- no --> D{RSS trend shape over 24-72h}
  D -- flattens at high level --> E[Ruby fragmentation plateau: normal]
  D -- monotonic rise, no plateau --> F{Correlates with traffic or restarts?}
  F -- no, constant rate --> G[Plugin or runtime leak]
  F -- grows with unique tags --> H[Tag explosion]
  C --> I[Fix output or move buffer to file]
  E --> J[Set memory limit with headroom, no action needed]
  G --> K[Identify plugin, upgrade or remove]
  H --> K

Common causes

CauseWhat it looks likeFirst thing to check
Ruby fragmentation plateauRSS jumps during traffic peaks, then holds flat at a high level for daysRSS sampled every 5 minutes over 24-72 hours: does it flatten?
Memory-backed buffer fillingRSS tracks buffer growth; buffer metrics climbing at the same ratebuffer_total_queued_size and buffer_queue_length from monitor_agent
Plugin or C extension leakRSS rises at a steady rate even at constant traffic; buffer metrics flatDid growth start after a plugin install, upgrade, or config change?
Tag explosionRSS climbs as new unique tags appear (dynamic tags with IDs, hostnames, timestamps)Count distinct tags in your event stream over an hour
Small chunk sizesHigh RSS plus elevated CPU from GC overhead; millions of small chunk objectschunk_limit_size in each output’s buffer config
Known leak in your versionUnbounded growth with specific versions of Fluentd or its dependenciesCompare your Fluentd / fluent-package version against release notes

Quick checks

All of these are read-only and safe to run during an incident.

# Current RSS of the Fluentd process (MB)
ps -o rss= -p $(pgrep -f fluentd | head -1) | awk '{print $1/1024 " MB"}'

# Detail from /proc: RSS, virtual size, thread count
grep -E "VmRSS|VmSize|Threads" /proc/$(pgrep -f fluentd | head -1)/status

# Sample RSS every 60s for an hour to start building the trend
for i in $(seq 1 60); do
  echo "$(date +%s) $(ps -o rss= -p $(pgrep -f fluentd | head -1))" >> /tmp/fluentd-rss.log
  sleep 60
done

One snapshot tells you nothing. The diagnostic value is entirely in the trend, so start sampling now if you do not have historical RSS data. In containers, read RSS from cgroup memory stats instead; in Kubernetes the working set is what the OOM killer acts on.

# Buffer metrics from monitor_agent: is the buffer growing with RSS?
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, total_bytes: .buffer_total_queued_size, queue_chunks: .buffer_queue_length, avail_pct: .buffer_available_buffer_space_ratios}'

# Evidence of previous OOM kills (may require root)
dmesg | grep -i oom | tail -20

# How long has this process been alive? A recent restart resets RSS.
ps -o pid,etime,rss -p $(pgrep -f fluentd | head -1)

In multi-worker mode each worker is a separate Ruby process with its own RSS. Check every worker, not just the first PID pgrep returns, and remember each worker exposes its own monitor_agent port (24220, 24221, …).

How to diagnose it

  1. Establish the trend, not the value. Collect RSS every 1-5 minutes for at least 24 hours, ideally 72. One reading, or even one hour of readings, cannot distinguish a plateau from a leak. Plot it or eyeball the samples from the loop above.
  2. Classify the shape. Flattening at a high level: fragmentation plateau. Steady climb with no sign of flattening: leak, unbounded buffer, or tag explosion. Sawtooth with drops only at restarts: growth between restarts is the thing to explain.
  3. Correlate with buffer metrics. Pull buffer_total_queued_size over the same window. If buffer bytes and RSS rise together, this is buffer-driven: the output is not keeping pace and events are accumulating in a memory buffer. Treat it as a capacity problem first. See Fluentd buffer queue length growing and Fluentd buffer available space low.
  4. If buffer is flat while RSS climbs, suspect a leak. Check what changed: plugin installs, Fluentd upgrades, new outputs, new parsing rules. A constant growth rate independent of traffic volume points at a leak in a plugin or its native extension. Some packaged versions have shipped with known leaks in dependencies, so check release notes for your exact package version before assuming it is your config.
  5. Check for tag explosion. If your config builds tags dynamically (for example embedding pod names, request IDs, or timestamps in tags), each unique tag creates routing state that is never freed. Count distinct tags seen over an hour. If the number is in the tens of thousands and still climbing, that is your leak.
  6. Factor in process age. Compare RSS against elapsed time (etime). If RSS is always “high” but the process restarts daily for unrelated reasons, you may be looking at the normal ramp, not growth at all.
  7. Decide. Plateau inside your limit with headroom: no action, tune alerts. Buffer-driven: fix the output path or move to file buffers. Monotonic leak with flat buffers: isolate the plugin or version and remediate.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Process RSS (host-level, per worker)The metric this whole article is about; not available from monitor_agentMonotonic growth over hours/days with no plateau; in containers, RSS above 80% of the memory limit
buffer_total_queued_sizeSplits buffer-driven growth from leaks; the single most important correlatorRising in lockstep with RSS
buffer_queue_lengthQueued chunks indicate backpressure that feeds memory-buffer growthSustained growth alongside RSS
buffer_available_buffer_space_ratiosHow close the buffer is to overflow, which for memory buffers is also how close you are to OOMBelow 20% and shrinking
retry_count and write_countRetrying outputs are the usual reason buffers (and therefore memory) fillretry_count non-zero while write_count is flat
CPU per processRising GC overhead accompanies both leaks and object churn from small chunksCPU climbing in step with RSS at constant throughput
OOM events in dmesg / container restart reasonConfirms the end state you are trying to avoidAny Fluentd OOM kill entry

If you find the output is the root cause (buffer-driven growth), the failure mode continues in Fluentd failed to flush the buffer.

Fixes

If it is the fragmentation plateau

Do nothing to Fluentd itself. Set your container memory limit or host alerting around the observed plateau plus roughly 20-30% headroom, and alert on the growth trend rather than the absolute value. A high but flat RSS line is the steady state of a healthy Ruby process. Restarting Fluentd to “fix” it just restarts the ramp and, with memory-backed buffers, loses buffered data on every restart.

If it is buffer-driven growth

The memory is a symptom; the disease is an output that cannot keep pace. Two directions:

  • Fix the output path. Check retry_count, write_count, and average flush time (flush_time_count / write_count) to find the slow or failing destination. Until the output recovers, the buffer keeps filling.
  • Move to file-backed buffers. Switching the buffer @type from memory to file moves queued data from the Ruby heap to disk, converting a memory problem into a much more survivable disk problem. File buffers survive restarts; memory buffers do not. The tradeoff is disk I/O and disk capacity, so watch the buffer directory’s filesystem.

If it is a plugin or runtime leak

  • Isolate by elimination. Disable suspect plugins one at a time (or run a canary instance with a reduced config) and watch which change flattens the RSS curve.
  • Upgrade. Leaks in Fluentd core and its bundled dependencies get fixed in releases. If your growth started right after a downgrade or is pinned to an old package, moving to the current stable package is often the whole fix. Check the release notes for memory-related fixes for your exact version.
  • Increase chunk sizes. If you run small chunk_limit_size values, you create millions of small Ruby objects, which inflates both memory and GC CPU. Larger chunks mean fewer objects and less overhead. The tradeoff is larger, less frequent flushes.
  • Ruby GC tuning. Environment variables such as RUBY_GC_HEAP_INIT_SLOTS, RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR, and the RUBY_GC_MALLOC_LIMIT* family can reduce the plateau level and GC pressure. Fluentd documents no canonical values for these: they are Ruby-runtime knobs with Ruby’s own defaults, so treat any published numbers as starting points for your workload, not fixes. These tune the symptom; they do not fix a genuine leak.

If it is tag explosion

Remove high-cardinality values from tag construction. Tags should route events, not identify them; move pod names, request IDs, and timestamps into record fields instead of the tag. This requires a config change and a reload, so verify the new config in a canary first, and be aware that a botched reload can partially apply; see Fluentd config reload failed.

Prevention

  • Alert on the RSS trend, not the value. A static “RSS > X” alert either fires on the normal plateau or misses slow leaks. Alert on monotonic growth over hours, and in containers add a hard alert at RSS above 80% of the memory limit.
  • Size limits from the plateau. Allocate container memory at 2-3x the expected buffer footprint, or the observed plateau plus headroom, whichever is larger. A 512MB limit on a Ruby log shipper is an OOM schedule, not a limit.
  • Default to file-backed buffers in production. This removes the tightest coupling between buffer backlog and process memory, and it makes restarts survivable.
  • Keep cardinality out of tags. Review any config that interpolates values into tags during code review.
  • Track versions. Keep Fluentd and its plugins current, and read release notes for memory-leak fixes before deploying upgrades.
  • Sample RSS continuously. You cannot diagnose a trend you did not record. Per-worker RSS should be a standard time series everywhere Fluentd runs.

How Netdata helps

  • Netdata collects per-process RSS at the host level, per second, which is exactly the resolution you need to see whether the curve flattens or keeps climbing. The monitor_agent API does not expose RSS at all, so host-level collection is the only option.
  • Long retention lets you overlay 24-72 hours of RSS against buffer metrics and confirm the plateau versus monotonic growth distinction from real data instead of guesswork.
  • Netdata’s Fluentd collector pulls the monitor_agent buffer signals (buffer_total_queued_size, buffer_queue_length, available space ratio), so you can correlate RSS with buffer fill on one dashboard and immediately split buffer-driven growth from leaks.
  • Per-process CPU alongside RSS makes GC-driven pressure visible: rising CPU at constant throughput while RSS climbs is the classic small-chunk or leak signature.
  • In Kubernetes, container memory working set versus the configured limit is charted directly, making the 80%-of-limit alert straightforward to express.