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-connect-time-ctime-high

Operations Guides

HAProxy connect time (ctime) high: network latency and backend accept-queue overflow

Your HAProxy backend shows ctime climbing from a steady 1-2ms to tens or hundreds of milliseconds. Total request latency (ttime) rises with it, and if the trend continues, connect timeouts (econ increments, 502/504s on the frontend) are next. The connect phase of the HAProxy-to-backend path is degrading, and it almost always means one of three things: the network path is congested or losing packets, the backend’s kernel accept queue is overflowing, or the backend is too CPU-starved to answer the handshake promptly.

There is a fourth, quieter cause operators routinely miss: if you run http-reuse, ctime should sit at or near zero for almost all requests because connections come from the pool. A sudden appearance of nonzero ctime on a proxy that used to show zero is not a latency problem at all. It is connection reuse breaking down, and every request is now paying for a fresh TCP handshake.

What this means

ctime is the average time, in milliseconds, for HAProxy to establish a TCP connection to a backend server: SYN out to connection established. It is a rolling average over the last 1024 requests, reported per backend and per server in the stats CSV (0-based field index 59).

Two consequences follow:

  • It blends network round-trip time with the server’s accept-side processing. A slow SYN-ACK, a full accept queue, and a congested path all look identical in ctime alone.
  • The rolling window smooths spikes. A brief burst of slow connects gets diluted across 1024 samples, so ctime lags real-time events. Watch econ deltas and per-request Tc in logs for the sharp edge.

Baseline expectations: in the same datacenter, ctime should be under 1-5ms. Cross-datacenter values are legitimately higher but should be stable. Any change beyond roughly 2x baseline deserves investigation, and if ctime exceeds about 50% of timeout connect, your margin before connect failures is thin.

Common causes

CauseWhat it looks likeFirst thing to check
Network congestion or packet lossctime elevated across all servers in a backend, retransmits visible on the HAProxy hostss -ti on HAProxy for retransmission counts on backend-facing connections
Backend kernel accept-queue overflowctime high on one or a few servers; their kernel listen-overflow counters incrementingnstat -az | grep -i listen on the backend host
CPU-starved backend delaying SYN-ACKHigh ctime plus high rtime on the same server; load high on the backendCPU and run-queue on the backend host
http-reuse breakdownctime was ~0, suddenly nonzero; reuse flat while connect climbsconnect vs reuse counters on the backend rows
Connect timeout in progressRising ctime followed by rising econecon deltas correlated with ctime
Immediate refusal (not a latency issue)econ rising but ctime stays at or near zeroServer status, backend process listening, firewall, ephemeral ports

The last row is a different incident. Zero ctime plus econ means the connection was refused or reset immediately, or the path is black-holed before any handshake started: a dead server, a firewall, or ephemeral-port exhaustion on the HAProxy host. Do not let a mixed picture pull you into the wrong investigation.

Quick checks

These are all read-only. Run them before changing anything.

# 1. Current ctime per server and per backend (0-based CSV index 59, so awk $60)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$1 != "# pxname" && $2 != "FRONTEND" {print $1"/"$2": ctime="$60"ms"}'

# 2. Connection errors on the same rows (cumulative, so sample twice for a delta)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$1 != "# pxname" && $2 != "FRONTEND" {print $1"/"$2": econ="$14}'

# 3. Connection reuse vs new connects (is the pool still working?)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 == "BACKEND" {print $1": connect="$82" reuse="$83}'

The connect and reuse CSV fields (0-based indexes 81 and 82) only exist on HAProxy versions that report connection-reuse stats (1.8 and later). On older builds these columns are absent and the awk output will be empty.

# 4. Queue time and response time, to place the connect delay in context
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 == "BACKEND" {print $1": qtime="$59"ms ctime="$60"ms rtime="$61"ms ttime="$62"ms"}'

# 5. Event loop headroom on HAProxy itself (a saturated loop delays its own connects)
echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | grep -E "^(Idle_pct|Run_queue):"

# 6. Retransmissions on the HAProxy host (packet loss on the backend path)
ss -ti | grep -A1 -E "ESTAB" | grep -c retrans

On the suspect backend host:

# Kernel accept-queue overflow counters (should be zero or static)
nstat -az | grep -i listen

