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-slow-request-cascade ▌

Operations Guides

PHP-FPM slow request cascade: one slow dependency drains the whole pool

Your PHP-FPM pool is pinned at max_children. The listen queue is climbing. Users see 502 Bad Gateway or 504 Gateway Timeout. CPU on the box is flat and the application error log is quiet. The PHP code is fine; it is waiting on a slow dependency.

This is the slow request cascade. A database query regresses, an external API starts timing out, an NFS mount stalls, or DNS resolution hangs. A request that normally completes in 50ms now takes 5 to 30 seconds. Each slow request holds a worker for the full duration. The pool drains in seconds, the socket backlog fills, and the kernel starts refusing connections. This is the most common PHP-FPM failure mode in production, and the fix is almost never inside PHP-FPM itself.

The tell is low CPU with a saturated pool. Compute-bound work pins CPU. An I/O-bound stall pins workers while CPU sits idle. The slow log, when configured, points directly at the blocking call. Without it, you are correlating FPM worker counts with downstream logs after the fact.

What this means

PHP-FPM uses a process-based concurrency model. Each worker handles one request at a time, no in-process concurrency. Maximum concurrent request capacity equals the number of active worker processes. When all workers are occupied, the next request queues in the socket backlog. Once the backlog overflows, the kernel drops connections at the socket layer. PHP-FPM has no visibility into those drops.

A slow dependency turns this model into a bottleneck. Consider a pool of 50 workers averaging 50ms per request, serving 200 req/s. If a database query regresses to 5 seconds, each affected request occupies a worker 100 times longer. Effective capacity collapses to a handful of workers within seconds, even though inbound traffic has not changed.

flowchart TD
    A[Slow dependency
DB / API / NFS / DNS] --> B[Subset of requests
slow from 50ms to 5-30s] B --> C[Each slow request
holds a worker hostage] C --> D[Pool drains:
no idle workers] D --> E[New connections
queue in socket backlog] E --> F[Backlog fills
listen.backlog limit] F --> G[Kernel drops
new connections] G --> H[nginx 502 / 504
to users]

Raising max_children does not help if new workers will also block on the same dependency. Adding workers burns RAM and buys seconds at best. The fix has to be upstream: repair, isolate, or fail fast on the slow dependency.

Common causes

CauseWhat it looks likeFirst thing to check
Database lock contention or slow querySlow log stack traces at PDO::query, mysqli_*, pg_queryDB slow query log; pg_locks; SHOW PROCESSLIST; INNODB STATUS
Database connection pool exhaustionWorkers blocked waiting for an app-side pool connectionDB connections vs max_connections; pgBouncer or ProxySQL pool state
External HTTP API timeoutSlow log shows curl_exec or file_get_contents on http(s) URLsAPI latency from the app host; PHP cURL has no default execution timeout
DNS resolution hangSlow log shows getaddrinfo or stream_socket_clientResolver logs, /etc/resolv.conf, nslookup timing
NFS or shared filesystem stallSlow log shows file I/O functions on mounted pathsmountstats; nfsstat; df hangs when invoked
Redis persistence fork latencyIntermittent spikes correlated with Redis save cyclesRedis latency; bgsave timing; persistence config
Session lock contention (file sessions)Multiple workers stuck serving same session IDSlow log shows session_start; lsof on sess_* files
Network partitionConnections hang until TCP timeoutApplication logs for connect timeouts

Quick checks

These are read-only. Run them before changing anything. The status path (/fpm-status) depends on your nginx and pm.status_path configuration; adjust accordingly.

# Confirm slow log is configured and capturing
php-fpm -tt 2>&1 | grep -E 'slowlog|request_slowlog_timeout'
tail -50 /var/log/php-fpm/slow.log

# Pool snapshot
curl -s http://127.0.0.1/fpm-status

# Active vs idle vs queue depth vs max-children-reached counter
curl -s http://127.0.0.1/fpm-status | grep -E 'active|idle|listen queue|max children|slow requests'

# Per-worker view - find stuck workers and their URIs (request duration is microseconds)
curl -s 'http://127.0.0.1/fpm-status?full' | grep -E 'pid|state|request duration|request uri|script'

