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 / haproxy / haproxy-run-queue-saturation

Operations Guides

HAProxy run queue rising: task backlog and scheduler pressure

HAProxy’s event loop processes every connection, request, health check, and timer as tasks scheduled across its threads. When tasks arrive faster than threads can drain them, they pile up in the run queue. That backlog is the earliest internal signal that HAProxy is CPU-saturated: it appears before latency spikes, before backend queuing, and before client timeouts.

It is also the signal to use when Idle_pct is meaningless. With busy-polling enabled, the event loop never sleeps, so Idle_pct sits near zero by design. The Run_queue field from show info and the per-thread counters from show activity are the replacement.

A rising run queue does not tell you why the scheduler is behind. The usual drivers are TLS handshake load, expensive ACL or regex evaluation, Lua scripts, and compression. The job is to confirm the backlog, find which threads and which work items cause it, and relieve the specific CPU consumer.

What this means

HAProxy multiplexes hundreds of thousands of connections across a small number of threads (nbthread). Each thread runs a poll loop: wait for I/O and timer events, wake the tasks that became runnable, execute them, repeat. Tasks are connection state machines, health checks, peers, stick-table expiry, and internal housekeeping.

Two fields in show info describe the scheduler’s position:

  • Tasks: total active tasks. Scales with connections and configured health checks. A size gauge, not a pressure gauge.
  • Run_queue: tasks that are runnable but waiting for a thread. Healthy operation is zero or near zero. A sustained nonzero, growing value means work is arriving faster than threads can execute it.

show activity adds roughly 32 per-thread counters: loop iterations, poll timing, run-queue depth per thread. Two things matter: aggregate backlog, and skew. One thread carrying most of the work caps overall throughput even when the average looks fine.

The failure cascade:

flowchart TD
  A[CPU driver: TLS handshakes, ACL/regex, Lua, compression] --> B[Tasks stay runnable longer per loop]
  B --> C[Run_queue rising, per-thread backlog]
  C --> D[Slower accept and request dispatch]
  D --> E[Client-visible latency climbs]
  D --> F[Backend ctime rises, accept slows]
  E --> G[Timeouts, client aborts]
  C --> H[Kernel accept queue overflows - ListenOverflows]
  H --> I[SYNs dropped before HAProxy sees them]

The kernel accept queue step is the nasty part. When the event loop is too busy to call accept() promptly, new SYNs overflow net.core.somaxconn and are dropped silently. HAProxy’s own metrics show nothing wrong because those connections never reached user space.

Common causes

CauseWhat it looks likeFirst thing to check
TLS handshake loadSslFrontendKeyRate elevated, Run_queue rising, backends healthySslFrontendKeyRate and SslCacheLookups vs SslCacheMisses in show info
Complex ACL/regex evaluationRun_queue tracks req_rate, not connection count; no single resource exhaustedAudit request rules for regex-heavy ACLs; correlate queue rise with request rate
Lua scripts in request/response pathBacklog skewed to specific threads or routes; latency rises on Lua-protected paths onlyIdentify which proxies use Lua actions; test by routing around them temporarily
Compression overheadIdle_pct dropping (non-busy-polling), high comp_rsp, poor comp_in/comp_out ratioCheck whether compression is enabled and what fraction of traffic it processes
Thread imbalance (hot thread)Aggregate counters moderate, one thread’s counters far above others in show activityPer-thread brackets in show activity output
Busy-polling misreadIdle_pct-near-zero alerts firing, but Run_queue is actually zeroConfirm whether busy-polling is set; if so, ignore Idle_pct entirely
Insufficient threads for the hardwareAll threads uniformly backlogged under normal loadCompare nbthread to available cores; check per-core CPU

Quick checks

All read-only, via the runtime socket. Adjust the socket path for your deployment.

# 1. Scheduler position: run queue, tasks, idle
echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | \
  grep -E "^(Tasks|Run_queue|Idle_pct|Uptime_sec):"

# 2. Per-thread activity counters (HAProxy 1.9+)
echo "show activity" | socat unix-connect:/var/run/haproxy.sock stdio

# 3. TLS handshake load (the usual prime suspect)
echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | \
  grep -E "^(SslRate|SslFrontendKeyRate|SslCacheLookups|SslCacheMisses|CurrSslConns):"

# 4. Traffic volume for correlation
echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | \
  grep -E "^(ConnRate|SessRate|CurrConns):"

