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-frontend-backend-5xx-delta

Operations Guides

HAProxy 5xx delta: telling HAProxy-generated errors from backend errors

Your frontend hrsp_5xx counter is climbing and users are seeing errors. The first question that decides the next hour of your incident response: is HAProxy generating these errors, or is it passing through errors your backend servers produced?

HAProxy counts 5xx responses in both places. Frontend rows count every 5xx the client saw, including responses HAProxy fabricated itself. Backend and server rows count only 5xx responses that actually came back from a server. The difference between the two answers “is the backend failing or is HAProxy failing?” without walking every backend one by one.

This is an expert-level signal (see the maturity model), but the mechanics are simple: subtract, then interpret the sign of the result.

What this means

Three failure modes produce 5xx responses that clients see, and only one of them involves your application:

  • 503 Service Unavailable generated by HAProxy: no server was available to handle the request. All servers DOWN, per-server or per-backend maxconn reached with a full queue, or a maxqueue limit exceeded.
  • 504 Gateway Timeout generated by HAProxy: timeout server (or the queue wait) expired before the backend responded. The backend may be hung, not dead.
  • 502 Bad Gateway generated by HAProxy: the connection to the server failed, or the server returned an empty, invalid, or incomplete response.

All three increment frontend hrsp_5xx. None of them increment backend hrsp_5xx, because no valid 5xx response ever came back from a server. By contrast, when your application returns a 500, HAProxy passes it through and both counters increment.

So:

  • Delta > 0 (frontend above backend sum): HAProxy is the source. Capacity, connectivity, health, or timeout problem in the proxy layer.
  • Delta near zero: the application is the source. Every 5xx the client saw came from a real server response.
  • Delta < 0 (backend sum above frontend): retries or aborted transfers are hiding responses. See the caveats below.
flowchart TD
  A[Frontend hrsp_5xx rising] --> B[Compute delta:
frontend 5xx rate minus
sum of backend 5xx rates] B --> C{Sign of delta} C -->|Positive| D[HAProxy-generated errors:
503 no server, 504 timeout,
502 connect failure] C -->|Near zero| E[Backend-returned errors:
application 500s passed through] C -->|Negative| F[Retries succeeding or
aborted transfers masking responses] D --> G[Check server status,
qcur, scur/slim, econ, rtime] E --> H[Check per-server hrsp_5xx
and application logs] F --> I[Check wretr, wredis,
cli_abrt, srv_abrt]

Common causes

CauseWhat it looks likeFirst thing to check
All servers in a backend DOWNLarge positive delta, mostly 503s; backend aggregate status DOWNPer-server status field and last_chk
Server or backend maxconn saturatedPositive delta with 503s; scur at slim, qcur growingscur/slim at all four levels, qcur
Backend timeout cascadePositive delta with 504s; servers UP, econ low, rtime climbingrtime per server, qcur, timeout server budget
Connect failures to backendPositive delta with 502s; econ incrementingecon per server, ctime
Application returning 500sDelta near zero; servers UP; rtime may look good (failing fast)Per-server hrsp_5xx, application logs
Retries masking backend 5xxNegative or shrinking delta; wretr/wredis elevatedwretr and wredis per server

Quick checks

All commands are read-only against the stats socket. Adjust the socket path if yours differs.

# 1. Pull hrsp_5xx for every row (frontend, backend, server)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '{print $1"/"$2": 5xx="$44}'

# 2. Backend aggregate health status (503 source check)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 == "BACKEND" {print $1": "$18}'

# 3. Connection and response errors (502 source check)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 != "FRONTEND" {print $1"/"$2": econ="$14" eresp="$15}'

# 4. Saturation and queue depth (503 source check)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '{if($7>0) print $1"/"$2": scur="$5" slim="$7" qcur="$3}'

# 5. Response time (504 source check, rolling avg over last 1024 requests)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 != "FRONTEND" {print $1"/"$2": rtime="$61"ms"}'

# 6. Retries, redispatches, and client aborts (negative-delta check)
echo "show stat" | socat unix-connect:/var/run/haproxy.sock stdio | \
  awk -F, '$2 != "FRONTEND" {print $1"/"$2": wretr="$16" wredis="$17" cli_abrt="$50}'

hrsp_5xx is a cumulative counter that resets on reload. Take two samples a known interval apart and work with rates, not raw values. A single snapshot tells you nothing about direction.

