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-thundering-herd-restart ▌

Operations Guides

PgBouncer thundering herd after restart: a login storm against PostgreSQL

PgBouncer just restarted. Maybe you pushed a config change that required it, maybe the process crashed, maybe the OOM killer took it out and systemd’s Restart=always brought it right back. Within seconds, your dashboards light up: clients are queueing, wait times spike, and PostgreSQL is suddenly absorbing hundreds of simultaneous connection attempts. Then, usually, it calms down on its own within 10 to 60 seconds.

This is a structural property of how PgBouncer works, not a bug. PgBouncer holds all of its server connections in process memory. When the process dies, every cached backend connection dies with it. The moment the new process starts accepting clients, every incoming query needs a brand new server connection, and every pool tries to build them all at once.

The good news: the pattern is self-resolving if PostgreSQL has the connection headroom to absorb the storm. The bad news: if you use auth_query, or if PostgreSQL’s max_connections is tight, the storm can tip into a feedback loop that does not resolve on its own.

What this means

Under steady state, a PgBouncer pool keeps a set of warm server connections (sv_idle) ready for immediate reuse. A client query gets an existing connection in microseconds. After a restart, every pool starts at zero server connections. The first queries against each pool trigger connection creation: TCP handshake, optional TLS negotiation, and PostgreSQL authentication for each one.

In SHOW POOLS, connections being established show up as sv_login. During a restart storm, sv_login spikes toward pool_size across all pools simultaneously, and cl_waiting spikes because no connections exist yet to serve queries. On the PostgreSQL side, pg_stat_activity shows a surge of new backends being created.

The simultaneous, all-pools nature is the signature. A normal pool exhaustion event hits one busy pool. A restart storm hits everything at once, right after a process start event.

flowchart TD
  A[PgBouncer restarts] --> B[All server connections lost]
  B --> C[Pools start empty: sv_idle = 0]
  C --> D[Every client query needs a new backend connection]
  D --> E[sv_login spikes to pool_size on all pools]
  D --> F[cl_waiting spikes: queries queue for connections]
  E --> G{PostgreSQL absorbs the login storm?}
  G -->|yes| H[Connections establish, drains in 10-60s]
  G -->|no: max_connections tight or auth_query contention| I[Login failures, retry loop, prolonged outage]
  F --> G

The auth_query case deserves special attention. For a user/database pair whose credentials are not already cached, PgBouncer runs auth_query against PostgreSQL as auth_user. That query uses a separate authentication pool keyed by the authentication database and auth_user (auth_dbname defaults to the client’s target database), not one of the client workload pools. After a restart that authentication pool is cold too, and both it and every workload pool compete for PostgreSQL backend slots. If PostgreSQL is also refusing or slowing new connections, first logins can stall until the auth pool and target pools can establish backends.

Common causes

CauseWhat it looks likeFirst thing to check
Planned restart for config changeStorm starts immediately after a deploy or systemctl restart; self-resolvesPgBouncer uptime vs. deploy timeline
Crash or OOM kill with Restart=alwaysUnexpected storm; gap in stats; possible log gapjournalctl -u pgbouncer, dmesg for OOM
Rolling deploy without connection drainingRepeated storms, one per instance restartDeployment pipeline logs
auth_query bootstrap contentionStorm does not self-resolve; auth failures in logPgBouncer log for auth and login errors
PostgreSQL max_connections too tightServer logins fail; pool cannot rebuildPostgreSQL connection count vs. limit

Quick checks

All of these are read-only. Run them against the PgBouncer admin console and PostgreSQL itself.

# 1. Confirm the restart: process uptime and start time
ps -o pid,lstart,etime -p $(pgrep -f pgbouncer)

# 2. Check for an OOM kill as the trigger
dmesg | grep -i oom | tail -5
journalctl -u pgbouncer --since "-10 min" | tail -30

# 3. Pool states: sv_login and cl_waiting per pool, plus maxwait (oldest waiter)
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW POOLS;"

# 4. Global counters: login_clients stuck authenticating with PgBouncer itself
psql -h /var/run/postgresql -p 6432 -U pgbouncer pgbouncer -Atc "SHOW LISTS;"