# 5. Kernel accept queue overflow (event loop too busy to accept)
nstat -az | grep -i listen

# 6. System view: is HAProxy the CPU consumer, and on which cores
# (master-worker setups have multiple PIDs; include all of them)
top -H -p "$(pgrep -x haproxy | paste -sd,)"

# 7. Is compression active and busy
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 == "FRONTEND" {print $1": comp_in="$52" comp_out="$53" comp_rsp="$55}'
# 8. Two samples of Run_queue 10 seconds apart to see the trend
for i in 1 2; do
  echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | grep "^Run_queue:"
  sleep 10
done

Confirmed against HAProxy 2.8 management documentation: comp_in is field 51 (0-indexed, awk $52), comp_out is field 52 (awk $53), and comp_rsp is field 54 (awk $55). Field positions have been stable across HAProxy versions for the compression fields.

Notes on interpretation:

  • A single Run_queue snapshot means little. Sample repeatedly: a backlog that recovers between samples is burst absorption; a backlog that grows monotonically is saturation.
  • show activity counters are 32-bit and wrap on busy instances. Compare deltas over short windows, not absolute values from long-running processes.
  • show activity exists since HAProxy 1.9. On 2.7 and later, output shows an aggregated first column with per-thread values in brackets; older versions show per-thread values only.

How to diagnose it

  1. Confirm the backlog is real. Take three Run_queue samples 5-10 seconds apart. Sustained nonzero values, especially rising, confirm scheduler pressure. Record Tasks and Idle_pct (if not busy-polling) for the same samples.

  2. Check whether you are in busy-polling mode. If busy-polling is set in the global section, disregard Idle_pct for this entire diagnosis. It reads near zero on a perfectly healthy process. Run queue and show activity are your only in-process saturation signals; per-core system CPU is the external check.

  3. Look for thread skew in show activity. Compare per-thread run-queue depth and loop counters. One thread far ahead of the others means an affinity or distribution problem (for example, one listener thread absorbing all accepts). Uniform backlog across all threads means a global CPU deficit instead.

  4. Watch the loop timing counters. In show activity, poll loop duration tells you whether each iteration is getting slower (tasks doing more work per pass) or the queue between passes is getting deeper (more tasks waking per pass). Slower iterations point at expensive per-task work: regex ACLs, Lua, compression. Deeper queues at normal iteration speed point at volume: handshake storms, connection floods. Note that the per-thread show activity counter names and semantics are intentionally undocumented in the management manual; the source code (src/task.c and related) is the authoritative reference.

  5. Identify the CPU driver. Walk the usual suspects in order of likelihood:

    • TLS: is SslFrontendKeyRate elevated versus baseline? Is the session cache effective (SslCacheMisses / SslCacheLookups)? A broken or undersized cache forces a full handshake on every connection.
    • Request-phase CPU: does the backlog track req_rate (per-request work: ACLs, regex, Lua) or ConnRate/SslFrontendKeyRate (per-connection work: TLS)?
    • Compression: if enabled, is a large share of responses being compressed while the proxy is CPU-bound?
  6. Rule out the invisible loss path. Check ListenOverflows/ListenDrops and the ConnRate vs SessRate gap. If the event loop is too busy to accept, clients are already timing out at SYN and you will not see them in any HAProxy counter.

  7. Correlate with downstream symptoms. Backend ctime rising with low econ, and frontend latency rising while backend rtime stays flat, is the signature of HAProxy-side CPU saturation rather than a backend problem. If rtime is rising too, you may be looking at a backend slowdown instead: see the 504 cascade guide linked below.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Run_queue (show info)Direct measure of scheduler backlogSustained nonzero; rising across samples
Tasks (show info)Total active tasks, scales with connectionsGrowing without matching connection growth
Idle_pct (show info)Event loop headroom, when not busy-polling< 20% sustained; meaningless with busy-polling
show activity per-thread countersThread skew and loop behaviorOne thread’s counters far above peers
SslFrontendKeyRate (show info)TLS handshake load, the dominant CPU costSpike above baseline or tested capacity
SslCacheLookups / SslCacheMissesSession resumption effectivenessMiss rate climbing (full handshake per connection)
ConnRate vs SessRate gapPre-accept connection lossWidening gap during the incident
ListenOverflows/ListenDrops (/proc/net/netstat)Kernel dropping SYNs the loop can’t acceptAny acceleration during backlog
Backend ctime, frontend latency vs backend rtimeSeparates HAProxy-side CPU pain from backend slownessctime up, rtime flat
comp_rsp, comp_in/comp_outCompression CPU loadHigh compressed-response volume during backlog

