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-ephemeral-port-exhaustion

Operations Guides

HAProxy ephemeral port exhaustion: TIME_WAIT and backend connection churn

Your backends are healthy. Every server is UP, health checks pass, the application team sees nothing wrong on their side. Yet HAProxy is logging failed backend connections, econ counters are climbing, and clients see intermittent 502s or stalls. On the HAProxy host, tens of thousands of sockets sit in TIME_WAIT.

This is ephemeral port exhaustion on the backend-facing side of HAProxy. Every new TCP connection from HAProxy to a backend consumes one local ephemeral port. When the connection closes, that port is held in TIME_WAIT for 60 seconds before it can be reused. If the rate of new backend connections is high enough, the port range empties and connect() starts failing with EADDRNOTAVAIL. HAProxy reports these as connection errors even though nothing is wrong with the backend.

The trap is that every signal points at the backend except the one that matters. This guide covers the math behind the cliff, how to confirm the diagnosis in minutes, and the fixes in order of preference.

What this means

A TCP connection is uniquely identified by the four-tuple: source IP, source port, destination IP, destination port. From the HAProxy host, connections to a given backend share three of those four values: HAProxy’s source IP and the backend’s IP:port. The only varying component is the source port, drawn from net.ipv4.ip_local_port_range.

The default range on Linux is 32768 to 60999, roughly 28,000 ports. When HAProxy closes a backend connection (which it does on every request if connection reuse is not working), the socket enters TIME_WAIT for a fixed 60 seconds. This duration is hardcoded in the kernel (TCP_TIMEWAIT_LEN) and is not tunable.

That gives a hard ceiling on sustained new connections to a single backend IP:port:

  • ~28,000 ports / 60 seconds = ~450 to 470 new connections per second, sustained.
  • Below that rate, ports return to the pool as fast as you consume them.
  • Above that rate, the pool drains. Once no free port exists for the four-tuple, connect() fails immediately with EADDRNOTAVAIL.

This is a cliff edge, not gradual degradation. Everything works at 440 new connections per second and breaks at 470. Near the boundary the failures are intermittent because ports free up in a rolling window, which makes the symptom look like flaky networking.

flowchart TD
  A[High request rate] --> B[No backend connection reuse]
  B --> C[New TCP connection per request]
  C --> D[Socket closed: enters TIME_WAIT for 60s]
  D --> E{New conn rate > ports / 60s?}
  E -- No --> F[Steady state, ports recycle]
  E -- Yes --> G[Ephemeral port pool drains]
  G --> H[connect fails: EADDRNOTAVAIL]
  H --> I[econ spikes, 502s to clients]
  I -. misleading .-> J[Backends look healthy, no backend-side failure]

Things that shrink the ceiling further:

  • Fewer destination four-tuples. The port pool is per destination IP:port. One server on one port means all churn hits one 28K-port budget. Ten servers on distinct IPs each get their own budget.
  • Health checks. TCP health checks also open and close connections from HAProxy to each server. Frequent checks across many servers add their own TIME_WAIT accumulation on top of traffic.
  • A narrowed port range. Some hardening guides suggest shrinking ip_local_port_range. If yours was narrowed, the ceiling drops proportionally.

Common causes

CauseWhat it looks likeFirst thing to check
Connection reuse not configured or brokenconnect counter rate roughly equals request rate; reuse near zero; ctime nonzero on most requestsconnect vs reuse ratio in stats CSV
Backend sends Connection: close or disabled keepaliveReuse ratio dropped after a backend deploy; churn matches request rateReuse ratio trend over time, correlated with deploys
Sustained new-connection rate above the port ceilingWorks fine until traffic crosses ~450 conn/s to one server, then intermittent failuresss -s TIME_WAIT count during the incident
Frequent TCP health checks to many serversThousands of TIME_WAIT even at low traffic; grows with server count, not request rateTIME_WAIT count vs request rate
Narrowed ip_local_port_rangeCliff arrives well below 450 conn/ssysctl net.ipv4.ip_local_port_range

Quick checks

All read-only, safe to run during an incident.

# Socket summary on the HAProxy host
ss -s

# Count TIME_WAIT sockets directly
ss -tan state time-wait | wc -l

# Check the ephemeral port range
sysctl net.ipv4.ip_local_port_range

# More detail: sockets in use, TIME_WAIT, orphan count
cat /proc/net/sockstat

The stats CSV columns shift between HAProxy versions, so resolve them from the header instead of hardcoding column numbers:

