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-too-many-open-files ▌

Operations Guides

PgBouncer Too many open files: file descriptor exhaustion and refused connections

PgBouncer is logging Too many open files and clients are being turned away, or connections to PostgreSQL are failing with the same OS error. The confusing part: used_clients is nowhere near max_client_conn, the pools look healthy, and yet new connections are refused. The front door is not full. The kernel is out of file descriptors.

PgBouncer is FD-hungry by design. Every proxied connection consumes roughly two file descriptors, one for the client socket and one for the server socket, plus a baseline of listening sockets, admin console sockets, DNS resolver sockets, and the log file. When the process hits its Max open files limit, three things break at once: accept() on the listen socket fails so new clients cannot connect, new server connections to PostgreSQL cannot be opened so existing clients start queuing, and log writes can fail so diagnostics disappear exactly when you need them.

The other trap is timing. The FD limit is fixed at process start. You cannot raise it on a running PgBouncer. Every fix in this article ends with a restart, which drops all client and server connections, so plan the window accordingly.

What this means

The OS enforces a per-process ceiling on open file descriptors (rlimit NOFILE). When PgBouncer reaches it, the kernel returns EMFILE (“Too many open files”) on every syscall that allocates a descriptor: accept(), connect(), socket(), open(). PgBouncer has no queue for this condition. New clients are refused immediately, and new backend connections fail.

Two properties make this failure mode nastier than it looks:

  1. The limit that matters is the process limit, not your shell’s. ulimit -n in your interactive shell tells you nothing about the running service. systemd units, PAM, and /etc/security/limits.conf each apply differently. The only authoritative source is /proc/<pid>/limits for the actual PgBouncer PID.
  2. max_client_conn does not protect you. PgBouncer does not clamp that setting to the detected FD limit, and the process limit is fixed at start. If server connections and overhead consume more FDs than planned, you hit the kernel ceiling before the configured client limit. The signature is used_clients plateauing below max_client_conn while connections are refused.
flowchart TD
  A[Clients plus server connections
consume FDs] --> B[Process reaches
Max open files limit] B --> C[accept fails:
new clients refused] B --> D[connect fails:
no new server connections] B --> E[log writes may fail:
diagnostics lost] D --> F[cl_waiting grows,
query_wait_timeout fires] C --> G[used_clients plateaus
below max_client_conn]

Common causes

CauseWhat it looks likeFirst thing to check
max_client_conn set higher than FD headroomRefused connections with used_clients below the configured limit; FD count at ceilingCompare ls /proc/PID/fd | wc -l to /proc/PID/limits
Default OS limit (often 1024) never raisedPgBouncer falls over around a few hundred concurrent connections, well below expectationsgrep "Max open files" /proc/PID/limits
systemd LimitNOFILE missing or stale after a config changeShell ulimit -n looks fine but the service limit is low; limit changed but process was never restartedsystemctl cat pgbouncer
Idle clients accumulating FDs (session pooling mode)FD count climbs steadily with connection count and never recedesSHOW CLIENTS for long-lived idle connections
The EMFILE is coming from PostgreSQL, not PgBouncer“Too many open files” appears in PostgreSQL logs; PgBouncer’s own FD count looks healthyCheck /proc/<postgres_pid>/limits and max_files_per_process

Quick checks

All of these are read-only and safe to run during an incident.

  • Current FD usage vs limit. This is the single decisive check. If the count is at or near the limit, you have your answer.
# Count open FDs and read the process limit
PGBPID=$(pgrep -f pgbouncer | head -1)
ls /proc/$PGBPID/fd | wc -l
grep "Max open files" /proc/$PGBPID/limits
  • The startup log line. At startup PgBouncer logs its kernel FD limit and its own estimate of maximum expected FD use. If the estimate exceeds the limit, the config was never valid.
# Find the FD line logged at process start
journalctl -u pgbouncer | grep -i "file descriptor"
  • Client slots vs the configured limit. used_clients plateauing below max_client_conn while connections fail is the FD exhaustion signature, not a client-limit problem.