How to diagnose it

  1. Compute the delta as a rate. For each frontend, take the frontend hrsp_5xx rate and subtract the sum of the hrsp_5xx rates of the backends it routes to. Worked example: frontend web shows 40 5xx/s. Its backends app and api show 8/s and 2/s. Delta = 40 - 10 = 30/s of HAProxy-generated errors.

  2. If the delta is positive, classify by status code. You need logs or the stats page response-code breakdown for this step: 503 points at availability (servers DOWN, maxconn, queue overflow), 504 points at timeouts, 502 points at connect failures or invalid responses. Then jump to the matching deep-dive: 503 no server available, 504 timeout cascade, or 502 connect and response failures.

  3. For 503s, check the routing table first. Any server not UP stops receiving traffic. If the whole backend is DOWN, every request gets a fabricated 503. If only some servers are DOWN, check whether survivors are saturating: backend losing servers and scur approaching slim.

  4. For 504s, confirm the timeout cascade signature. Servers UP, econ low, rtime rising past half of timeout server, qcur growing. The backend is hanging, not refusing. See backend queue building.

  5. For 502s, separate connect failures from broken responses. Rising econ with low ctime is immediate refusal; rising econ after high ctime is a connect timeout. Rising eresp is the server closing or truncating mid-response. See ctime high.

  6. If the delta is near zero, stop looking at HAProxy. Every 5xx came from a server. Check per-server hrsp_5xx to see whether one server is sick or all of them are. If all servers are UP and healthy by checks while returning 500s, you are in the health check green, app broken pattern. Engage the application side.

  7. If the delta is negative, account for masking. When HAProxy retries a request and the retry succeeds, the backend counter can record the failed attempt while the client never sees a 5xx. Client disconnects mid-request produce the same asymmetry: the server sent its response, but nothing was delivered. Check wretr, wredis, and cli_abrt before concluding the numbers are broken.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Frontend hrsp_5xx rateTotal 5xx clients actually sawSustained rate above 0.1% of req_rate
Sum of backend hrsp_5xx ratesThe application-returned portionRising while frontend rate is flat
The delta itselfHAProxy-generated error rateAny sustained positive value
Server status / backend aggregate status503 root cause: nothing available to serveAny server DOWN; backend DOWN is a page
scur / slim at all levels503 root cause: admission control rejecting workAbove 80% of limit sustained
qcur / qtime503/504 root cause: requests waiting for a slotAny sustained nonzero value
econ / eresp502 root cause: connect failures vs broken responsesSustained nonzero rate
rtime vs timeout server504 root cause: responses arriving too lateAbove 50% of the timeout budget
wretr / wredisExplains a negative or shrinking delta; HAProxy masking instabilitySustained nonzero rate

Fixes

Delta positive: errors HAProxy generated

Servers DOWN or missing. Restore capacity: fix the failing servers, or correct the health check if it is marking healthy servers DOWN (wrong port, wrong expected status). If a deploy is flapping servers, consider MAINT on the offenders to stop redistribution churn while you roll back. Tradeoff: forcing a sick server UP floods it again; confirm the root cause first.

Saturation. If scur is pinned at slim, either raise the relevant maxconn (remember the hierarchy: global, frontend, backend, per-server, and each level throttles independently) or reduce connection hold time by fixing slow backends. Raising maxconn without checking memory and file descriptor headroom just moves the cliff. See the maxconn hierarchy.

Timeouts. A 504 delta means backends exceed timeout server. The durable fix is backend latency; the temporary fix is raising the timeout, which trades user-facing errors for user-facing slowness and holds connection slots longer, worsening saturation. Treat timeout increases as a bridge, not a fix.

Connect failures. Rising econ means the network path or the server’s accept behavior is broken: refused connections, full SYN backlog, security group changes, or ephemeral port exhaustion on the HAProxy host under high churn with poor connection reuse.

Delta near zero: errors the application returned

HAProxy is doing its job. Identify whether one server or all servers produce the 5xx (per-server hrsp_5xx). A single bad server argues for pulling it; a uniform distribution argues for an application-level bug, dependency failure, or bad deploy. Note the fast-failure trap: a server returning instant 500s shows low rtime, so latency dashboards look healthy while error rate climbs.

Delta negative: masked failures

Do not “fix” the counters. Reduce retry storms by stabilizing the backends that trigger wretr/wredis, and treat elevated retries as the early warning they are: HAProxy is compensating for instability that will become user-visible the moment retries stop succeeding.

Prevention

  • Alert on the delta, not just the totals. A ticket-level alert on a sustained positive frontend-minus-backend 5xx delta catches proxy-layer faults (capacity, health, timeouts) independently of application error budgets.
  • Handle counter resets. hrsp_5xx resets on every reload. Rate calculations must tolerate resets, and Uptime_sec from show info is the reliable way to detect one.
  • Watch retries continuously. wretr/wredis nonzero means HAProxy is hiding a problem from your users and from your error metrics at the same time.
  • Keep health checks honest. A delta near zero during an outage usually means health checks pass while the app fails. Health checks should exercise the dependencies real requests use.
  • Log per-request status and termination codes. Stats counters tell you the delta exists; logs tell you which requests and which termination states produced it. Protect the log pipeline: DroppedLogs in show info incrementing during an incident is the worst time to lose visibility.

How Netdata helps

  • Netdata collects HAProxy stats per frontend, backend, and server, so frontend and backend hrsp_5xx series are available side by side and the delta is visible without manual socket polling.
  • Per-second collection catches short 503 bursts from brief maxconn saturation that interval scrapes average away.
  • The delta becomes actionable when correlated on one dashboard with server status, qcur, scur/slim, econ, eresp, and rtime: the signals that disambiguate 503 from 504 from 502.
  • Retry and redispatch counters (wretr, wredis) charted next to the 5xx delta explain negative or shrinking deltas and surface masked backend instability before it becomes user-visible.
  • Anomaly detection on the delta itself flags the moment HAProxy starts generating errors, even when absolute error counts are still small.
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.