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 / proxysql / proxysql-backend-connection-pool-exhausted ▌

Operations Guides

ProxySQL backend connection pool exhausted: queries queuing for a free connection

Queries are queuing. Client-facing latency is climbing. Applications are reporting timeouts or “too many connections” errors. You look at ProxySQL’s backend pool and see ConnFree at zero across one or more backends. The natural assumption is that the pool is exhausted.

It might not be. ConnFree == 0 alone is not saturation. ProxySQL can still create new backend connections up to the max_connections limit configured in mysql_servers. The pool is under pressure, but ProxySQL has headroom to open more connections if the backend can accept them.

True saturation means ProxySQL cannot create new backend connections (either max_connections in mysql_servers is reached, or the backend MySQL is rejecting connections, shown by rising ConnERR) AND has no free ones to reuse. At that point queries queue, latency rises, and without intervention the queue deepens until clients time out.

What this means

Each backend entry in mysql_servers has a max_connections cap that limits how many connections ProxySQL will open to that server. When you see ConnFree == 0 sustained for more than 60 seconds with ConnUsed > 0, the pool is under pressure. But ProxySQL will still attempt to open new connections up to max_connections. The key question is whether those attempts are succeeding or failing:

  • Pool pressure without saturation: ProxySQL is creating connections on demand and keeping up, but the free pool is empty. This happens under burst load, batch processing, or when the idle connection floor (mysql-free_connections_pct, default 10) is low relative to demand. Queries may see slightly elevated latency from connection establishment overhead, but they are not failing.
  • True saturation: ProxySQL has hit its max_connections cap for a backend, or the backend MySQL itself is rejecting connections. ConnPool_get_conn_failure is rising. Server_Connections_delayed is positive. Queries are genuinely queuing for a free connection.

The single most important diagnostic signal is whether ConnPool_get_conn_failure is rising. That counter measures how often ProxySQL tried to get a backend connection from the pool and could not. It is more actionable than ConnFree == 0 alone.

