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 / pgbouncer / pgbouncer-query-wait-timeout ▌

Operations Guides

PgBouncer query_wait_timeout: clients disconnected after waiting too long for a connection

Your PgBouncer log is filling with pooler error: query_wait_timeout lines and application teams are reporting intermittent database errors. The error string sounds like a query problem. It is not. query_wait_timeout fires when a client has been sitting in PgBouncer’s wait queue, blocked on getting a server connection, for longer than the configured timeout. The client never reached PostgreSQL.

The default is 120 seconds. When this error appears, the pool has been exhausted for at least that long. query_wait_timeout is a lagging indicator: it tells you an incident happened, not that one is starting.

A trap makes this worse in most deployments. If your application-side timeout (5 to 30 seconds is typical) is shorter than query_wait_timeout, the application gives up and retries long before PgBouncer ejects the waiter. Each retry adds a new client to the queue. PgBouncer’s timeout never saves you; it just cleans up abandoned waiters while the retry storm deepens the queue.

What this means

PgBouncer maintains one connection pool per (database, user) pair, sized by pool_size. When all server connections in a pool are busy, incoming clients enter a FIFO wait queue. The age of the oldest waiter is exposed as maxwait in SHOW POOLS. When a waiter’s age exceeds query_wait_timeout (default 120s), PgBouncer disconnects that client with an error and logs the event.

The disconnection is a cleanup mechanism, not a rescue. When the application timeout is shorter than query_wait_timeout, the app times out and retries first, and the PgBouncer timeout only reaps the abandoned queue entries. The retry amplification loop looks like this:

flowchart TD
  A[All server connections busy] --> B[Clients enter wait queue]
  B --> C[App timeout fires at 5-30s]
  C --> D[App retries with new connection]
  D --> B
  B --> E[Queue grows faster than it drains]
  E --> F[Waiter age hits query_wait_timeout at 120s]
  F --> G[PgBouncer disconnects waiter and logs error]
  G --> H[Log-only event: no SHOW counter exists]

Two things to note about the mechanics:

  • maxwait uses the oldest queued client’s query_start; if that is zero, the janitor falls back to the client’s request_time. In normal query waiting, this measures from when the query was sent, not when the client connected. A client can be connected for hours in session mode; the clock starts on the pending query.
  • The event is log-only. PgBouncer exposes no error counter for it in any SHOW command. If you only scrape SHOW output, you will not see these disconnections at all.

Do not confuse query_wait_timeout with query_timeout. The latter cancels queries that run too long on the backend (default 0, disabled). query_wait_timeout disconnects clients that never got a server connection. Setting query_timeout has no effect on wait-queue behavior.

Common causes

CauseWhat it looks likeFirst thing to check
Pool exhaustion from slow backendsv_active = pool_size, avg_query_time elevated, cl_waiting growingSHOW STATS_AVERAGES - is query_time above baseline?
Idle-in-transaction holding connectionsavg_xact_time much larger than avg_query_time, connections “active” but idlePostgreSQL pg_stat_activity for idle in transaction
Undersized pool_sizeSaturation under normal traffic, not just spikessv_active / pool_size ratio sustained above 85%
Backend unreachable (Postgres down, DNS failure, network partition)sv_login elevated, total server connections declining, pool drainingSHOW DNS_HOSTS, direct connection test to PostgreSQL
Long transactions in session pooling modeConnections held for entire sessions, low pool turnoverSHOW POOLS - which pool mode, and which pool is saturated
Administrative PAUSEcl_waiting spikes, sv_active drops to zero, looks like an outageSHOW DATABASES - paused and disabled columns

The paused/disabled check matters because PAUSE produces exactly the same signal shape as an outage: high cl_waiting, zero sv_active, waiters aging toward the timeout. Rule it out before treating this as an incident.

Quick checks

All of these are read-only and safe during an incident. They assume the admin console on port 6432; adjust for your deployment.

# 1. Admin console responsiveness - if this is slow, the event loop itself is impaired
time psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -c "SHOW VERSION;" > /dev/null

# 2. Pool state: which pool is saturated, how deep is the queue, how old is the oldest waiter
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -c "SHOW POOLS;"

