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 / logstash / logstash-persistent-queue-not-draining ▌

Operations Guides

Logstash persistent queue not draining: page-release lag after downstream recovery

The downstream outage is over. Elasticsearch is green, output errors have stopped, and Logstash is delivering events again. But the persistent queue is shrinking far slower than it filled, disk I/O is pinned, and df shows the same used space it did an hour ago even though queue_size_in_bytes has clearly dropped.

Most of the time, nothing is stuck. A persistent queue (PQ) draining after recovery looks unhealthy from almost every angle: high disk I/O, reduced effective throughput, and disk usage that refuses to go down. This is expected behavior driven by how PQ pages are released. The failure modes you actually need to rule out are narrower: page or checkpoint corruption, poison events pinning pages, and disk I/O saturation becoming the new bottleneck.

What this means

The PQ stores events in append-only page files on disk. During a downstream outage, inputs keep writing pages while outputs acknowledge nothing. When the downstream recovers, workers resume pulling batches, outputs start acknowledging, and the queue begins to drain. Three properties of the design make this drain look worse than it is:

  1. Drain is I/O-bound, fill was not. Filling the queue was sequential writes. Draining it is random reads of page files plus the normal write path for newly arriving events, on top of the output’s own network latency. On slow storage, and especially on network-attached storage, drain takes far longer than fill.
  2. Pages are released only when fully drained and checkpointed. A page file counts against queue_size_in_bytes until every event in it has been acknowledged by the output and the checkpoint records that fact. One unacknowledged event in a page keeps the whole page on disk.
  3. Logical queue size and physical disk usage diverge. queue_size_in_bytes drops as pages become releasable, but the filesystem does not show free space returning until page files are actually deleted. So the API says the queue is shrinking while df says nothing changed.

The practical consequence: judge drain progress by queue_size_in_bytes and flow.queue_persisted_growth_bytes (negative means draining), not by df. Judge disk health separately, because the filesystem can still fill while the queue is logically shrinking if pages are not being released.

flowchart TD
    A[Downstream recovered, PQ draining] --> B{queue_size_in_bytes decreasing?}
    B -- No --> C[Check output errors and worker state]
    B -- Yes --> D{flow.queue_persisted_growth_bytes negative?}
    D -- No --> C
    D -- Yes --> E{Drain rate reasonable for storage?}
    E -- Yes --> F[Normal recovery drag - monitor]
    E -- No, I/O saturated --> G[Disk I/O is now the bottleneck]
    B -- Stall after restart --> H[Check checkpoint/page corruption - pqcheck]
    C --> I{Output errors or retries rising?}
    I -- Yes --> J[Downstream not actually healthy]
    I -- No --> H

Common causes

CauseWhat it looks likeFirst thing to check
Normal page-release lagqueue_size_in_bytes dropping, df flat, high read I/O, drain slower than fillflow.queue_persisted_growth_bytes negative and steady
Disk I/O saturation is the new bottleneckDrain rate far below what the output could absorb, %util near 100 on the PQ device, low CPUiostat -xz 1 5 on the PQ volume
Slow or network storage under the PQDrain takes many times longer than fill; latency on every page readWhether path.data sits on NFS (not supported) or other slow storage
Checkpoint or page corruption after unclean shutdownLogstash restarts but queue does not drain, or drain stalls partway; PQ-related errors in the logPQ errors in logstash-plain.log; run pqcheck on the queue directory
One poison event pinning a pageQueue drains then stops at a specific size; one page never released because one event in it keeps failingOutput errors and DLQ growth correlated with the stall point
Downstream not actually healthyOutput throughput below input, retries or 429s still appearingPer-output plugin stats and downstream cluster health

Quick checks

All read-only. Run them in this order.

# 1. Queue state: is it actually draining?
curl -sS http://127.0.0.1:9600/_node/stats/pipelines?pretty
# Look at: queue.events_count, queue.queue_size_in_bytes,
# queue.max_queue_size_in_bytes, queue.data.free_space_in_bytes,
# flow.queue_persisted_growth_bytes (negative = draining),
# flow.input_throughput vs flow.output_throughput

# 2. Logical queue vs physical disk
# Note: du can be slow on a very large queue directory.
du -sh /var/lib/logstash/queue/main/
df -h /var/lib/logstash
# du larger than queue_size_in_bytes and df not moving = page-release lag, expected

# 3. Is disk I/O the bottleneck?
iostat -xz 1 5
# Watch %util and r_await on the device holding the PQ

