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-backend-unreachable ▌

Operations Guides

PgBouncer backend unreachable: PostgreSQL down and the pool draining

Clients are queueing in PgBouncer, wait times are climbing, and SHOW POOLS shows fewer server connections than there were an hour ago. Nobody changed the config. The likely cause: PostgreSQL is down, network-partitioned, or rejecting connections, and PgBouncer cannot establish new server connections to replace the ones it is losing.

This failure mode is deceptive because it degrades slowly. Existing server connections keep serving queries until they expire (server_lifetime, default 3600s), go idle past server_idle_timeout (default 600s), or error out. The pool drains gradually rather than failing all at once. Meanwhile clients pile into the wait queue and eventually get disconnected at query_wait_timeout (default 120s).

The other trap is that the failure is invisible in every SHOW counter. PgBouncer has zero error counters: no connect-failure count, no login-failure count. The root cause lives only in the log, in lines containing connect failed, S: login failed, or server DNS lookup failed. The metrics only show the consequences.

What this means

PgBouncer holds one pool per (database, user) pair, with server connections in states sv_active, sv_idle, sv_used, sv_tested, and sv_login. When the backend becomes unreachable:

  1. New connection attempts enter sv_login and fail or stall.
  2. Existing connections continue working, then close one by one as they expire or error.
  3. The total server connection count (sv_active + sv_idle + sv_used) declines over time.
  4. Clients queue in cl_waiting, maxwait grows, and the oldest waiters are disconnected at query_wait_timeout.

The distinguishing signature versus ordinary pool exhaustion is the total connection count trend, not the queue. In pool exhaustion the total is pinned at pool_size with everything in sv_active. In backend failure the total shrinks over time while sv_login stays elevated or fluctuating.

flowchart TD
  A[PostgreSQL down or unreachable] --> B[New server connections fail in sv_login]
  A --> C[Existing connections keep serving queries]
  C --> D[Connections expire via server_lifetime / server_idle_timeout or error]
  D --> E[Total pool size declines over time]
  B --> E
  E --> F[Clients queue: cl_waiting grows, maxwait climbs]
  F --> G[Oldest waiters disconnected at query_wait_timeout]
  H[Log: connect failed / S: login failed] -.only evidence of root cause.-> B

Common causes

CauseWhat it looks likeFirst thing to check
PostgreSQL down or restartingconnect failed in log; all pools affected at onceConnect directly to PostgreSQL with psql, bypassing PgBouncer
Network partition or firewall between PgBouncer and PostgreSQLconnect failed; direct connection from PgBouncer host fails tooTest TCP reachability from the PgBouncer host to the backend port
PostgreSQL at max_connectionsS: login failed: FATAL: too many connections... style errors; existing connections work, new ones rejectedCount backends in pg_stat_activity against max_connections
Credential mismatch (password rotated, stale auth_file)S: login failed with authentication errors; only some users/pools affectedVerify credentials in PgBouncer config match PostgreSQL
DNS resolution failure or stale cache after failoverserver DNS lookup failed in log; SHOW DNS_HOSTS shows empty addrs or the pre-failover IPSHOW DNS_HOSTS; for TTL and resolved addresses
PostgreSQL in recovery (crash recovery or replica)S: login failed: FATAL: the database system is in recovery modeCheck PostgreSQL logs and pg_is_in_recovery() directly

Quick checks

All of these are read-only. Run them from the PgBouncer host.

# 1. Pool state: is the total server connection count declining?
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW POOLS;"
# Watch sv_active + sv_idle + sv_used per pool. Falling total = draining pool.
# Stable total at pool_size with sv_idle=0 = exhaustion, a different problem.

# 2. Are connections stuck trying to log in?
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW POOLS;" | awk -F'|' '{print $1, $2, "sv_login="$13}'
# Sustained sv_login > 0 with low sv_active means connections are failing to establish.

# 3. Rule out administrative state before escalating
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW DATABASES;"
# Check paused and disabled columns. A PAUSE produces the same queue with zero sv_active.

