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-ruby-gc-pressure ▌

Operations Guides

Fluentd Ruby GC pressure: garbage-collection pauses that stall event processing

Fluentd runs on CRuby. Every parsed record, buffered chunk, and serialized payload creates Ruby objects that the garbage collector eventually has to reclaim. Under memory pressure, GC stops being background work and starts blocking the pipeline: inputs stop reading, flush threads miss their windows, chunks roll back into the queue, and retries allocate even more objects.

The outside symptom is easy to misread. The process is alive, CPU is high, and throughput dips in pulses or sags steadily. Buffer metrics can make it look like a slow destination; CPU metrics can make it look like parser load. The distinguishing pattern is Ruby GC activity rising with memory pressure while destination health remains otherwise explainable.

This failure is most common with memory-backed buffers, undersized chunks that create large numbers of short-lived objects, and long-running processes with fragmented Ruby heaps.

What this means

CRuby uses a generational garbage collector. Minor collections are frequent and relatively cheap. Major collections examine more of the object space and create longer pauses. During a GC pause, no Ruby thread can execute Ruby code. Native work that has released the GVL may continue, but Fluentd’s Ruby-level inputs, routing, and flush logic all wait.

There is no universal safe GC-time percentage. Compare GC rates and pause time with the process’s normal baseline. A sustained increase, especially alongside rising retries and RSS, indicates a feedback loop:

flowchart LR
  A[Memory pressure: many objects or fragmented heap] --> B[Major GC runs more often or takes longer]
  B --> C[Ruby threads wait during GC pauses]
  C --> D[Flush threads miss deadlines]
  D --> E[Chunks roll back and retry]
  E --> F[Retries allocate new objects]
  F --> A
  B --> G[Throughput dips and API responses stall]

Retried chunks are serialized and sent again, allocating fresh objects and increasing GC work. The loop continues until the destination drains the backlog faster than GC stalls it, or RSS reaches a container or system limit and the OOM killer terminates the process. In Kubernetes, that can appear as OOMKilled restarts; see Fluentd CrashLoopBackOff.

A high but stable RSS is normal for Ruby. Fragmentation can keep memory mapped to the process even after objects are collected. A continuously rising RSS, a rising major-GC rate, or a plateau far above the expected buffered-data volume is the concern.

Common causes

CauseWhat it looks likeFirst thing to check
Small buffer chunks creating many short-lived objectsHigh minor-GC rate, elevated CPU, throughput below expectedchunk_limit_size in each output’s <buffer> section
Memory-backed buffers under backpressureRSS tracks buffered data; GC rises as the queue fillsBuffer type, chunk_limit_size, and total_limit_size
Heap fragmentation in a long-running processRSS plateaus far above expected data volume; periodic major GCProcess uptime and RSS history
Buffer memory retention on older Fluentd packagesRSS jumps after a burst and does not return to its prior plateauFluentd version and package changelog
Log burst or very large log linesGC pressure follows an input-rate spikeInput emit_records around the event
Bad RUBY_GC_HEAP_* settingsConstant full GCs, slow startup, high CPU from bootProcess environment in /proc/<pid>/environ
jemalloc 4.x or 5.x in a custom build or imageRSS several times higher than expected for the same workloadAllocator linked into the Ruby binary

Quick checks

These checks are read-only. Checks 2 and 3 require monitor_agent to be enabled; adjust the bind address and port for your configuration.

# 1. Identify the Fluentd worker. Repeat checks per worker in multi-worker setups.
ps -eo pid,ppid,etime,rss,%cpu,args | grep -E '[f]luentd|[t]d-agent'
FLUENTD_PID=<fluentd-worker-pid>

# 2. Confirm process age, RSS, and CPU.
ps -o pid,etime,rss,%cpu,cmd -p "$FLUENTD_PID"

# 3. Check whether monitor_agent is responsive. GC storms can stall it.
time curl --max-time 5 -sS -o /dev/null -w "%{http_code}\n" \
  http://localhost:24220/api/plugins.json

# 4. Inspect output buffers and retry state.
curl --max-time 5 -sS http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") |
      {id: .plugin_id, queue: .buffer_queue_length,
       bytes: .buffer_total_queued_size, retries: .retry_count,
       rollbacks: .rollback_count}'