# 4. Is the output actually healthy now?
grep -Ei '(retry|error|exception|failed|reject|unavailable|timeout|429|503)' /var/log/logstash/logstash-plain.log | tail -n 200

# 5. What are workers doing?
curl -sS 'http://127.0.0.1:9600/_node/hot_threads?pretty'
# Output-wait stacks = downstream still limiting; PQ read paths = disk-bound drain

# 6. DLQ growth (events permanently failing pin their pages)
curl -sS http://127.0.0.1:9600/_node/stats/pipelines?pretty
# Look at dead_letter_queue.queue_size_in_bytes

Two notes while checking. First, do not poll the stats API faster than every 10 seconds on a loaded instance; the API competes with the pipeline for JVM resources. Second, if queue.drain: true is set and Logstash is draining during a shutdown, the Node Stats API largely stops updating and only events.in/events.out keep moving, so drain progress read from the API during shutdown is unreliable.

How to diagnose it

  1. Confirm the drain is real. Take two samples of queue.queue_size_in_bytes a minute apart. If it is decreasing and flow.queue_persisted_growth_bytes is negative, the queue is draining. Nothing is stuck. Go to step 4 to estimate how long it will take.
  2. Confirm the downstream is genuinely healthy. Check output throughput against input throughput, per-output plugin durations, and the log for retries and 429s. A downstream that recovered “mostly” produces exactly this symptom: a queue that drains at a trickle because outputs are still slow. Hot threads showing workers parked in output-wait paths confirms this.
  3. If the queue is not draining, check for a pinned page. A page is released only when every event in it is acknowledged. If the drain stops at a specific size and stays there while outputs are otherwise flowing, suspect one event (or a small set of events) that the output permanently fails: mapping conflicts, schema mismatches, poison-pill payloads. These land in the DLQ if it is enabled, or are logged and dropped if it is not, but only after retries are exhausted. Until then, the event’s page stays on disk. Check DLQ growth and the log for non-retryable failures.
  4. Measure the drain rate against your storage. Compute the drain rate from the queue_size_in_bytes delta per minute. Compare it to what the device can do in iostat. If %util is pinned near 100 and read latency is high, disk I/O has become the bottleneck and the drain rate you see is all you are going to get. If neither I/O nor CPU is saturated, standard tuning (batch size, worker counts) often does not help much; splitting into parallel pipelines per output has been reported to improve throughput where single-pipeline tuning did not (Logstash’s persistent-queue docs describe this one-pipeline-per-output output-isolator pattern).
  5. Rule out corruption. If the queue refuses to drain after a restart, or Logstash failed to start cleanly, check the log for checkpoint and page errors, then run the bundled checker against the queue directory:
# Read-only check of PQ checkpoint and page state (path is the pipeline's queue dir)
bin/pqcheck /var/lib/logstash/queue/main/

