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 / php-fpm / php-fpm-connect-failed-connection-refused ▌

Operations Guides

PHP-FPM "connect() failed (111: Connection refused) while connecting to upstream"

The error string in nginx error.log:

*1234 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.0.5, server: example.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:"

errno 111 is ECONNREFUSED. nginx tried to open a connection to the FastCGI backend and the kernel on the PHP-FPM side rejected it before any FastCGI bytes were exchanged. Users see HTTP 502 Bad Gateway in batches.

Four failure modes present identically from nginx’s seat: the PHP-FPM master is not running; the configured socket path or TCP address does not match what nginx is dialing; the kernel dropped the connection because the listen backlog is full; or the socket exists and paths match, but something environmental prevents nginx from reaching it (private tmp namespace, container network boundary, IPv6/IPv4 mismatch, socket permissions). One read-only check on the FPM host disambiguates all four: is anything actually listening on the address nginx is trying to reach?

This page covers the link-layer refusal. If nginx can connect but the request never finishes in time, see the related 504 guide.

What this means

connect() is the syscall nginx issues against the address in fastcgi_pass. ECONNREFUSED is returned synchronously by the kernel when:

  • the destination address has no listener bound to it (no process called listen() on it), or
  • the listener’s accept queue (the backlog) is full and the kernel’s policy for that socket is to refuse rather than silently drop.

For a Unix socket, an absent socket file usually produces ENOENT (“no such file or directory”) rather than ECONNREFUSED, but nginx reports both under the same connect() failed prefix. A refused Unix socket typically means the file exists but no process is accepting on it (master died, stale socket left behind) or the path resolves into a different mount namespace from nginx’s perspective. For TCP, ECONNREFUSED with the port closed and ECONNREFUSED with the backlog full look identical to nginx.

The diagnostic that matters: separate a dead listener from a saturated one. A dead listener has zero capacity and refuses every connection. A saturated listener is technically up, the ping endpoint may still answer, and only connections that arrive faster than workers can accept() are refused. Mixing these two leads to the wrong fix (raising pm.max_children on a pool that never started).