# 5. PgBouncer log: login failures, connect failures, timeouts
tail -200 /var/log/pgbouncer/pgbouncer.log | grep -iE "login failed|connect failed|timeout"

The admin console socket path depends on your unix_socket_dir setting; use a TCP connection to the admin port if PgBouncer does not listen on a Unix socket.

On the PostgreSQL side:

# 6. Is PostgreSQL absorbing the storm, or saturated?
psql -h <postgres-host> -U <user> -d postgres -Atc \
  "SELECT count(*), state FROM pg_stat_activity GROUP BY state;"

# 7. Headroom against the hard limit
psql -h <postgres-host> -U <user> -d postgres -Atc \
  "SELECT setting::int FROM pg_settings WHERE name = 'max_connections';"

How to diagnose it

  1. Confirm the trigger. Correlate the storm onset with process start time. If uptime is seconds to minutes old when sv_login and cl_waiting spiked across all pools, you are looking at a restart storm, not a traffic event. SHOW STATS counters reset on restart, so any continuity-based monitor will show a discontinuity at the same moment.

  2. Verify the all-pools signature. In SHOW POOLS, check that sv_login is elevated across many pools at once. A single hot pool points to a workload problem instead.

  3. Check whether it is draining. Take SHOW POOLS snapshots 10 to 15 seconds apart. In the healthy case, sv_login converts to sv_idle and sv_active, and cl_waiting and maxwait trend down. The typical self-resolution window is 10 to 60 seconds.

  4. If it is not draining, find out why logins fail. PgBouncer has no error counters in any SHOW command; failures are log-only. Look for login failed, connect failed, and timeout messages. Each failed server login triggers a backoff controlled by server_login_retry (default 15 seconds) before PgBouncer retries, during which new clients for that pool get errors. A storm that keeps failing looks like a sawtooth: attempt, fail, 15-second backoff, retry.

  5. Check PostgreSQL’s headroom. Compare the current backend count against max_connections. If the sum of all PgBouncer pools (plus any direct clients and replication connections) exceeds what PostgreSQL can accept, the storm cannot succeed no matter how long you wait. Logins get refused and the retry loop continues.

  6. If you use auth_query, check the auth path. During the storm, auth queries for new client logins need server connections from the same pools that are being rebuilt. If auth_user has no guaranteed connection slot, authentication itself starves. Symptoms: client login failures in the log while sv_login stays high and login_clients in SHOW LISTS climbs.

  7. Rule out the impostors. Check SHOW DATABASES for paused or disabled flags before treating queueing as an incident; a PAUSE during maintenance produces identical-looking cl_waiting spikes. If existing connections work but new ones fail and the resolved backend address is stale, you may be looking at a DNS problem after a failover rather than a restart storm; check SHOW DNS_HOSTS.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
sv_login per pool (SHOW POOLS)Connections currently authenticating with PostgreSQL; the direct measure of the login stormSpike to pool_size across all pools simultaneously right after a restart
cl_waiting per pool (SHOW POOLS)Clients blocked waiting for a server connection; the user-facing impactNon-zero across many pools at once; failing to trend down after ~60s
maxwait (SHOW POOLS)Age of the oldest waiter; how close clients are to query_wait_timeout (default 120s)Climbing past 5-15s and not recovering
avg_wait_time (SHOW STATS_AVERAGES)Average queuing delay PgBouncer is injectingSharp spike coinciding with process start
login_clients (SHOW LISTS)Clients stuck authenticating with PgBouncer itselfElevated during the storm, especially with auth_query
PostgreSQL backend count vs. max_connectionsWhether the login storm can physically succeedBackend count pinned at or near the limit during the storm
PgBouncer log: login and connect failuresOnly source of error information; no SHOW counters existlogin failed or connect failed repeating after each retry window

Fixes

If it is draining on its own

Wait. The correct first response to a self-resolving restart storm is to do nothing for 30 to 60 seconds and watch cl_waiting and maxwait trend down. Killing connections or restarting again during the bootstrap window restarts the storm and usually makes it worse. If the storm resolves but keeps happening, the fix is to stop restarting so abruptly; see Prevention.