# Kernel-level listen queue depth on the FPM socket (Recv-Q column)
ss -xlnp | grep php     # Unix socket
ss -tlnp | grep 9000    # TCP

# Kernel drop counters - confirm overflow when status page is unresponsive
nstat | grep -i listen

# CPU on FPM workers - low CPU confirms I/O-bound stall, not compute
ps -C php-fpm -o pid,pcpu,pmem,etime,args --sort=-pcpu | head -20

# Web server upstream errors
grep -c "connect.*failed\|Connection refused\|upstream timed out" /var/log/nginx/error.log

If the status page itself does not respond, the main pool is fully busy serving the status request behind real traffic. On PHP 8.0+ you can configure pm.status_listen on a separate socket so the status page is served from a side-pool even when the main pool is saturated. Without it, you are blind exactly when you need the data most.

How to diagnose it

  1. Confirm the failure mode before touching anything. Three signals together confirm slow-dependency drain: active processes at or near max_children, listen queue non-zero or growing, and CPU usage lower than the stall would suggest.

  2. Locate the slow log. If request_slowlog_timeout is 0 (the default in many distros), there is no slow log data and you must enable it before the next incident. In the moment, fall back to per-worker ?full status and the dependency’s own metrics.

  3. Read the stack traces. The top frame is the function running when the timeout fired; earlier frames are below. A trace whose top frame is curl_exec, PDO::query, mysqli_query, pg_query, stream_socket_client, file_get_contents on an http(s) path, or session_start is the signature of a slow external dependency or a session lock. Multiple traces pointing at the same call confirm the source.

  4. Cross-reference against per-worker status. Match long request duration values in the ?full output with the same scripts appearing in slow log entries. Note that request duration is in microseconds, not milliseconds. 1000000 is one second.

  5. Verify against the dependency’s own metrics. If the slow log points at PDO, check the DB slow query log, lock waits, connection count. If curl_exec, check the upstream API latency from the app host directly. If NFS, check nfsstat and whether df hangs. The dependency should show corresponding stress. If it does not, suspect DNS, network partition, or a connection pool at the application layer.

  6. Decide whether the stall is single-endpoint or systemic. Slow log entries concentrated on one script path point at a specific slow endpoint, often a missing index or an unbatched loop. Entries spread across many scripts point at systemic backend trouble: DB failover, DNS outage, NFS hang, network partition.

  7. Check kernel overflow counters. If users see 502 but the status page shows listen queue = 0, you may be sampling between drops. nstat TcpExtListenOverflows and TcpExtListenDrops give the cumulative view of connections the kernel refused while you were polling.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Active processes / max_children ratioPrimary saturation indicatorSustained above 0.8, or pinned at 1.0
Idle processesHeadroom for burstsSustained at 0 in dynamic or static mode
Listen queue depthEarliest direct signal of user-facing queuingAny sustained non-zero value
Max children reached counterProcess manager intent blockedIncrementing during normal traffic
Slow requests counterApplication-level slowness, tracedRate of change above 2x rolling average
Per-worker request durationBimodal distribution reveals slow subsetSome workers more than 10x median
Per-worker last request CPUDistinguishes I/O wait from computeLong duration, low CPU means blocked on I/O
PHP-FPM CPU vs active processesDecouples stall from compute saturationActive high, CPU low means I/O-bound cascade
Kernel ListenOverflows / ListenDropsConnections dropped before FPM sees themCounter increasing during the incident
Dependency latency (DB, API, cache, NFS)Confirms upstream root causeSpikes correlated with FPM slow log burst

Fixes

Immediate relief: clear blocked workers

If the dependency has recovered but workers are still draining stuck requests, free them by hand. This is relief, not a fix. If the dependency is still slow, the freed worker will be re-acquired by another slow request within seconds.

# Identify long-running workers from full status
curl -s 'http://127.0.0.1/fpm-status?full' | grep -B1 -A3 'request duration'

