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-oldest-timekey-lag ▌

Operations Guides

Fluentd buffer_oldest_timekey lag: how far behind the oldest buffered data is

buffer_oldest_timekey is a timestamp: the timekey of the oldest chunk still sitting in an output plugin’s buffer, waiting to be delivered. Subtract it from the current time and you get a number that answers the question operators care about during an incident: how old is the oldest data that has not reached its destination yet?

That number is more honest than the alternatives. Comparing input and output emit_records rates works for steady streams, but it misleads you for time-sliced outputs (which legitimately hold chunks until the slice expires) and for bursty workloads (where rates oscillate and any short window looks alarming). The oldest timekey does not care about rates. It tells you directly how stale the data is.

This guide covers what the metric is, when it exists, how to compute lag from it, what thresholds make sense, and the gotchas that make naive lag alerts fire on healthy systems.

What buffer_oldest_timekey is and why it matters

Fluentd buffers organize events into chunks. With time-based chunking (<buffer time> with a timekey), every chunk carries a timekey: the truncated timestamp of the time slice it belongs to. The buffer tracks the minimum and maximum of these across staged and queued chunks and exposes them through the monitor agent as buffer_oldest_timekey and buffer_newest_timekey on each output plugin.

The operational meaning:

  • now - buffer_oldest_timekey is the age of the oldest undelivered data. If this is 90 seconds, your destination is at most 90 seconds behind reality. If it is 6 hours, you have a severe delivery backlog and every dashboard and alert fed by this pipeline is working with stale data.
  • buffer_newest_timekey - buffer_oldest_timekey is the span of time your buffered data covers, useful for understanding how much history you would replay (or lose) if something happened to the buffer.

This is a gauge, sampled at query time. It moves forward in steps as old chunks flush and new ones stage.

flowchart LR
  A[Events arrive] --> B[Staged chunk
timekey = slice start] B --> C[Queued chunks
each with a timekey] C --> D[Flush to destination] C -.-> E[buffer_oldest_timekey
= min timekey] E --> F[lag = now - oldest_timekey] F --> G{lag > threshold?} G -->|yes| H[Delivery backlog] G -->|no| I[Pipeline on time]

When the metric exists

buffer_oldest_timekey is only present when time-based chunking is configured for that output’s buffer. If the buffer chunks on tag or uses the default chunking strategy, the field is absent. Do not build a monitoring strategy that assumes the field is always there, and do not treat “field missing” as “lag is zero”.

Outputs with a <buffer time> section (or <buffer tag,time>) and a timekey report it; outputs without it do not. If you want this signal on an output that lacks it, the fix is a config change to time-based chunking, which also changes flush behavior. Treat that as a deliberate tuning decision, not a monitoring patch.

Collecting it manually

The metric comes from the monitor agent API (<source> @type monitor_agent </source>, default port 24220, auto-incrementing per worker in multi-worker mode):

# Oldest and newest timekeys per output plugin
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, oldest: .buffer_oldest_timekey, newest: .buffer_newest_timekey, queue: .buffer_queue_length}'

To compute lag in seconds per output:

# Lag = now - oldest timekey, per output plugin
now=$(date +%s)
curl -s http://localhost:24220/api/plugins.json | \
  jq --argjson now "$now" \
    '.plugins[] | select(.plugin_category=="output" and .buffer_oldest_timekey != null) |
     {id: .plugin_id, lag_seconds: ($now - .buffer_oldest_timekey)}'

In multi-worker mode, each worker has its own monitor agent port (24220, 24221, …) and its own independent buffers. Query every worker. An aggregate that hides one worker’s stalled buffer is a false sense of security.

Thresholds that make sense

There is no universal number of seconds. Derive the threshold from how the output is configured to flush:

  • Interval-mode outputs (flush on flush_interval): lag should not exceed roughly 2 * flush_interval. One interval to fill and queue the chunk, one to flush it. Beyond that, something is delaying delivery.
  • Time-sliced outputs (e.g., S3 with <buffer time>): lag should not exceed timekey + timekey_wait. A chunk for a given slice legitimately waits until the slice closes plus the wait margin. Anything beyond that means the slice closed and the chunk still has not been delivered, which is a real backlog.

Two rules around these thresholds:

  1. Alert on sustained breach, not single samples. Flush cycles, retries, and slice boundaries all create momentary lag spikes that resolve on their own.
  2. Derive the threshold from the actual output config. Different outputs on the same Fluentd can have wildly different timekey and flush_interval values. A single global threshold will be simultaneously too tight for one output and too loose for another.