flowchart TD
    A["nginx error.log
connect() failed (111)"] --> B{"Master running?
pgrep php-fpm"} B -- No --> C["FPM down or crashed
journalctl, dmesg"] B -- Yes --> D{"Socket listening?
ss -lnp"} D -- No --> E["listen path/address wrong
or bind failed"] D -- Yes --> F{"nginx fastcgi_pass
matches listen?"} F -- No --> G["Config drift between
nginx and pool"} F -- Yes --> H{"Backlog full?
Recv-Q at limit"} H -- Yes --> I["Worker saturation
refused at kernel"] H -- No --> J["Environmental block:
PrivateTmp, container net,
IPv6, perms, SELinux"]

Common causes

CauseWhat it looks likeFirst thing to check
Master not runningNo php-fpm: master process in ps; socket file absent or stale; ping fails 100%systemctl status php-fpm, journalctl -u php-fpm -n 50
Wrong socket path or addressMaster is up and listening, but on a different path/port than fastcgi_pass dialsCompare php-fpm -tt listen against nginx -T fastcgi_pass
Backlog overflowMaster up, socket listening, ping may still answer, but kernel refuses burstsKernel counters ListenOverflows/ListenDrops rising; FPM listen queue at listen queue len
Environmental blockSocket present, paths match, nginx still refusedPrivateTmp namespace, container network, IPv6 resolution, socket ownership/mode, SELinux AVCs

Quick checks

# Is the master alive? expect one master plus N workers
pgrep -af php-fpm

# What is FPM actually listening on? (-p needs root for the pid column)
ss -lnp | grep -E 'php|9000'

# What does nginx dial? confirm the fastcgi_pass target
nginx -T 2>/dev/null | grep -i fastcgi_pass

# What does the pool config say it listens on? (-tt parses and dumps effective config, no daemon)
php-fpm -tt 2>&1 | grep -E 'listen\s*=|listen\.backlog'

# Does the socket file exist with the expected owner/mode?
ls -l /run/php /var/run/php* 2>/dev/null

# Is the backlog currently full? Recv-Q on the LISTEN line vs the configured backlog
ss -tlnp | grep -E '9000|php'
ss -xlnp | grep php

# Kernel-side refusals since boot (cumulative counters)
nstat -z 2>/dev/null | grep -iE 'ListenOverflows|ListenDrops'

# FPM's own view of saturation
curl -s http://127.0.0.1/fpm-status | grep -E 'listen queue|active processes|max children'

# Recent FPM errors and any reload window
journalctl -u php-fpm --since "30 min ago" --no-pager | tail -50

All of these are read-only.

How to diagnose it

  1. Confirm whether the master is running. pgrep -af php-fpm should show one master process line plus worker lines. If it shows nothing, the refusal is a dead listener, not saturation. Go to the master-down path below.

  2. Confirm something is listening on the address nginx dials. Copy the fastcgi_pass value out of nginx -T and check ss -lnp for that exact path or ip:port. For a Unix socket, the path must match character for character. For TCP, the bound address family matters: a listener on 127.0.0.1:9000 will not satisfy fastcgi_pass [::1]:9000.

  3. Cross-check paths between nginx and the pool. Run php-fpm -tt and read the listen = line for the www pool (or whichever pool nginx targets). The two values must agree. A common drift source is a distro upgrade that moves sockets from /var/run/php5-fpm.sock to /run/php/php8.2-fpm.sock while the nginx vhost is never updated.

  4. If the listener is up and paths match, check the backlog. Look at ss -tlnp (TCP) or ss -xlnp (Unix). The Recv-Q column on the LISTEN line is the current depth of the accept queue. If Recv-Q sits at the configured listen.backlog (or net.core.somaxconn, whichever is smaller) and refuses to drain, the kernel is refusing new connections. Cross-check with nstat -z | grep -iE 'ListenOverflows|ListenDrops': a rising counter confirms kernel-level refusals. This is a saturation problem, not a connectivity problem.

  5. If none of the above apply, look for an environmental block. ls -l the socket file and confirm the nginx worker user has read/write access. On systemd hosts, check whether php-fpm.service runs with PrivateTmp=true (systemctl show php-fpm -p PrivateTmp): a socket under /tmp or /var/tmp is invisible to nginx in a different tmp namespace. In containers, confirm the FPM container is listening on 0.0.0.0:9000 or its bridge IP, not 127.0.0.1:9000, which is unreachable from the nginx container’s loopback. On SELinux hosts, ausearch -m AVC -ts recent will surface denials on the socket path.

The single question that splits the investigation cleanly: does the FPM status page respond while nginx is logging 502s? If yes, the pool is alive and you are looking at saturation or an environmental block. If no, the master is down or the socket is unreachable.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
nginx upstream 5xx rateFirst user-visible symptom of a refused connectionSustained non-zero 502 rate on PHP locations
Master process alive (pgrep, ping endpoint)Distinguishes dead listener from saturated listenerPing fails 100%, or pgrep php-fpm empty
PHP-FPM listen queue and listen queue lenSaturation is visible here before kernel refusalslisten queue approaches listen queue len
active processes / max_childrenPrecondition for backlog growthSustained at 1.0 with traffic present
Recv-Q on FPM listen socket (ss)Kernel-level confirmation of accept queue depthPegged at configured backlog
TcpExtListenOverflows / TcpExtListenDropsCumulative count of kernel-level refusals invisible to FPMCounter increasing during the incident window
Socket file existence and ownershipCatches stale sockets and permission drift after upgradesFile missing, or mode/owner denies nginx user

Fixes

Master not running

Find out why before restarting. The refusal is the symptom; the master died or never started for a reason. Pull journalctl -u php-fpm -n 100 for the startup error. Common causes: a pool config syntax error after a deploy, a missing PHP extension pulled in by new code, the error log directory not being writable, or an OOM kill of the master visible in dmesg. Validate the config before bringing the service back:

# Config-test only; exits non-zero on syntax errors with details
php-fpm -tt

Restarting as the first action hides the root cause and gives you the same outage again on the next deploy.

Wrong socket path or address

Align the two configs. Set listen = in the pool to a stable path under /run/php/ (or /var/run/php/, which is the same directory on modern distros) and point fastcgi_pass at exactly that path. For TCP, ensure both sides agree on address family and port. For Unix sockets, also set the ownership and mode so the nginx worker user can read and write:

listen = /run/php/php8.2-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660

The listen.owner and listen.group directives must match the user nginx workers run as. Wrong ownership produces EACCES (“permission denied”) in nginx, which reports under the same connect() failed prefix but with a different errno (13).

Backlog overflow (saturation)

This is not a connection problem; it is a capacity problem that surfaces as a connection problem. Do not raise listen.backlog as the fix. A deeper queue just delays the refusal by seconds and hides the real signal. The actual fixes are: raise pm.max_children if memory headroom exists, or remove the slow dependency that is holding workers hostage. The saturation pattern, the slow-log-driven root cause, and the memory math for raising max_children are covered in the related guides below.

One configuration note: listen.backlog defaults changed across PHP versions. PHP 8.2 and later default to -1 on Linux, which the kernel clamps to net.core.somaxconn (commonly 4096 on modern kernels). PHP before 8.2 defaults to 511. If you rely on the default, the effective backlog depends on both the PHP version and the kernel sysctl.

Environmental blocks

  • systemd PrivateTmp: if php-fpm.service has PrivateTmp=true and the pool listens on a socket under /tmp or /var/tmp, nginx cannot see that socket. Move the socket under /run/php/ (preferred) or override with a drop-in setting PrivateTmp=false.
  • Container networking: a PHP-FPM container listening on 127.0.0.1:9000 is unreachable from the nginx container’s loopback. The FPM pool must listen on 0.0.0.0:9000 or the container’s bridge IP, and nginx must fastcgi_pass to the FPM container’s service name or IP, not 127.0.0.1.
  • IPv6 resolution of localhost: fastcgi_pass localhost:9000 can resolve to ::1 on IPv6-enabled hosts while FPM listens only on 127.0.0.1. Use explicit addresses: 127.0.0.1:9000.
  • SELinux: AVC denials can block nginx from connecting to the FPM socket. Check ausearch -m AVC -ts recent and the audit log.

Prevention

  • Run php-fpm -tt and nginx -t in CI on every config change. Most path mismatches are deploy-time drift that a syntax check would have caught.
  • Health-check the actual socket nginx dials, not just the systemd unit. A cgi-fcgi or curl probe against the real fastcgi_pass target catches dead listeners and stale sockets that systemctl is-active misses.
  • Alert on listen queue depth and kernel ListenOverflows before they become 502s. By the time nginx logs connect() failed, the backlog is already full and users are already seeing errors.
  • Keep the FPM listen directive and the nginx fastcgi_pass in the same config source (templated from one variable) so they cannot drift independently.
  • Standardize socket placement under /run/php/ to sidestep PrivateTmp and /tmp-namespace issues entirely.

How Netdata helps

  • Per-second collection of the PHP-FPM status page (listen queue, active processes, idle processes, max children reached) catches saturation in the window before the backlog overflows, where 10-second polling misses the buildup entirely.
  • The nginx collector surfaces upstream 5xx rates per server block, so the 502 burst is visible against normal traffic at the same resolution as the FPM pool metrics.
  • Kernel socket counters (TcpExtListenOverflows, TcpExtListenDrops) and the ss view of the FPM listen socket correlate directly with the nginx error log, confirming whether a 502 burst is a dead listener or a saturated one.
  • Process and systemd collectors flag the master going away within a second, separating a crash from a saturation event without manual pgrep. For containerized FPM, cgroup memory metrics and OOM-kill events explain a missing master that systemctl would never see.