Fixes

TLS handshake load

  • Fix session resumption first. If SslCacheMisses is high relative to lookups, the cache is too small or tickets are being invalidated (for example by frequent reloads). Restoring resumption removes most of the handshake CPU cost immediately and is the cheapest real fix.
  • Reduce new-connection churn. Long keep-alive lifetimes and HTTP/2 amortize handshakes across many requests. Check whether clients or an upstream device are forcing one connection per request.
  • Add threads or offload. If the load is genuine growth, raise nbthread toward available cores (requires a reload; plan it) or move termination to a dedicated layer. Adding threads during an active saturation event is disruptive: treat it as a planned change, not a hot fix.

Expensive per-request work (ACLs, regex, Lua, compression)

  • Simplify hot-path ACLs. Regex matching on every request multiplies cost by request rate. Prefer exact/string or map-based lookups where possible.
  • Audit Lua actions. Blocking or long-running Lua in http-request/http-response rules stalls the calling thread. Move work out of the request path or make the actions cheaper.
  • Restrict compression scope. Compress only compressible content types, or disable compression while CPU-bound. Compression trades CPU for bandwidth; when CPU is the scarce resource, the trade is wrong.

Thread imbalance

  • If show activity shows one thread doing most of the work, review listener binding and thread affinity configuration, and consider SO_REUSEPORT-based distribution. Verify with per-thread counters after the change; averages will hide the fix if it did not work.

When you cannot reduce the work

  • Shed or shape load. Rate limiting at the frontend (rate-limit sessions, stick-table based limits) caps the arrival rate so the backlog stops growing. This protects existing sessions at the cost of rejecting new ones.
  • Do not restart HAProxy as a first response. A restart drops all connections and resets all counters, destroying the evidence and briefly worsening client impact. If the process is healthy but saturated, the fix is less work or more capacity, not a new process.

Prevention

  • Baseline the run queue. Record typical Run_queue behavior at daily peak so “rising” has meaning for your workload. The norm is zero or near zero; know your bursts.
  • Alert on the busy-polling-appropriate signal. If busy-polling is on, disable Idle_pct alerting and alert on sustained Run_queue > 0 or per-core CPU of HAProxy threads instead. If it is off, alert on Idle_pct < 20% sustained as the early warning and Run_queue as confirmation.
  • Watch the CPU drivers, not just the symptom. Trend SslFrontendKeyRate, cache miss ratio, and compressed-response volume. These move before the run queue does.
  • Handle counter wrap. show activity counters are 32-bit. On high-traffic instances they wrap within the process lifetime; collect frequently, compute deltas, and treat resets on reload as new baselines (Uptime_sec tells you when a reload happened).
  • Capacity-plan from peak loop headroom. When peak-hour Idle_pct trends below ~30% (non-busy-polling) or the run queue starts appearing at peak regularly, you are inside the headroom buffer. Scale before the backlog becomes continuous.
  • Keep net.core.somaxconn and the SYN backlog sized for burst so a transiently busy loop absorbs connection bursts instead of silently dropping SYNs.

How Netdata helps

  • Netdata collects HAProxy show info and stats CSV fields continuously, so Run_queue, Tasks, Idle_pct, and SslFrontendKeyRate are graphed at high resolution instead of sampled by hand during the incident.
  • Per-second collection makes the rate of rise visible, which is what separates burst absorption from true saturation; a single manual sample cannot show that.
  • Correlating SslFrontendKeyRate and SSL cache counters against the run queue on one dashboard answers the “is this TLS?” question in seconds rather than a socket session.
  • Backend ctime, rtime, and econ alongside the scheduler signals confirm the backlog is HAProxy-side CPU pressure and not a backend slowdown masquerading as one.
  • System-level metrics (per-core CPU, ListenOverflows) collected from the same host close the loop on thread skew and the silent SYN-drop path.
  • Anomaly detection on the run queue and handshake rate catches slow-building scheduler pressure during off-hours, before it coincides with peak traffic.
The Netdata solution

HAProxy load balancer monitoring with Netdata

Netdata monitors HAProxy with per-second frontend, backend, and queue metrics plus ML-powered anomaly detection. Correlate maxconn saturation, queue buildup, health-check cascades, 5xx attribution, and file-descriptor exhaustion against the backend and host signals behind them, so you catch the incidents in these runbooks before they page anyone.