# econ (connection errors) per backend/server
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | awk -F, '
  NR==1 { for (i=1;i<=NF;i++) { gsub(/[# ]/,"",$i); h[$i]=i } next }
  $2 != "FRONTEND" { print $1"/"$2": econ="$(h["econ"]) }'

# New-connection vs reused-connection counters per backend
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | awk -F, '
  NR==1 { for (i=1;i<=NF;i++) { gsub(/[# ]/,"",$i); h[$i]=i } next }
  $2 == "BACKEND" { print $1": connect="$(h["connect"])" reuse="$(h["reuse"]) }'

# Idle pooled and in-use connections per server
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | awk -F, '
  NR==1 { for (i=1;i<=NF;i++) { gsub(/[# ]/,"",$i); h[$i]=i } next }
  $2 != "FRONTEND" && $2 != "BACKEND" { print $1"/"$2": idle="$(h["idle_conn_cur"])" used="$(h["used_conn_cur"]) }'

The connect, reuse, and idle_conn_cur fields were introduced with the connection pool in HAProxy 1.9; if the header lacks them, use show servers conn below instead.

# Current and idle backend connections per server (HAProxy 2.2+)
echo "show servers conn" | socat unix-connect:/var/run/haproxy.sock stdio

The one-line diagnosis: high and growing TIME_WAIT on the HAProxy host, plus a connect counter rate close to the request rate, plus econ incrementing, while every backend health check is green. That combination is ephemeral port exhaustion until proven otherwise.

How to diagnose it

  1. Confirm the econ spike is real and scope it. Pull econ per backend and per server from the stats socket twice, 60 seconds apart, and compute the rate. Note whether the errors hit all servers in a backend equally (port exhaustion affects the host, so it hits every destination) or just one server (more likely a server-side problem).

  2. Check the backend side for absence of failure. Backend servers show no connection spikes, no SYN backlog overflow, no application errors. Econ spikes with no backend-side failure are the signature of this failure mode. If backends also show distress, you likely have a different problem; see the related guide on connection errors.

  3. Count TIME_WAIT on the HAProxy host. ss -s shows the total. If it is in the tens of thousands and tracks your traffic rate, you are at or near the ceiling. Compare against the port range from sysctl net.ipv4.ip_local_port_range; the range size is your budget.

  4. Compute the churn rate. Take two samples of the backend connect counter 60 seconds apart. The delta divided by 60 is your sustained new-backend-connection rate. Compare against range_size / 60. If the ratio is above roughly 0.7, you are one traffic spike from the cliff.

  5. Check whether reuse is working at all. The reuse ratio is reuse / (connect + reuse). If connect dominates, every request pays a new TCP connection. Look for why: no http-reuse directive, backends closing connections, or HTTP/1.0-style responses. Also check ctime: with working reuse it averages near zero because most requests skip connection setup. A sudden appearance of nonzero ctime at constant traffic means reuse broke down.

  6. Rule out health check churn. If TIME_WAIT is high but traffic churn is low, count your health checks: number of servers multiplied by check frequency. TCP checks closed from the HAProxy side leave TIME_WAIT sockets on the HAProxy host. High-frequency tcp-check across many servers can generate thousands of TIME_WAIT sockets by itself.

  7. Check HAProxy logs for source bind failures. When the port pool is dry, HAProxy logs a failure to bind a source address for the outgoing connect. The log message is Cannot bind to source address before connect(). If you see that, the diagnosis is confirmed.

One version-specific hazard: on some older HAProxy versions (the report was 2.0.14 on kernel 4.18), port exhaustion has been observed to trigger a pathological state where HAProxy stops closing file descriptors for dead connections, accumulating tens of thousands of CLOSE_WAIT sockets (45,329 in the reported case) and pinning all cores at 100% CPU (upstream issue #579). If CLOSE_WAIT piles up alongside TIME_WAIT during an exhaustion event, check your HAProxy version against that issue.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Backend connect counter rateThe churn rate that consumes portsRate approaching ip_local_port_range size / 60
Backend reuse counter rateReused connections consume no portsReuse ratio dropping, especially after a backend deploy
System TIME_WAIT count (ss -s)Direct measure of how much of the port budget is lockedCount tracking traffic rate into the tens of thousands
econ per backend/serverThe visible failure once ports run outSustained nonzero rate with healthy backends
idle_conn_cur per serverIdle pool depth available for reuseNear zero under load, meaning nothing is being pooled
ctime on backendsNear zero when reuse works; nonzero means new connectsSudden appearance of nonzero ctime at constant traffic
wretr / wredisHAProxy masking connect failures with retriesRising retries before user-visible errors start

Fixes

In order of preference. The first fix removes the root cause; the others raise the ceiling.

Enable backend connection reuse with http-reuse

This is the real fix. If connections are reused, they never close, never enter TIME_WAIT, and never consume a fresh port. One persistent connection per active request stream replaces the per-request connect/close cycle.

In HAProxy 3.x, http-reuse defaults to safe, which reuses connections conservatively. For backends on a stable path (typical reverse-proxy-to-application setups), http-reuse always is the recommended mode and maximizes reuse:

backend app_servers
    http-reuse always
    server app1 10.0.1.11:8080 check maxconn 200
    server app2 10.0.1.12:8080 check maxconn 200

Connection pooling is bounded by pool-max-conn (default -1, meaning unlimited) and pool-purge-delay (default 5s).

If your backends are why reuse fails (they send Connection: close, speak HTTP/1.0, or keepalive is disabled), fix the backend. Reuse is a leading indicator of this class of drift: when a backend change silently kills keepalive, the reuse ratio drops and churn returns before anyone notices why.

Note: connection reuse has had version-specific bugs. http-reuse always was reported unreliable on HAProxy 2.2.9, 2.2.19, and 2.4.9 (upstream issue #1472). Verify on your version with the connect/reuse counters after enabling it, not just from the config.

Widen the ephemeral port range

This raises the ceiling but does not remove the churn:

# Inspect current range
sysctl net.ipv4.ip_local_port_range

# Widen it (runtime, does not survive reboot)
sysctl -w net.ipv4.ip_local_port_range="10240 65535"

Persist it in /etc/sysctl.conf or a drop-in under /etc/sysctl.d/. Widening from ~28K to ~55K ports roughly doubles the sustained ceiling to ~900 new connections per second per destination. Mind the lower bound: do not overlap ports your own listeners or other local services bind.

Add source IPs or let HAProxy manage port ranges

The port budget is per four-tuple, so more source IPs multiply the budget:

  • Bind server lines to multiple local source IPs, spreading connections across several source-IP budgets.
  • Use source <ip>:<port_low>-<port_high> on server lines so HAProxy manages port allocation itself across a defined range, which can use the range more efficiently than the kernel allocator.
  • source 0.0.0.0 usesrc clientip preserves client IPs as source addresses, which also spreads four-tuples, but requires the backend network to route client-IP return traffic back through HAProxy (typically TPROXY or HAProxy as the default gateway). Only use this if that network setup already exists.

tcp_tw_reuse, cautiously

net.ipv4.tcp_tw_reuse lets the kernel reuse a TIME_WAIT socket for a new outbound connection when TCP timestamps prove it safe. Points to know:

  • On modern kernels the default is 2 (loopback only). Setting it to 1 enables it globally for outbound connections. HAProxy’s backend connections are outbound (client role), which is the side where this is considered relatively safe.
  • It only works when TCP timestamps are enabled on both ends, which is the Linux default.
  • Do not confuse it with tcp_tw_recycle, which was removed from the kernel entirely in Linux 4.12 because it broke clients behind NAT. Any guide recommending tcp_tw_recycle is outdated and dangerous.

Treat tcp_tw_reuse=1 as a mitigation while you roll out http-reuse, not as the primary fix.

Reduce health check churn

If health checks are a meaningful share of TIME_WAIT:

  • HAProxy 3.2 added check-reuse-pool, which lets health checks draw from the idle connection pool instead of opening a fresh connection each cycle.
  • HTTP health checks over reused connections generate less churn than raw TCP checks that connect and close.
  • If check frequency is higher than operationally needed, lowering it directly lowers churn.

Prevention

  • Monitor the churn rate as a leading indicator. Alert when the backend connect rate exceeds ~70% of port_range / 60 sustained. This fires before the cliff.
  • Alert on reuse ratio drops. reuse / (connect + reuse) falling after a deploy is the early warning that a backend change killed keepalive. Most teams never watch this ratio and discover the problem at the port-exhaustion cliff instead.
  • Track system TIME_WAIT. Collect ss -s or /proc/net/sockstat on HAProxy hosts. TIME_WAIT tracking traffic linearly is the slow-burn version of this incident.
  • Load test the ceiling, not just the app. Include the HAProxy host’s per-destination connection ceiling in capacity models. The app may handle 2,000 req/s while the port budget caps at 450 conn/s per server without reuse.
  • Set sane per-server maxconn. It will not prevent port exhaustion by itself, but bounding concurrency per server bounds how fast connections cycle.

How Netdata helps

  • Backend connect vs reuse rates per backend and server, collected every second, so you see the churn rate and the reuse ratio directly instead of deriving them from two manual socat samples during an incident.
  • econ per server in real time, letting you confirm the “errors on HAProxy, silence on backends” signature in one view instead of cross-checking two systems by hand.
  • System-level socket stats from the HAProxy host, including TIME_WAIT counts, correlated on the same dashboard as HAProxy’s connect rate, which is the correlation that confirms this diagnosis.
  • ctime trending, where a shift from near-zero to nonzero tells you connection reuse broke down before ports run out.
  • Anomaly detection on the connect counter rate, catching the slow traffic-growth drift toward the ~450/s-per-server ceiling weeks before it becomes an incident.
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.