# 3. Paused/disabled context before escalating anything
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -Atc "SHOW DATABASES;"

# 4. Averages: is the backend slow (query_time) or is the pool just small (wait_time)?
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -Atc "SHOW STATS_AVERAGES;"

# 5. Timeout events from the log (the only place they exist)
grep -cE "query_wait_timeout" /var/log/pgbouncer/pgbouncer.log
grep -E "timeout" /var/log/pgbouncer/pgbouncer.log | tail -20

# 6. Per-connection detail: which server connections are holding the pool
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -c "SHOW SERVERS;"

# 7. Per-waiter detail: how close each waiting client is to the timeout
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -c "SHOW CLIENTS;"

# 8. Verify the configured timeout actually is what you think it is
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -Atc "SHOW CONFIG;" | grep -i wait

In SHOW POOLS, the columns that matter are cl_waiting (queue depth per pool), sv_active (compare against pool_size), sv_idle (headroom), and maxwait plus maxwait_us (oldest waiter’s age). In SHOW CLIENTS, wait and wait_us show how long each waiting client has been blocked and how close it is to being ejected.

How to diagnose it

  1. Confirm the pool is saturated, not just busy. In SHOW POOLS, find the pool where cl_waiting > 0. Check that sv_active equals pool_size and sv_idle is zero. If sv_active is well below pool_size while clients wait, something else is wrong: check for a paused database or backend connection failures.

  2. Check paused/disabled state. SHOW DATABASES shows paused and disabled per database. A paused database queues all new queries while existing transactions complete. This is expected during maintenance and is not an incident.

  3. Attribute the latency: pool or database. Compare avg_wait_time against avg_query_time in SHOW STATS_AVERAGES. High wait time with low query time means the database is fine and the pool is too small. High query time means PostgreSQL is slow and connections are held longer, which shrinks effective pool capacity.

  4. Distinguish pool exhaustion from backend failure. In pool exhaustion, the total server connection count is stable at pool_size with everything in sv_active. In backend failure, the total is declining and sv_login is elevated as connections attempt and fail to establish. SHOW DNS_HOSTS tells you whether resolution is returning current addresses; a stale cache after failover points PgBouncer at a dead backend.

  5. Find the connections holding the pool. SHOW SERVERS lists every server connection with state and request_time. An active connection with an old request_time is a long-running query or transaction monopolizing a slot. The link column lets you trace it back to the responsible client in SHOW CLIENTS.

  6. Check for idle-in-transaction. If avg_xact_time is many times larger than avg_query_time, applications are holding transactions open while doing non-database work. Confirm on the PostgreSQL side with pg_stat_activity filtered on idle in transaction.

  7. Reconstruct the timeline from the log. Count and timestamp the query_wait_timeout lines. Subtract your configured timeout from the first occurrence to get when the saturation event started.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
cl_waiting (SHOW POOLS)Primary saturation signal; any sustained nonzero value means clients are blockedNonzero for more than 60 seconds with maxwait climbing
maxwait / maxwait_us (SHOW POOLS)Age of the oldest waiter; the direct user-facing impact measureAbove 5s; approaching query_wait_timeout means disconnections are imminent
avg_wait_time (SHOW STATS_AVERAGES)Average queuing delay PgBouncer injects per requestSustained above 100ms; any large deviation from baseline
avg_query_time vs avg_wait_timeSeparates “database is slow” from “pool is too small”Must be read together; misattribution leads to wrong fixes
sv_active / pool_sizeLeading indicator; at 100% the next request queuesSustained above 85%
sv_idleHeadroom; zero idle with zero waiting means you are one slow query from a cascadeZero sustained
sv_loginBackend connection establishment healthPersistently above zero with rising cl_waiting
Timeout events in logThe only record of disconnections; no SHOW counter existsAny query_wait_timeout in production is abnormal
paused / disabled (SHOW DATABASES)Context that must gate every alert on the aboveSuppress cl_waiting/maxwait alerts during administrative states

Alert on sustained maxwait above a threshold, not on cl_waiting > 0. Brief queuing during bursts is normal in transaction pooling mode and will drown you in false positives. Set the threshold relative to your application timeout, not an absolute number.