# 4. DNS state for hostname-configured backends
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW DNS_HOSTS;"
# Empty addrs or an obviously stale IP = the backend "outage" is a DNS problem.

# 5. The log: where the actual root cause lives
tail -200 /var/log/pgbouncer/pgbouncer.log | grep -iE "connect failed|login failed|DNS lookup failed"
# Adjust the path to your logfile setting.

# 6. Does PostgreSQL accept a direct connection, bypassing PgBouncer entirely?
psql -h <postgres-host> -p 5432 -U <user> -d <db> -c "SELECT 1;"

# 7. Is PostgreSQL refusing because it is full?
# On PostgreSQL itself:
psql -c "SELECT count(*), current_setting('max_connections')::int FROM pg_stat_activity;"

How to diagnose it

  1. Confirm the symptom class. Pull SHOW POOLS twice, a minute apart. If sv_active + sv_idle + sv_used per pool is declining between samples, this is backend connection failure. If the total is stable at pool_size and everything is sv_active, you want the pool exhaustion guide instead (linked below).

  2. Read the log first. This inverts the usual habit of starting with metrics, but here the metrics only show consequences. grep the log for connect failed, S: login failed, and server DNS lookup failed. The S: prefix marks a server-side (backend) event. The message after S: login failed: is the FATAL error PostgreSQL returned, which usually names the cause directly: recovery mode, too many connections, auth failure.

  3. Test the backend directly, from the PgBouncer host. A direct psql connection that succeeds tells you PostgreSQL is alive and the problem is PgBouncer-side (credentials, config, DNS cache). A direct connection that fails tells you the problem is below PgBouncer: PostgreSQL down, network path broken, or PostgreSQL full.

  4. If direct connection succeeds but logins still fail, check PostgreSQL’s connection count. If pg_stat_activity is at max_connections, PgBouncer cannot open new server connections even though the backend is healthy. Existing PgBouncer connections keep working; new ones get S: login failed. This looks like a backend outage in the queue but is actually a capacity collision.

  5. If the backend is configured by hostname, check DNS. SHOW DNS_HOSTS shows the cached address and TTL. After a failover, PgBouncer may hold the old primary’s IP until the cache TTL expires. A RELOAD only helps when it changes that database’s connection settings; RECONNECT (available since 1.9) closes server connections as they are released and makes new ones, but it does not by itself force a fresh lookup before dns_max_ttl expires. RECONNECT drops all existing healthy connections too, so use it deliberately, not reflexively.

  6. Check the failure scope. All pools failing at once points to PostgreSQL, the network, or DNS. One pool failing while others are healthy points to per-database credentials, a per-database connection string, or a single backend behind a multi-backend config.

One behavioral detail that surprises operators: after a failed login, PgBouncer waits server_login_retry (default 15s) before trying again, and during that interval new clients trying to connect to the failing server get an immediate error instead of another connection attempt. This is the documented global login-retry behavior, not a pool-mode-specific branch, so the user-facing symptom can flip between “requests hang then time out” and “requests fail instantly” on a 15-second cycle.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Total server connections per pool (sv_active + sv_idle + sv_used)The defining signature: declining total means the pool is drainingDownward trend over minutes, disconnected from traffic patterns
sv_login per poolConnections attempting backend auth. Should be ~0 in steady stateSustained > 0 with low sv_active: establishment is failing
cl_waiting per poolClients blocked waiting for a server connectionNon-zero and growing, with the database not paused
maxwaitAge of the oldest waiter. Approaching query_wait_timeout (default 120s) means disconnections are imminentmaxwait climbing toward 120s
avg_wait_time (SHOW STATS_AVERAGES)Rolling average of queueing delay, catches what point-in-time snapshots missRising from a near-zero baseline
SHOW DNS_HOSTS addrs/TTLOnly window into which IP PgBouncer is actually using per backendEmpty addrs, or an IP that no longer matches the live primary
paused/disabled (SHOW DATABASES)Context gate for every other alertpaused=1 or disabled=1 explains the queue without any backend failure
Log: connect failed / S: login failed / DNS lookup failedThe only source of root-cause evidence; no SHOW counter existsAny occurrence in production outside a planned restart