# Compare used client slots against the configured limit
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -Atc "SHOW LISTS;" | grep -E "used_clients|free_clients"
psql -h 127.0.0.1 -p 6432 -U pgbouncer pgbouncer -Atc "SHOW CONFIG;" | grep max_client_conn
  • Log evidence. FD exhaustion, connection refusals, and accept failures are log-only signals. PgBouncer exposes no error counters via SHOW commands.
# Look for EMFILE and refusal messages
grep -iE "too many open files|no more connections allowed" /var/log/pgbouncer/pgbouncer.log | tail -20
journalctl -u pgbouncer --since "1 hour ago" | grep -i "too many open files"
  • Effective systemd limit. The unit’s LimitNOFILE overrides anything your shell or limits.conf says.
# Show the unit and any drop-in overrides
systemctl cat pgbouncer

How to diagnose it

  1. Confirm the ceiling is the kernel, not the config. Run the FD count vs limit check above. If FDs are within a few percent of Max open files, this is FD exhaustion. If FDs are nowhere near the limit and used_clients equals max_client_conn, you have the client-limit problem instead: see PgBouncer no more connections allowed (max_client_conn).
  2. Check whose error it is. If “Too many open files” appears in the PostgreSQL log rather than PgBouncer’s, the backend is out of FDs. Each PostgreSQL backend opens many data files, bounded by max_files_per_process, and hundreds of PgBouncer server connections multiply into far more file handles than the backend limit allows. Check the postgres process /proc/<pid>/limits and current FD count the same way.
  3. Reconstruct the budget. From SHOW LISTS and SHOW POOLS, total the client connections plus server connections (sv_active + sv_idle + sv_used + sv_tested + sv_login across pools), then add overhead for listen sockets, admin connections, DNS, and the log. Compare that total to the process limit. The official sizing formula is roughly max_client_conn + (max pool_size x total databases x total users) when each user connects under their own name, or max_client_conn + (max pool_size x total databases) when all users share one database user. Reserve at least 20% of the limit on top of that for non-connection FDs.
  4. Find out why the limit is what it is. If /proc/PID/limits shows 1024 or 4096, the service was started without an explicit FD limit and inherited a default. If it shows a value that does not match your current config, the limit was changed after the process started and never took effect. The FD limit is fixed at process start; RELOAD does not change it.
  5. Check for FD growth without pressure. If FDs climb over days under flat traffic, look for leaked client connections: SHOW CLIENTS sorted by connect_time will show very old idle connections holding sockets open. In session pooling mode, an idle client holds both a client FD and a server FD indefinitely.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Process FD count vs Max open files (/proc/PID/fd, /proc/PID/limits)The direct saturation signal; the failure is a hard wall with no queueingRatio above 80%
used_clients vs max_client_conn (SHOW LISTS, SHOW CONFIG)Separates client-limit refusal from FD-limit refusalused_clients plateauing below the limit while refusals occur
free_clients (SHOW LISTS)Remaining pre-allocated client slots; zero means refusal at the config layerBelow 10% of max_client_conn
Total server connections across pools (SHOW POOLS)Server sockets are half the FD budget and grow with pool countSum approaching half the FD limit
Log lines: “Too many open files”, “no more connections allowed”The only source of error signals; SHOW commands expose no error countersAny occurrence in production
Process uptime / restartsFD exhaustion can kill or destabilize the process; stats counters reset on restartShort uptime during a refusal incident

Fixes

Raise the process FD limit

The correct mechanism depends on how PgBouncer is supervised. On systemd distros, use a drop-in override rather than editing the packaged unit file, which package updates overwrite:

# Create a drop-in override for the service
mkdir -p /etc/systemd/system/pgbouncer.service.d
cat > /etc/systemd/system/pgbouncer.service.d/override.conf <<'EOF'
[Service]
LimitNOFILE=64000
EOF
systemctl daemon-reload
systemctl restart pgbouncer