Fixes

Fix the immediate saturation

Identify long-running queries or transactions holding server connections via SHOW SERVERS (old request_time on active connections), then cancel them on the PostgreSQL side with pg_cancel_backend or pg_terminate_backend. Coordinate with the application team first: terminating a backend errors the client attached to it through PgBouncer, so this is a disruptive action.

Do not restart PgBouncer as a first response. A restart drops all cached server connections and every client triggers re-authentication against PostgreSQL simultaneously, producing a thundering herd that is often worse than the original saturation.

Right-size the pool

If the database is healthy and avg_query_time is at baseline, the pool is too small. Increase pool_size (per-database override or default_pool_size) and issue RELOAD. Constraint: the sum of all PgBouncer pools’ pool_size values must fit within PostgreSQL’s max_connections with room for superuser connections, direct access, and replication. Multiple PgBouncer instances targeting the same backend multiply the demand.

If reserve_pool_size is configured and you see reserve connections drawn regularly (total server connections per pool exceeding pool_size, plus taking connection from reserve_pool warnings in the log), the base pool is chronically undersized. The reserve is for brief spikes; sustained usage masks the real sizing problem.

Fix the application behavior

If avg_xact_time >> avg_query_time, the fix is in the application: transactions held open across non-database work. On the PostgreSQL side, idle_in_transaction_session_timeout can auto-terminate these as a guardrail while the code is fixed.

Align the timeouts

This is the fix specific to this error. The relationship that matters:

  • Application timeout shorter than query_wait_timeout (the common case: 5-30s vs 120s) produces retry amplification. The app retries, the queue deepens, and the PgBouncer timeout only reaps corpses.
  • query_wait_timeout = 0 disables the timeout entirely, so clients queue indefinitely. That trades disconnection errors for unbounded queue growth and is rarely what you want.

Either lower query_wait_timeout to a value near the application’s retry budget so PgBouncer fails waiters fast and predictably, or keep it high only if clients genuinely cannot retry and must wait. What you cannot do is leave a 120-second PgBouncer timeout under a 10-second application timeout and expect the log lines to mean anything other than “we have been saturated for a very long time.”

Prevention

  • Alert on the leading indicators, not the timeout. Sustained maxwait and sv_active / pool_size above 85% fire minutes before the first disconnection. The query_wait_timeout log line is the post-mortem.
  • Parse the log. PgBouncer exposes no error counters via SHOW commands. Timeout events, connection refusals, and auth failures exist only in the log file. A monitoring setup that ignores logs is blind to every error condition PgBouncer reports.
  • Track timeout alignment in configuration review. Whenever application timeout settings change, check them against query_wait_timeout. Drift here is common and invisible until an incident.
  • Set max_client_conn with the retry storm in mind. During a queueing event, retries create new client connections. If used_clients reaches max_client_conn, new connections are refused with no more connections allowed, converting a latency incident into a hard outage.
  • Load-test the queue behavior. The interaction between pool size, application timeout, retry policy, and query_wait_timeout is only observable under saturation. A controlled test that drives the pool to exhaustion will show you which timeout fires first and how the retry cascade behaves.

How Netdata helps

  • Per-second cl_waiting and maxwait collection catches sub-minute queueing events that interval polling misses, and timestamps the start of saturation precisely instead of inferring it from the first log line 120 seconds later.
  • Wait time vs query time correlation puts avg_wait_time and avg_query_time on the same timeline, so “pool too small” and “database slow” are distinguishable at a glance rather than requiring two separate queries during an incident.
  • Pool utilization trending (sv_active against pool_size, sv_idle headroom) shows the slow creep toward saturation days before the first query_wait_timeout appears, turning a reactive fix into a capacity change.
  • Anomaly detection on maxwait flags the transition from normal burst queuing to sustained starvation without a hand-tuned static threshold.
  • Cross-pool visibility surfaces the single saturated (database, user) pool that aggregate dashboards hide behind healthy averages.
  • Log-based alerting on timeout events closes the gap left by PgBouncer’s lack of error counters, so disconnections page the right people instead of being discovered in a log grep the next morning.