Fixes

PostgreSQL is actually down

Fix PostgreSQL. PgBouncer needs no intervention: once the backend accepts connections, failed logins stop, the retry succeeds within server_login_retry, and the pool refills on demand. Expect sv_login to spike and cl_waiting to drain over the following seconds as queued clients get served. If the queue is deep, the drain takes a few pool turnovers, not zero time.

PostgreSQL is up but at max_connections

PgBouncer’s total possible server connections (sum of all pools’ pool_size plus reserve_pool_size, across every PgBouncer instance targeting this backend) must fit inside max_connections with room for superuser and direct access. The immediate lever is reducing demand or raising max_connections on PostgreSQL (requires a PostgreSQL restart). The durable fix is capacity planning so the arithmetic holds under failover and burst conditions.

Credentials rotated without updating PgBouncer

Update the credentials PgBouncer uses to authenticate to PostgreSQL, then RELOAD. If clients authenticate via auth_query, verify the auth function and auth_user permissions still work, since a broken auth_query also surfaces as login failures.

DNS is stale or failing

If SHOW DNS_HOSTS shows the old IP after a failover, change the backend connection settings and RELOAD (or wait out dns_max_ttl), then use RECONNECT when long-lived connections still need replacement. Consider whether the DNS cache TTL is too long for your failover mechanism; the tradeoff of lowering it is more resolver load. If resolution itself is failing (server DNS lookup failed), fix the resolver path. Backends configured by IP bypass this class of failure entirely.

The queue is already deep

Do not restart PgBouncer. A restart discards every server connection, including the healthy ones still serving queries, and triggers a login storm against a backend that may already be struggling. Let query_wait_timeout (120s default) shed the stalest waiters; clients with their own shorter timeouts will already have given up and possibly retried, which is worth remembering when you size the retry wave after recovery.

Prevention

  • Log capture is non-negotiable. Connect failures, login failures, and DNS failures appear nowhere in SHOW output. If your monitoring only scrapes SHOW commands, this failure class is invisible until clients start timing out. Ship the PgBouncer log and alert on connect failed and S: login failed.
  • Alert on the draining signature, not just the queue. Track total server connections per pool as a time series. A declining total with elevated sv_login catches backend failure minutes before maxwait approaches query_wait_timeout.
  • Gate every queue alert on paused/disabled. A PAUSE during maintenance produces identical cl_waiting and maxwait symptoms. Check SHOW DATABASES state in the alert condition.
  • Keep the connection arithmetic honest. Sum of all pools across all PgBouncer instances must stay comfortably under PostgreSQL max_connections. Recheck this every time pool_size, instance count, or max_connections changes.
  • Test the failover path. If your failover is DNS-based, verify that PgBouncer actually follows it: cache TTL, RELOAD behavior, and whether you need RECONNECT. Discovering stale DNS during a real failover is the worst time to learn this.
  • Separate the timeout story. Know how your application’s statement/connection timeout interacts with query_wait_timeout. If the app times out at 10s and retries, a 30-second backend blip becomes a much longer retry-amplified event.

How Netdata helps

  • Per-pool server connection states over time turn the draining signature into a visible trend: total server connections declining while sv_login stays elevated is the picture that separates backend failure from exhaustion at a glance.
  • cl_waiting and maxwait per pool show queue depth and the oldest waiter’s age, so you can see how close clients are to the query_wait_timeout cliff.
  • avg_wait_time versus avg_query_time correlation attributes latency correctly: wait time rising while query time stays flat means the backend path is broken, not the queries.
  • Paused/disabled state collection lets alerts suppress themselves during maintenance instead of paging for an intentional PAUSE.
  • Log-based alerting on connect failed and S: login failed closes the gap PgBouncer’s SHOW commands leave open, surfacing the root cause rather than only its queueing consequences.