pqrepair is the companion repair tool. Treat it as disruptive: stop Logstash first, and back up the queue directory before running it, since repair can mean losing unacknowledged events. On older versions, unexpected shutdowns can leave checkpoint.<n>.tmp files that made these tools crash with a NumberFormatException (elastic/logstash#11548); this was fixed in Logstash 8.1 (elastic/logstash#13721). There was also a pre-8.3 crash scenario where a head checkpoint pointed at a purged page and neither restart nor repair could recover the queue; Logstash 8.3 added a fix for that case (elastic/logstash#14165), but unclean shutdowns (OOM kill, kill -9, force-killed pods) remain the primary corruption source.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
queue.queue_size_in_bytes / max_queue_size_in_bytesOccupancy and whether it is fallingFlat or rising after downstream recovery
flow.queue_persisted_growth_bytesDirect fill/drain rate; negative means drainingPositive or near-zero during supposed recovery
flow.output_throughput vs flow.input_throughputWhether output can absorb the backlog plus live trafficOutput at or below input during drain
queue.data.free_space_in_bytesFilesystem free space on the PQ volume, distinct from logical queue sizeFalling while df was expected to recover
Disk %util and r_await on the PQ device (OS-level)Whether I/O saturation now caps the drain%util near 100 for the whole drain
dead_letter_queue.queue_size_in_bytesPermanently failing events that pin pagesAny growth during drain
flow.worker_utilization and hot threadsWhether workers are I/O-waiting on output or on PQ readsAll workers blocked on output while queue is full

Fixes

Let normal drag finish

If the queue is draining, the correct action is usually no action. Do not restart Logstash to “speed up” a healthy drain: a restart forces PQ replay of unacknowledged events and can make things slower. Set expectations: df will lag queue_size_in_bytes, potentially by a long time, because pages are deleted only when fully drained and checkpointed.

Disk I/O is the bottleneck

  • Move the PQ to faster local storage. The PQ documentation is explicit that NFS is not supported for the queue, for both integrity and performance reasons. If path.data is on network storage, that is the finding. Slow drain on NFS is not a tunable; it is the architecture.
  • Reduce competing I/O on the volume. PQ pages, DLQ files, and Logstash’s own logs compete for the same disk. If the PQ shares a partition with verbose logs, drop the log level back from debug and check log rotation.
  • Reduce concurrent pressure. If input rate is high during the drain, the head page keeps being written while tail pages are being read. Shedding non-critical inputs during recovery shortens total drain time.

Downstream still limiting

If output throughput is the cap, fix the downstream, not Logstash: cluster health, bulk rejections, thread pool saturation. Logstash-side, increasing pipeline.workers can help only if workers are genuinely CPU-starved; when workers are blocked on output I/O, more workers mostly means more waiters. Check flow.worker_utilization and per-plugin output utilization before touching worker counts.

Pinned pages from permanently failing events

Find the failing event class in the log (mapping conflicts, schema mismatches), fix the data or the destination mapping, and let the output acknowledge the events so their pages release. If the DLQ is enabled, the failed events are preserved for replay; if it is not, they are logged and dropped once retries exhaust, which also releases the page but loses the event. Decide which tradeoff you want before the incident, because during the incident you get whichever one is configured.

Corruption

Stop Logstash, back up the queue directory, run pqcheck, then pqrepair if warranted. If repair fails and the pipeline must come back, moving the queue directory aside and starting with a fresh queue loses everything the old queue held; assess that impact explicitly before doing it. On versions before 8.1, stale .tmp checkpoint files can crash the tools themselves; removing those files manually is the reported workaround (elastic/logstash#11548).

Prevention

  • Size queue.max_bytes relative to the disk, not to wishful thinking. PQ max_bytes limits the queue but not the filesystem. Keep the PQ well under the partition’s capacity and leave headroom for logs and the DLQ. Also keep queue.page_capacity below queue.max_bytes; a page capacity larger than max_bytes stalls the pipeline with no error in the log (the queue.page_capacity default has been 64mb since Logstash 6.0; Logstash 5.x shipped with a 250mb default).
  • Use local disk for path.data. No NFS. Drain time on network storage is measured in multiples of fill time.
  • Monitor the recovery path, not just the failure path. Alerting on PQ occupancy catches the fill; you also want flow.queue_persisted_growth_bytes and drain rate tracked after incidents so a stalled drain pages someone instead of being discovered the next morning.
  • Enable and monitor the DLQ so permanently failing events are visible instead of silently pinning pages and then silently vanishing.
  • Shut down cleanly. Most PQ corruption follows kill -9, OOM kills, and orchestrators force-killing pods before drain. Give termination grace periods room for the queue. queue.drain: true waits for an empty queue before shutdown, but the official guidance warns against it unless the queue is small enough to drain quickly; in container orchestrators, verify the termination grace period is long enough, because the drain is cut short if the platform kills the process first. Treat it as a small-queue tool, not a general safety net.

How Netdata helps

  • Queue occupancy and fill/drain direction in one view. Netdata charts queue_size_in_bytes, max_queue_size_in_bytes, and flow.queue_persisted_growth_bytes per pipeline, so you can see whether the queue is draining and how fast without hand-computing counter deltas.
  • Logical queue vs physical disk correlation. Plotting PQ size next to filesystem usage on /var/lib/logstash makes the page-release lag visible instead of alarming: the queue line falls first, df follows later.
  • Disk I/O saturation alongside drain rate. Per-second %util, read latency, and throughput on the PQ device, correlated with drain rate, answers “is the disk now the bottleneck” without a separate iostat session.
  • Output health correlation. Output throughput, per-plugin durations, and downstream error signals next to queue depth show whether a slow drain is the downstream’s fault or the storage’s fault.
  • Recovery-path alerting. Alerts on queue_persisted_growth_bytes staying non-negative after downstream recovery catch a stalled drain, which pure occupancy alerts miss.
  • DLQ growth during drain. DLQ size charted against the drain curve surfaces the pinned-page scenario early.