flowchart TD
    A["ConnFree == 0
sustained > 60s"] --> B{"ConnPool_get_conn_failure
rising?"} B -->|No| C["Not saturation
ProxySQL still opening conns
up to max_connections"] B -->|Yes| D{"ConnERR rising?"} D -->|No| E["ProxySQL max_connections
cap reached for this backend"] D -->|Yes| F["Backend rejecting connections
check MySQL max_connections"] C --> G["Check multiplexing ratio
and Active_Transactions"] E --> H["Raise max_connections
or reduce pinning"] F --> I["Check backend MySQL
max_connections
and SHOW PROCESSLIST"]

Common causes

CauseWhat it looks likeFirst thing to check
Slow queries pinning connectionsConnUsed high, Slow_queries rate elevated, Active_Transactions sustained high, Latency_us rising on affected backendstats_mysql_query_digest ordered by sum_time DESC
Multiplexing collapseClient_Connections_hostgroup_locked approaching Client_Connections_connected, ConnUsed tracking client count linearlystats_mysql_processlist for sessions with disabled multiplexing
max_connections too low in mysql_serversConnUsed at or near max_connections, ConnPool_get_conn_failure rising, backend MySQL has spare capacityruntime_mysql_servers max_connections vs backend MySQL actual capacity
Unbalanced routingOne backend saturated while peers in same hostgroup have idle connectionsPer-backend ConnUsed and ConnFree in stats_mysql_connection_pool
Backend MySQL at its own connection limitConnERR rising, ConnOK stalled, backend Threads_connected near its max_connectionsBackend MySQL SHOW STATUS LIKE 'Threads_connected' vs SHOW VARIABLES LIKE 'max_connections'

Quick checks

All commands connect to the admin interface on port 6032. Replace credentials as appropriate. These are read-only queries against stats tables and are safe to run during an active incident.

# Pool state per backend: ConnUsed, ConnFree, ConnOK, ConnERR
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup, srv_host, srv_port, status, ConnUsed, ConnFree, ConnOK, ConnERR, Latency_us FROM stats_mysql_connection_pool ORDER BY hostgroup, srv_host;"
# Global pool operation counters: get_conn_failure is the key saturation signal
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT Variable_Name, Variable_Value FROM stats_mysql_global WHERE Variable_Name IN ('ConnPool_get_conn_success','ConnPool_get_conn_failure','ConnPool_get_conn_immediate','Server_Connections_delayed','Server_Connections_aborted','Server_Connections_connected');"
# Active transactions and multiplexing health
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT Variable_Name, Variable_Value FROM stats_mysql_global WHERE Variable_Name IN ('Active_Transactions','Client_Connections_connected','Client_Connections_non_idle','Client_Connections_hostgroup_locked');"
# Top 20 queries by total execution time
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup, schemaname, username, digest_text, count_star, sum_time, ROUND(sum_time/count_star) AS avg_time_us, max_time FROM stats_mysql_query_digest ORDER BY sum_time DESC LIMIT 20;"
# Per-backend max_connections from runtime config
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup_id, hostname, port, status, max_connections, weight FROM runtime_mysql_servers ORDER BY hostgroup_id;"
# Longest-running client sessions
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT user, cli_host, hostgroup, db, command, time_ms FROM stats_mysql_processlist ORDER BY time_ms DESC LIMIT 20;"

How to diagnose it

  1. Confirm whether this is true saturation. Check ConnPool_get_conn_failure and Server_Connections_delayed. If both are rising, queries are queuing for backend connections. If ConnPool_get_conn_failure is flat and only ConnFree == 0, the pool is under pressure but not saturated.

  2. Check ConnERR on the saturated backend. Rising ConnERR means ProxySQL tried to connect and was rejected. This points to either max_connections in mysql_servers being reached, or the backend MySQL itself refusing connections. If ConnERR is flat but ConnUsed equals max_connections, ProxySQL’s own per-backend cap is the limit.

  3. Compare ConnUsed against max_connections per backend. Cross-reference stats_mysql_connection_pool with runtime_mysql_servers. If ConnUsed is at or near max_connections, the per-backend cap is the bottleneck.

  4. Identify what is consuming the connections. Check stats_mysql_query_digest ordered by sum_time DESC. Slow queries hold backend connections longer, reducing pool turnover. A single query type dominating total execution time is your optimization target.

  5. Check multiplexing health. Compute Client_Connections_hostgroup_locked / Client_Connections_connected. If this ratio exceeds 0.5, more than half of client sessions have pinned backend connections. The pool cannot multiplex effectively, and ConnUsed will scale linearly with client count instead of sublinearly.

  6. Check for unbalanced routing. If one backend in a hostgroup has ConnFree == 0 while peers have idle connections, check weight in runtime_mysql_servers and rule hit patterns in stats_mysql_query_rules.

  7. Check the backend MySQL directly. Connect to the backend (bypassing ProxySQL) and run SHOW PROCESSLIST and SHOW STATUS LIKE 'Threads_connected'. If the backend is near its own max_connections, the problem is on the MySQL side, not the proxy side.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
ConnPool_get_conn_failureMost direct indicator that queries cannot get backend connectionsSustained rate above zero
Server_Connections_delayedCounts queries that had to wait for a free backend connectionAny sustained positive value
ConnFree per backendIdle connections available for immediate reuseZero sustained longer than 60 seconds
ConnUsed vs max_connectionsUtilization ratio against ProxySQL’s per-backend capRatio above 80% sustained
ConnERR per backendFailed connection attempts to the backendRising rate, especially if accumulating faster than ConnOK
Active_TransactionsOpen transactions pin backend connections, preventing reuseHigh count relative to Client_Connections_connected
Client_Connections_hostgroup_lockedSessions with disabled multiplexing, each holding a dedicated backend connectionRatio to Client_Connections_connected above 0.5
Slow_queries rateSlow queries hold connections longer, reducing pool turnoverSustained increase from baseline

Fixes

Slow queries consuming the pool

If stats_mysql_query_digest shows one or few query types dominating sum_time, those queries are holding backend connections long enough to starve the pool. Fixing the query (adding an index, rewriting the SQL, partitioning data) is the correct long-term fix.

Short-term mitigation: increase max_connections in mysql_servers for the affected backend, if the backend MySQL can handle the additional connections. This buys headroom but does not address the underlying query performance.

-- Increase per-backend max_connections (active after LOAD + SAVE)
UPDATE mysql_servers SET max_connections=200 WHERE hostname='10.0.0.5' AND port=3306;
LOAD MYSQL SERVERS TO RUNTIME;
SAVE MYSQL SERVERS TO DISK;

This change takes effect immediately after LOAD MYSQL SERVERS TO RUNTIME. Without SAVE MYSQL SERVERS TO DISK, the change is lost on restart.

Multiplexing collapse

If Client_Connections_hostgroup_locked / Client_Connections_connected is high, sessions are pinning backend connections. Common causes: ORMs setting session variables (SET NAMES, SET sql_mode, SET time_zone) on every connection, long-running transactions, GET_LOCK(), temporary tables, or user-defined variables. When multiplexing is disabled for a session, it remains disabled until the client disconnects.

Diagnose by checking stats_mysql_processlist for sessions with multiplexing disabled. The extended_info column may show the specific reason. Consider moving session variable initialization to MySQL server-side defaults or ProxySQL’s mysql-init_connect so they do not require per-session SET commands.

Short-term: increase max_connections on affected backends to absorb the near 1:1 mapping until the application can be fixed. Long-term: identify which SET commands or session features are disabling multiplexing and eliminate them from the application’s connection initialization path.

max_connections too low in mysql_servers

If ConnUsed is at max_connections but the backend MySQL has available capacity, raise ProxySQL’s per-backend max_connections. Verify the backend can handle the increase by checking SHOW STATUS LIKE 'Threads_connected' against SHOW VARIABLES LIKE 'max_connections' on the MySQL side.

Critical sizing rule: the sum of all ProxySQL instances’ max_connections for a given backend should not exceed approximately 80% of the backend MySQL’s actual max_connections. The remaining 20% covers direct admin connections, replication threads, monitoring tools, and any non-proxy application connections that share the backend.

Unbalanced routing

If one backend is saturated while peers in the same hostgroup are idle, check routing weights in runtime_mysql_servers. A backend with a higher weight receives proportionally more traffic. Also review mysql_query_rules hit patterns: a rule may be routing specific query patterns to one backend disproportionately.

Backend MySQL at its own connection limit

If the backend MySQL is at its own max_connections, ProxySQL cannot help by raising its own limit. The fix is on the MySQL side: raise max_connections in MySQL, reduce idle connections from other consumers, add more read replicas, or identify and terminate runaway sessions consuming connections.

Prevention

  • Monitor ConnPool_get_conn_failure rate as your primary saturation signal. It is more actionable than ConnFree == 0 alone because it tells you ProxySQL actually tried and failed to get a connection.
  • Track the multiplexing ratio (Client_Connections_hostgroup_locked / Client_Connections_connected) over time. A gradual decline indicates application changes are silently breaking multiplexing long before it becomes an incident.
  • Set max_connections headroom properly. The sum of all ProxySQL instances’ per-backend max_connections should stay below 80% of the backend MySQL’s actual max_connections.
  • Alert on ConnFree == 0 sustained for more than 60 seconds combined with ConnPool_get_conn_failure above zero. ConnFree == 0 without get_conn_failure is pool pressure, not saturation.
  • Watch Server_Connections_delayed. Any sustained positive value means queries are already waiting for backend connections. This is a leading indicator that appears before ConnPool_get_conn_failure starts climbing.
  • Reset stats_mysql_query_digest periodically. The table grows unboundedly and resets on restart. Use SELECT * FROM stats_mysql_query_digest_reset for periodic collection; reading that table resets the stats at the end of the SELECT.
  • Verify config changes are saved to disk. A runtime-only change to mysql_servers will be lost on restart. Always run SAVE MYSQL SERVERS TO DISK after LOAD MYSQL SERVERS TO RUNTIME.

How Netdata helps

Netdata collects ProxySQL admin metrics per second and retains them across restarts, which matters because ProxySQL’s stats tables reset on restart.

  • Per-second ConnPool_get_conn_failure and Server_Connections_delayed: rate of change is more informative than point-in-time snapshots from manual admin queries.
  • Per-backend correlation of ConnUsed, ConnFree, and ConnERR: immediately shows whether one backend or all are saturated, and whether errors accompany the zero-free-connection state.
  • Active_Transactions and Client_Connections_hostgroup_locked alongside pool metrics: reveals whether multiplexing collapse is driving the exhaustion without manual joins across admin tables.
  • Anomaly detection on ConnPool_get_conn_failure and the multiplexing ratio: surfaces gradual degradation before it crosses a static threshold, useful for multiplexing collapse that develops slowly over weeks.
  • Historical retention across restarts: stats_mysql_connection_pool and stats_mysql_query_digest reset on restart. Without external persistence, you lose the baseline needed to distinguish normal peak load from degradation.