Why this beats rate comparison

The common alternative is alerting on input versus output emit_records divergence. That works, with caveats: you need a window of at least max(2 * flush_interval, 10 minutes), you need input_emit_rate > 0 to avoid division by zero, and time-sliced outputs legitimately diverge for the length of a slice. Bursty workloads produce windows where output rate is zero and everything is fine.

buffer_oldest_timekey sidesteps all of that. It does not ask “are rates balanced right now?” It asks “how old is the oldest thing we owe the destination?” A time-sliced output holding a chunk for its full slice shows lag under timekey + timekey_wait and stays quiet. A stalled output shows lag climbing linearly with wall clock, regardless of burst shape.

Keep rate comparison for detecting silent data loss and routing problems, which oldest-timekey cannot see: it tells you nothing about events that never made it into the buffer at all.

Gotchas that make lag checks lie

The field is absent without time chunking. A lag alert that silently stops evaluating because the field disappeared (after a config change, for example) is a monitoring hole. Alert on the field being unexpectedly absent for outputs where you expect it.

Empty queue, stale value. When the queue drains fully, the oldest-timekey value can lag reality: there is no old data, but the last-reported value may not reflect “nothing is waiting”. This matches how Fluentd publishes the metric: Buffer#statistics only emits oldest_timekey when at least one time-keyed chunk exists, so a drained buffer simply omits the field (null), and a lag expression against it reads null or the dashboard’s last cached value. A lag computation that ignores queue state can report a growing “backlog” on a pipeline that has fully caught up. Gate lag alerts on buffer_queue_length > 0 (or buffer_total_queued_size > 0) so an empty buffer can never page you.

Timekeys move in steps, not continuously. The timekey is a slice boundary, not the timestamp of the oldest individual event. With a one-hour timekey, the oldest timekey can sit an hour behind current time on a perfectly healthy pipeline, because the current slice is still open and accumulating. This is exactly why the threshold for time-sliced outputs is timekey + timekey_wait and not a fixed small number. Do not alert on raw lag without normalizing for the configured timekey.

Per-worker divergence. In multi-worker mode, workers do not share buffer state. One worker can have a growing oldest-timekey while the others are current. Evaluate the metric per worker, per output plugin.

Lag without cause. A rising oldest-timekey tells you delivery is late, not why. Correlate before concluding: retry_count climbing points at destination failure, write_count flat points at a stalled output, buffer_queue_length growing points at the output falling behind, and slow_flush_count or rising average flush time points at destination slowness rather than hard failure.

Signals to correlate

SignalWhy it mattersWarning sign
now - buffer_oldest_timekeyAge of oldest undelivered dataSustained above 2 * flush_interval or timekey + timekey_wait
buffer_newest_timekey - buffer_oldest_timekeySpan of buffered historyGrowing span: backlog spans more and more time
buffer_queue_lengthConfirms a real backlog existsGrowing while lag grows; gate lag alerts on this being non-zero
write_countWhether chunks are actually being deliveredFlat while lag climbs: output fully stalled
retry_count and retry state (retry.steps, retry.next_time)Destination failing; backoff stretching delivery delayNon-zero, or retry.next_time far in the future
slow_flush_count and flush_time_count / write_countDestination slow rather than downRising average flush time toward flush_interval
buffer_available_buffer_space_ratiosHow close the backlog is to overflowDeclining while lag grows: staleness is about to become data loss

The last row is the escalation that matters most. Lag is a freshness problem. Lag plus shrinking available buffer space is a freshness problem that will soon become a data-loss problem when overflow_action fires. Track both.

How Netdata helps

  • Netdata’s Fluentd collector scrapes the monitor agent API per worker, so buffer_oldest_timekey, buffer_newest_timekey, queue length, retry and write counters are collected together at per-second resolution rather than via ad-hoc curl.
  • Because all buffer metrics share the same plugin/worker dimensions, you can chart lag next to buffer_queue_length and write_count on one dashboard and see immediately whether staleness comes with a stalled output or is just slice-timing noise.
  • Netdata’s anomaly detection on lag and queue-length series surfaces outputs whose oldest data is aging faster than their historical pattern, which catches slow drifts that fixed thresholds miss.
  • Correlating Fluentd buffer metrics with host-level signals (disk free on the buffer partition, process RSS) in the same view shortens the path from “data is late” to “and here is how long we have before overflow.”