# 5. Look for one thread dominating CPU. This suggests Ruby-level serialization,
# but does not by itself prove GC.
ps -T -p "$FLUENTD_PID" -o spid,%cpu,comm

# 6. Inspect the GC environment the process inherited. May require root.
tr '\0' '\n' < "/proc/$FLUENTD_PID/environ" | grep -i '^RUBY_GC_'

# 7. Check chunk sizing. Adjust paths for your package.
grep -n -A8 '<buffer' /etc/td-agent/td-agent.conf /etc/fluent/fluentd.conf 2>/dev/null

# 8. Rule out recent OOM kills. May require root.
dmesg -T 2>/dev/null | grep -Ei 'oom|out of memory' | tail -5
journalctl -k --no-pager 2>/dev/null | grep -Ei 'oom|out of memory' | tail -5

A monitor_agent request that takes seconds while CPU is high and buffers remain stable is a strong GC-storm signal. If the stalls affect only one output’s network connections, compare with Fluentd broken pipe / connection reset.

How to diagnose it

  1. Establish the timeline. Compare the throughput change with deploys, config reloads, traffic bursts, and Fluentd or Ruby upgrades. Pressure starting immediately after a change points to configuration or version behavior. Pressure building over days points more toward fragmentation or slow object growth.

  2. Separate GC stalls from destination stalls. Check retry_count, rollback_count, and slow_flush_count where exposed. If retries rise while the destination is independently slow or unavailable, restore the destination first. In that case GC pressure may be a downstream effect of a full buffer, not the root cause. See Fluentd buffer queue length growing.

  3. Measure GC directly. Use the built-in in_gc_stat input and route its records somewhere queryable:

    <source>
      @type gc_stat
      emit_interval 10s
    </source>
    

    Watch the rates of major_gc_count and minor_gc_count, not just their absolute values (each record is the full GC.stat hash, so the available keys depend on the Ruby version; use_symbol_keys defaults to true). Compare them with the normal baseline and lower emit_interval temporarily during an incident; the default 60-second interval can hide short storms.

  4. Use gdb only as an intrusive last resort. Attaching gdb stops the process, requires ptrace permission, and can fail on binaries without usable Ruby symbols. Do not run this on a production pipeline unless a full pause is acceptable.

    # INTRUSIVE: stops the process and evaluates Ruby code in it.
    gdb -batch -ex 'call (void)rb_eval_string("$stderr.puts GC.stat.inspect")' \
      -p "$FLUENTD_PID"
    
  5. Check chunk geometry. Small chunk_limit_size values create more chunks and more per-chunk objects. Memory buffers commonly default to an 8 MB chunk_limit_size and 512 MB total_limit_size. If chunk size was reduced to lower flush latency, the change also multiplied object lifecycle overhead.

  6. Check the Fluentd version and package. Fluentd v1.19.0 includes PR #4845 (“memory_chunk: clear internal memory use in buffer string”), which fixes issue #1657 (excessive retained memory after traffic peaks); older releases retain that memory until a full GC. Confirm that the package you actually run contains the fix before treating an upgrade as the cure.

  7. Check the allocator. td-agent v4.2.0 moved its bundled jemalloc from 5.2.1 back to 3.6.0 because jemalloc 4.x and 5.x consumed excessive memory for Ruby workloads. A self-built Fluentd or container image linked against jemalloc 5.x can carry substantially more RSS for the same traffic, increasing the heap that GC must manage.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Major and minor GC rates from in_gc_statDirect measure of collection frequencySustained rise above the process baseline
GC share of wall-clock timeShows how much execution time collection consumesSustained increase, especially during flush timeouts
Process RSS trendReveals fragmentation, retention, and unbounded queuesContinuous rise or a plateau far above expected buffered data
Monitor agent response timeGC storms also stall the HTTP handlerLatency spikes or timeouts on /api/plugins.json
retry_count and rollback_count per outputGC-delayed flushes surface as retries and rollbacksRising while the destination is healthy
buffer_queue_length and buffer_total_queued_sizeMore buffered data means more objects in flightQueue and GC rate rising together
Input versus output emit_recordsShows whether output is falling behind inputOutput rate dipping below input rate in repeated pulses
Per-thread CPUCan expose GVL serializationOne thread dominating CPU while others stall; not proof of GC by itself