# Listen socket queue depth: Recv-Q near or above the backlog is an overflow in progress
ss -tln | grep -E ":(<backend-port>) "

# CPU starvation check
uptime
top -b -n1 | head -15

How to diagnose it

Work the fork in this order. Each step either confirms a cause or eliminates it.

flowchart TD
  A[ctime rising] --> B{econ also rising?}
  B -->|No| C[Handshake still completes, just slow]
  C --> C1{All servers or one?}
  C1 -->|All| C2[Network path congestion or loss]
  C1 -->|One/few| C3[Backend accept-queue overflow or CPU starvation]
  B -->|Yes| D{What is ctime value?}
  D -->|High then econ| E[Connect timeouts: network loss or overloaded backend kernel]
  D -->|Zero plus econ| F[Immediate refusal: server down, firewall, or ephemeral ports]
  A --> G{Was ctime ~0 before with http-reuse?}
  G -->|Yes| H[Reuse broke down - check connect vs reuse ratio]
  1. Split timeout from refusal. Take two econ samples a few seconds apart and compare with ctime. High ctime followed by econ growth means the handshake started but could not finish inside timeout connect: network loss or an overloaded backend kernel. econ growth with ctime pinned at zero means immediate refusal: the backend is not listening, a firewall is sending RST, or HAProxy cannot allocate an ephemeral port. Only the first branch belongs to this article; for the second, check server status and last_chk (L4CON/L4TOUT codes) and see the health-check failure guides linked below.

  2. Check whether reuse broke. If the backend has http-reuse configured, compare the connect and reuse cumulative counters against historical values. A healthy pool shows reuse / (connect + reuse) well above zero and ctime near zero. If reuse flatlined while connect accelerates, something invalidated the pool: the backend started sending Connection: close, an HTTP version or keep-alive change on the application side, or an upgrade on either end. This is a configuration-drift incident, and the elevated ctime is a symptom, not the disease. Also expect SslBackendKeyRate in show info to rise if backend TLS is in use, since every new connection re-handshakes.

  3. Determine scope: all servers or one. Per-server ctime comparison is decisive. All servers elevated together points at the shared network path between HAProxy and the backend subnet. One or two servers elevated points at those hosts.

  4. If all servers: prove network loss. On the HAProxy host, inspect backend-facing connections with ss -ti and watch the retransmission counters. Retransmits climbing means the path is dropping packets. Also check Idle_pct on HAProxy itself: a saturated event loop (Idle_pct below ~20%) delays its own connect processing, and ctime inflates even though the network is fine. If busy-polling is enabled, Idle_pct is meaningless by design; use show activity run-queue depth instead.

  5. If one server: check its accept queue. On the backend host, run nstat -az | grep -i listen. ListenOverflows or ListenDrops incrementing means the application’s accept queue is full: the kernel has established connections waiting for the app to call accept(), and under overflow it delays or drops further handshake progress. New connections from HAProxy sit in the handshake longer, which is exactly what ctime measures. Confirm with ss -tln: Recv-Q at or above the socket’s backlog on the listen socket is the overflow happening right now.

  6. Check the backend’s CPU. A host at saturation delays SYN-ACK and accept() processing. High load average relative to core count, plus high ctime plus high rtime on that server, is the signature. Here ctime is the leading edge of a general overload problem, and rtime will be the bigger number.

  7. Place the delay in the total-time budget. ttime decomposes roughly into qtime + ctime + rtime + transfer. If ctime is 100ms but ttime is 5s, the connect delay is real but not your main user-facing problem; fix it, but investigate rtime first.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
ctime per backend/server (rolling 1024)The symptom itself; blends network RTT and server accept time> 5ms same-DC, or > 2x baseline, or > 50% of timeout connect
econ (cumulative)Connect failures; the fork between timeout and refusalSustained nonzero delta; correlate with ctime value
connect vs reuseConnection pool health under http-reuseReuse ratio drops suddenly; ctime appears from zero
Idle_pct / Run_queueHAProxy event loop saturation inflating its own connect timesIdle_pct < 20% (only if busy-polling off)
ListenOverflows / ListenDrops (backend host)Kernel accept-queue overflow on the backendAny increment
rtime per serverSeparates “can’t connect fast” from “app is slow”Rising together with ctime on one server = host overload
qtime / qcurCompounding saturation; if queue and connect both rise, the backend is in trouble on two axesAny sustained nonzero
wretr / wredisHAProxy masking connect instability via retriesRetries > 1% of requests
ttime decompositionWhere the user-facing time actually goesctime growing as a share of ttime