Size the limit from the budget formula above, not from a round number. A practical floor is max_client_conn x 2 + 500 to cover server connections and overhead, with 20% headroom on top. Also confirm both soft and hard limits: recent systemd defaults commonly start from DefaultLimitNOFILE=1024:524288, but distribution or manager configuration can change them. Use LimitNOFILE=SOFT:HARD when the hard limit also needs raising, and verify /proc/<pid>/limits afterwards.

Warning: the restart is mandatory and disruptive. The FD limit is fixed at process start, so a graceful reload does nothing here. The restart drops every client connection and every pooled server connection, and the pool cold-starts afterwards, with the first queries paying connection establishment latency. Do it in a maintenance window or behind a failover.

Verify afterwards:

# Confirm the new limit took effect
grep "Max open files" /proc/$(pgrep -f pgbouncer | head -1)/limits

Bring max_client_conn back inside FD headroom

If you cannot or do not want to raise the limit, reduce max_client_conn so the worst-case FD budget fits. Validate max_client_conn against the FD limit minus all non-client FD usage: server connections, listening sockets, the log file, pipe FDs, and admin sockets. A config that only works until the server side of the pool fills up is not a valid config.

Reap idle client connections

If FD growth comes from clients that connect and never disconnect, a lower max_client_conn is only a bandage. In transaction pooling mode, client_idle_timeout can reap idle frontend connections; in session pooling mode it does not apply to idle sessions holding server connections, so your options are switching pooling mode, fixing the application’s connection hygiene, or sizing for the FD cost. Identify offenders first with SHOW CLIENTS (old connect_time, no activity) before changing anything.

If PostgreSQL is the one out of FDs

Reduce the multiplier rather than only raising limits: lowering max_files_per_process reduces how many file handles each backend can hold open, and cutting PgBouncer’s total server connection count (smaller pool sizes, fewer pools) reduces how many backends exist. Also check the host-wide Linux ceiling (fs.file-max) if the aggregate across all processes is the constraint; it bounds total file handles kernel-wide, while max_files_per_process and each process rlimit bound one backend/process. There is no one-size-fits-all value—size from measured open-file counts and headroom.

Prevention

  • Validate max_client_conn against the FD limit at every change. Any change to max_client_conn, pool sizes, database count, or user count changes the FD budget. Recompute it and compare against LimitNOFILE.
  • Monitor FD usage as a first-class signal. Track /proc/PID/fd count against the process limit and alert at 80%. FD exhaustion is a hard wall; the trend line is the only warning you get.
  • Alert on the log, not just SHOW output. “Too many open files” and “no more connections allowed” appear only in logs. A monitoring setup that scrapes only the admin console is blind to refusals.
  • Watch client connection lifetime. Trend used_clients and the age distribution from SHOW CLIENTS. Slow growth under flat traffic is a leak, and it will eventually present as FD exhaustion.
  • Check the startup log line after every restart. The kernel file descriptor limit ... max expected fd use message logged at each start is a free config validation.

How Netdata helps

  • Netdata collects per-process file descriptor counts from /proc alongside the process limit, so FD saturation shows up as a trend approaching a known ceiling rather than a surprise at 3 a.m.
  • It scrapes the PgBouncer admin console (SHOW POOLS, SHOW LISTS, SHOW STATS), so you can correlate used_clients plateauing below max_client_conn with the FD count hitting the limit, which is the exact signature that separates FD exhaustion from the client-limit failure.
  • Pool-level signals (cl_waiting, maxwait, sv_active) on the same dashboard expose the secondary effect: server connections failing to open while FDs are exhausted, showing up as queue growth that looks like pool exhaustion but is not.
  • Process uptime and restart detection explain sudden stat counter resets and help confirm whether the process died during the event.
  • Long-term retention of FD usage and connection counts makes the slow-leak variant visible weeks before it becomes an incident.