# Recycle a specific stuck worker
# WARNING: this targets a single worker process. Verify the PID belongs to
# an FPM worker before sending the signal.
# SIGQUIT to an individual worker PID gracefully terminates just that worker
# (community-documented; the master respawns it).
kill -SIGQUIT <pid>

Short-term: protect the pool

  • Block the offending endpoint at the web server layer to protect the rest of the site. If the slow log shows all slow requests hitting one URI, deny that path in nginx and let the rest of the application breathe.
  • Add or tighten timeouts in application code. PHP cURL has no default execution timeout. Set explicit CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT so blocked calls fail fast instead of holding the worker for 30 seconds.
  • Temporarily raise pm.max_children only if memory headroom exists and the dependency is recovering. New workers will block too if the root cause persists. Capacity check: avg_worker_RSS * new_max_children + OS_overhead must fit comfortably under available RAM. If you guess wrong, the OOM killer will make the outage worse.
  • Enable request_terminate_timeout as a safety net (30-60s, application-dependent). This hard-kills any single request that exceeds the limit, preventing one stuck dependency call from holding a worker indefinitely.

Root cause: fix or isolate the dependency

  • Database: add the missing index, fix the lock contention, scale the connection pool with pgBouncer or ProxySQL, tune the slow query.
  • External API: negotiate tighter SLAs, add a circuit breaker in application code, cache responses where possible.
  • NFS: switch to a local cache, fail fast on stale mounts, or move the workload off NFS.
  • DNS: tighten resolver timeouts, run a local caching resolver, eliminate cross-region DNS lookups in the hot path.
  • Session locks: call session_write_close() early, or move sessions to Redis or Memcached to change the locking semantics.

Prevention

  • Enable request_slowlog_timeout on every production pool. 3 to 5 seconds is a reasonable starting point. It must be lower than request_terminate_timeout, or the worker is killed before a backtrace can be captured.
  • Configure request_terminate_timeout (30-60s) to bound the worst case. Left at 0, a single hung request permanently removes a worker until pool restart.
  • Configure pm.status_listen (PHP 8.0+) on a separate socket. The status page then remains reachable when the main pool is saturated, eliminating the monitoring blind spot during the cascade itself.
  • Align nginx fastcgi_read_timeout and PHP-FPM request_terminate_timeout. If nginx times out first, it closes the upstream connection but the FPM worker keeps running until it finishes or request_terminate_timeout fires, producing phantom workers that occupy pool slots serving responses no client will read. Note that PHP max_execution_time measures CPU time on Unix, not wall clock, so it will not fire for requests blocked on I/O (database queries, cURL, NFS, DNS). For this failure mode, request_terminate_timeout is the timeout that actually protects the pool.
  • Instrument dependencies with their own monitoring. The cascade becomes diagnosable in seconds when you can correlate FPM slow log bursts against DB latency, API response times, and NFS operation latency.
  • In Docker, add --cap-add=SYS_PTRACE. PHP-FPM uses ptrace to capture worker backtraces for the slow log. Without the capability, the slow log file stays empty even though PHP-FPM logs “executing too slow, logging” warnings.
  • Consider raising request_slowlog_trace_depth for applications with deep framework call stacks, so the trace reaches the blocking call rather than stopping inside framework bootstrap frames.

How Netdata helps

  • Per-second collection of PHP-FPM status metrics catches the active-to-idle-to-queue transition that 10 or 30 second polling misses entirely. The cascade can unfold in seconds.
  • ML anomaly detection flags the moment the active/idle ratio breaks pattern, before the listen queue starts growing.
  • Correlation panels pair PHP-FPM saturation with co-conspirators on the same host: MySQL or PostgreSQL query latency, Redis operation timing, NFS RPC latency, network connection states, CPU steal and iowait. A spike in any of those at the moment workers pin is your root cause.
  • The PHP-FPM slow request counter, per-worker request duration from ?full status, and kernel listen drop counters can be charted together to confirm the failure pattern rather than inferring it from a single signal.
  • Anomaly advisors surface TcpExtListenOverflows and TcpExtListenDrops so you see kernel-level drops that the FPM status page cannot report.