Fixes

Network congestion or packet loss

Fix the path, not the proxy. Identify the lossy segment with retransmission evidence (ss -ti) and interface error counters, then escalate to whoever owns the link. Short-term, HAProxy retries (retries directive, option redispatch) mask single-loss events from users, but every retry adds latency and every redispatch hides the problem a little longer. Watch wretr/wredis while you treat the network: rising retries with flat user-visible errors means the masking is working but the disease is progressing.

Backend accept-queue overflow

The overflow is on the backend host, so the fixes live there:

  • Increase the application’s listen backlog, and make sure the kernel ceiling allows it: net.core.somaxconn on the backend host truncates the backlog the application asks for. Raising the app backlog without raising somaxconn does nothing.
  • If the application is simply not calling accept() fast enough (thread pool exhausted, event loop busy), the backlog raise buys time but the real fix is application concurrency or CPU. The rtime on that server will tell you which one you have.

Tradeoff: a larger backlog delays the onset of overflow but also delays the backpressure signal. Do not size it to hide a chronically slow app.

CPU-starved backend

Relieve the host: scale out the backend, shed load, or fix whatever is consuming CPU. From the HAProxy side, lowering that server’s maxconn caps how much work HAProxy will park on it, which reduces both its accept-queue pressure and its queueing. The cost is that requests spill to other servers or into the backend queue (qcur), so only do this if the other servers have headroom.

http-reuse breakdown

Find what invalidated the pool. Common triggers: the application began emitting Connection: close, a deploy changed keep-alive behavior or HTTP version, or the http-reuse mode no longer matches the traffic pattern. Restoring reuse returns ctime to near zero and simultaneously relieves backend connection churn, TLS handshake CPU (SslBackendKeyRate), and ephemeral-port pressure. Verify with the connect/reuse ratio recovering, not just with ctime dropping.

Safety margin on timeout connect

If ctime legitimately sits above 50% of timeout connect (for example cross-region backends), raise timeout connect deliberately rather than discovering the cliff during the next congestion event. This is a margin change, not a fix for the latency itself.

Prevention

  • Track ctime as a ratio of timeout connect, not an absolute number. The same 50ms is noise on a 5s timeout and an emergency on a 100ms one.
  • Alert on the reuse ratio, not just on ctime. The drop in reuse / (connect + reuse) fires before users feel the extra handshake latency, and it catches configuration drift that ctime-only alerting only notices after the fact.
  • Collect ListenOverflows/ListenDrops on every backend host, not just on HAProxy. Backend accept-queue overflow is invisible from HAProxy’s own metrics except as elevated ctime, by which point it has been happening for a while.
  • Baseline per-server ctime. A single server drifting upward while peers stay flat is an early host-degradation signal. Averages across the backend hide it.
  • Handle counter resets. All cumulative counters (econ, connect, reuse) reset on reload. Use Uptime_sec to detect resets so delta-based alerts do not misfire.

How Netdata helps

  • Netdata collects HAProxy per-backend and per-server timing metrics including ctime, qtime, rtime, and ttime, so you can see the connect phase degrade in the context of the full latency decomposition without hand-polling the stats socket.
  • Connection-error and retry counters (econ, wretr, wredis) are charted alongside the timing signals, which makes the timeout-versus-refusal fork a visual comparison instead of two SSH sessions and a stopwatch.
  • On the backend hosts, Netdata’s system-level charts surface TCP listen-overflow counters and CPU saturation next to HAProxy’s view, letting you confirm an accept-queue overflow on the server at the same timestamp where ctime jumped on the proxy.
  • Connection-pool behavior (connect vs reuse) is tracked over time, so a reuse breakdown shows up as a clear ratio change rather than a mystery rise in connect time.
  • Per-second collection granularity catches the sharp edge of econ deltas that HAProxy’s 1024-sample rolling averages smooth away.
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.