Fixes

Reduce object churn first

  • Increase chunk_limit_size. Larger chunks reduce chunk-object and per-flush allocation overhead. The tradeoff is longer flushes, more data per retry, and a larger failure unit.
  • Use file-backed buffers where appropriate. File chunks move payload data out of the Ruby heap and onto disk, trading I/O for a smaller object graph. Plan disk capacity before switching; see Fluentd buffer disk full.
  • Reduce allocation-heavy parsing and filtering. Complex regular expressions, per-record Ruby code, and heavy record_transformer use allocate objects for every event. Prefer simpler filters and structured input formats where the source supports them.

Break the feedback loop during an incident

  • Restore or bypass the failing destination. Draining the queue stops retries from generating more allocation work. If the destination will remain unavailable, choose overflow_action deliberately. Options such as dropping old chunks and throwing an exception have very different data-loss and backpressure behavior; see Fluentd BufferOverflowError.
  • Restart as a reset, not a fix. A restart clears fragmented heap state and retry state. If pressure rebuilds over hours, investigate fragmentation or retention. If it returns immediately, investigate configuration, traffic, or destination health.

Tune Ruby GC env vars, carefully

The main documented Fluentd tuning knob is RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR, which defaults to 2.0. It controls when the old-object count triggers another full GC. Lower values favor a smaller heap with more frequent full collections; higher values favor fewer collections with more memory retained.

Two warnings apply:

  • Do not set it below 1.0. Older v0.12-era advice sometimes used 0.9 or 1.2. Current v1.x documentation warns that values below 1.0 degrade performance and can delay startup.
  • GC tuning trades memory for pause frequency. Change one variable at a time, record the old value, and compare RSS, GC rates, retries, and throughput across at least one full traffic cycle.

Upgrade or change the substrate

  • Upgrade only after verifying the package changelog. If the symptoms match post-burst buffer retention on an older Fluentd release, confirm that the target package contains the relevant fix rather than relying only on the upstream version number.
  • Check jemalloc in custom images. A Ruby linked against jemalloc 4.x or 5.x can use substantially more RSS than the td-agent allocator baseline. Every extra retained byte increases the heap GC has to traverse.
  • Use multiple workers for CPU headroom, not as a fragmentation fix. Each worker has an independent heap and GVL, so splitting traffic reduces per-process object load. It also multiplies total memory use and does not solve fragmentation that follows each worker over time.

Prevention

  • Set explicit buffer limits on every production output. Prefer file-backed buffers where disk capacity allows, and define both chunk_limit_size and total_limit_size. See Fluentd buffer available space low for capacity planning.
  • Collect GC baseline data. The official docs classify in_gc_stat as a diagnostic tool and advise against leaving it enabled in production; run it during investigations (or collect GC.stat another way) and retain enough history to establish a normal major- and minor-GC baseline.
  • Alert on retry growth with a healthy destination. That combination is often the first external sign of GC-induced flush timeouts.
  • Keep RUBY_GC_HEAP_* settings under configuration review. Do not inherit values from v0.12-era templates without testing them against the deployed Ruby and Fluentd versions.
  • Leave container memory headroom above the RSS plateau. Ruby memory commonly grows and remains resident. Limits too close to steady state turn fragmentation headroom into an OOM kill.
  • Review configs for allocation-heavy patterns. Watch for tiny chunks, very short flush_interval values, complex regular expressions, and per-record Ruby code.

How Netdata helps

  • Per-second process metrics: RSS, CPU, and thread activity make GC-driven CPU burn and memory plateaus visible without waiting for long-interval averages.
  • Monitor agent correlation: Netdata can collect Fluentd buffer_queue_length, retry_count, rollback_count, flush_time_count, and emit_records alongside host metrics when monitor_agent is exposed.
  • API responsiveness context: A live process with a stalling monitor_agent endpoint is easier to identify when endpoint behavior, CPU, and RSS appear together.
  • Anomaly detection on throughput: Periodic output-rate dips from major GC pauses can stand out even when static thresholds are not crossed.
  • OOM context: Kernel OOM events next to the Fluentd RSS trend show when GC pressure escalated into a kill.