If PostgreSQL cannot absorb the storm

The total possible server connections across all PgBouncer pools (sum of every pool’s pool_size, plus reserve_pool_size if configured) must fit inside PostgreSQL’s max_connections with room left for superuser access, replication, and direct clients. If they do not, either raise max_connections on PostgreSQL or shrink the pools. As a working guideline, keep aggregate PgBouncer pool capacity under about 80 percent of max_connections. Multiple PgBouncer instances pointed at the same PostgreSQL multiply the demand, and server_login_retry (default 15s) means each failed login wave is followed by a 15-second backoff, so recovery from overshoot is slow.

If auth_query is starving itself

Give auth_user a guaranteed authentication pool. start_auth_query uses the (auth_dbname, auth_user) pool and can launch a connection up to that pool’s size. Configure a dedicated auth_dbname database entry with a forced auth user, an explicit pool_size, and—when prewarming is appropriate—min_pool_size, so authentication does not depend on a cold on-demand pool. Authentication still consumes PostgreSQL backend slots, so include that capacity in the backend budget.

Also note that auth_query behavior has version-specific security fixes (notably the VALID UNTIL handling fixed in 1.24.1 and the default auth_query hardening in 1.25.1). If you run a custom auth_query, keep it aligned with the current default’s semantics when you upgrade.

If the storm is caused by your restart procedure

Change the procedure, not the limits. See Prevention.

Prevention

  • Rolling restart with so_reuseport. Run multiple PgBouncer processes sharing one listen port and restart them one at a time so the surviving processes keep serving with warm pools. Since 1.23, SIGTERM performs a graceful shutdown that waits for clients to disconnect, which makes drain-then-restart practical. The older --reboot online restart option is deprecated since 1.20; the supported replacement is so_reuseport plus rolling restarts.

  • Pre-warm pools with min_pool_size. Setting min_pool_size above zero keeps a floor of server connections in a pool, which reduces cold-start latency for that pool. One caveat: the setting is enforced for pools that have a forced user or at least one connected client, so a purely on-demand pool may not warm up until its first client arrives. Pools with a forced user get the most benefit.

  • Size PostgreSQL for the storm, not the average. The worst case is every pool rebuilding to pool_size simultaneously. Validate that the sum of all pools across all PgBouncer instances fits inside max_connections with margin, before your next restart proves it does not.

  • Reserve an auth path. If you use auth_query, give auth_user a dedicated, explicitly sized authentication database/pool so authentication cannot starve during the bootstrap window.

  • Tune expectations around server_login_retry. With the 15-second default, a failed first login wave means clients see errors for at least that long before the next attempt. Know this number when judging whether a storm is “stuck” or merely backing off.

  • Stagger lifecycle recycling. The built-in spread of server_lifetime reconnects protects steady-state rotation, but it does nothing for a full restart. Do not rely on it for restart safety.

  • Alert with context. Restart storms produce exactly the signals that pool-exhaustion alerts fire on: cl_waiting up, maxwait up. Suppress or annotate these alerts with process start events, and check paused/disabled state before paging, so planned restarts do not wake anyone up.

How Netdata helps

  • Netdata collects PgBouncer pool-level metrics continuously, so sv_login, cl_waiting, and maxwait are captured as time series. You can see the storm’s shape: the simultaneous all-pools spike, and whether it is draining or stuck.
  • Correlating sv_login against cl_waiting and avg_wait_time on one dashboard separates “connections being rebuilt” (recovering) from “connections failing to build” (logins erroring out).
  • Process-level context such as uptime and restarts sits next to the pool metrics, making it easy to confirm the trigger: storm onset aligned with a process start is the thundering herd signature.
  • PostgreSQL-side metrics let you watch backend count approach max_connections during the storm, which is the deciding factor between self-resolving and stuck.
  • Because PgBouncer exposes no error counters via SHOW commands, pairing metrics with log monitoring for login failed and connect failed closes the biggest blind spot in this failure mode.