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 / uwsgi / uwsgi-connection-refused ▌

Operations Guides

uWSGI connection refused: clients turned away when the backlog overflows

Clients connecting to your uWSGI application receive connection refused or TCP RST. Behind nginx, the error log shows connect() failed (111: Connection refused) while connecting to upstream. The application process may still be running, the master PID may exist, and the stats server may respond, yet real traffic is being turned away.

This symptom has two root causes that look identical to the client but require opposite fixes. Either the listen backlog has overflowed because workers are saturated and cannot call accept() fast enough, or the listener itself is dead (master gone, wrong socket path, broken socket permissions). Resolving that diagnostic fork is the first task.

What this means

Every uWSGI listening socket has a kernel-managed accept queue, commonly called the listen backlog. New TCP connections complete their handshake and land in this queue. Workers pull connections from it via accept(). When every worker is busy and the backlog fills to its configured maximum, the kernel stops queuing new connections and drops them. The client sees connection refused.

The default listen backlog in uWSGI is 100 connections, set with --listen (short form -l). This value is set at the socket level via listen(), but the kernel caps it at net.core.somaxconn. On older Linux kernels, somaxconn defaults to 128. On newer kernels (5.4+) it defaults to 4096. Since uWSGI 2.0.10, on Linux, uWSGI refuses to start when --listen exceeds somaxconn (Listen queue size is greater than the system max net.core.somaxconn (N).); older releases let the kernel cap the backlog silently with no warning.

When the backlog overflows, uWSGI may log:

*** uWSGI listen queue of socket "ip:port" (fd: N) full !!! (101/100) ***

The first number is the current queue depth, the second is the configured maximum. This message is not guaranteed on every overflow event. The kernel drops connections silently, and the only definitive evidence is the TcpExtListenOverflows kernel counter or the Recv-Q column in ss output.

uWSGI’s own stats server cannot reliably report the listen queue depth on standard Linux. The listen_queue field relies on TCP_INFO behavior that varies across kernel versions, and the UNIX socket measurement requires a non-standard kernel ioctl. The load field is identical to listen_queue (not average latency, despite its name). The listen_queue_errors field exists in the JSON output but is never incremented in the source. All three are almost always 0 regardless of actual backlog state. Measure the queue externally via ss and nstat instead.

Common causes

CauseWhat it looks likeFirst thing to check
Backlog overflow (workers saturated)nginx 111 errors, all workers busy, throughput droppingss -ltn Recv-Q, worker busy ratio
somaxconn capping the backloguWSGI 2.0.10+ refuses to start with Listen queue size is greater than the system max net.core.somaxconn (N).cat /proc/sys/net/core/somaxconn
Master process deadNo uwsgi master process, stats server unreachable, stale PID filekill -0 $(cat pidfile), pgrep -f uwsgi
Wrong socket path or permissionsnginx logs permission denied or cannot stat socket filels -la /path/to/socket, nginx error log
Reload failure (zero accepting workers)Workers spawn and die immediately after SIGHUP, respawn_count climbingAccepting worker count, application startup logs
Accept contention without thunder-lockWorkers mostly idle but throughput low, no backlog visibleCheck for thunder-lock in config

Quick checks

# Check if the master process is alive
kill -0 $(cat /tmp/uwsgi.pid) 2>/dev/null && echo "alive" || echo "dead"

# Check the listen queue depth and configured backlog (TCP)
ss -ltn 'sport = :8000'

# Check kernel-level listen queue overflow counter
nstat -az TcpExtListenOverflows TcpExtListenDrops

# Check the effective somaxconn limit
cat /proc/sys/net/core/somaxconn

# Check the TCP SYN backlog limit
cat /proc/sys/net/ipv4/tcp_max_syn_backlog

# Check worker busy ratio from the stats server
uwsgi --connect-and-read 127.0.0.1:9191 | jq '([.workers[] | select(.status == "busy")] | length) as $busy | ([.workers[] | select(.pid > 0 and .status != "cheap")] | length) as $alive | if $alive > 0 then ($busy / $alive * 100 | floor) else 0 end'

# Check accepting worker count
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[] | select(.pid > 0 and .status != "cheap" and .accepting == 1)] | length'

# Search uWSGI logs for listen queue full messages
grep -r "listen queue" /var/log/uwsgi/

How to diagnose it

flowchart TD
    A["Connection refused or TCP RST"] --> B{"Master process alive?"}
    B -- No --> C["Dead listener: check OOM, crash, config"]
    B -- Yes --> D{"Socket visible in ss output?"}
    D -- No --> E["Wrong socket path or permissions"]
    D -- Yes --> F{"Any accepting workers?"}
    F -- No --> G["Reload failure or all workers cheaped"]
    F -- Yes --> H{"Busy ratio near 100%?"}
    H -- Yes --> I["Backlog overflow: workers saturated"]
    H -- No --> J["Check accept contention / thunder-lock"]
  1. Verify the master is alive. Check the PID file with kill -0. If the master is dead, the issue is not backlog overflow. See uWSGI master process dead.

  2. Verify the listening socket exists. Run ss -ltn 'sport = :PORT' for TCP or ss -lxn | grep uwsgi for UNIX sockets. If the socket is missing, uWSGI is not listening on the expected address. Check for a failed reload or wrong configuration.

  3. Read the Recv-Q column. For a LISTEN socket, ss shows Recv-Q (current connections waiting in the accept queue) and Send-Q (the configured backlog). A sustained nonzero Recv-Q means workers cannot accept fast enough. If Recv-Q equals Send-Q, the backlog is full.

  4. Check the kernel overflow counter. Run nstat -az TcpExtListenOverflows. This counter increments every time the kernel drops a connection because the accept queue was full. Any nonzero rate means connections are being actively dropped. Note: this counter is system-wide, so on multi-service hosts you need per-socket ss data to attribute drops to uWSGI.

  5. Check worker saturation. Query the stats server for worker busy ratio and accepting worker count. If busy ratio is at or near 100%, the backlog is overflowing because workers are saturated. Identify which URIs are consuming workers.

  6. Check somaxconn. Compare cat /proc/sys/net/core/somaxconn against your configured --listen value. If somaxconn is lower, uWSGI 2.0.10+ on Linux refuses to start with Listen queue size is greater than the system max net.core.somaxconn (N).; older releases let the kernel cap the backlog silently.

  7. Rule out socket permission issues. For UNIX sockets, check ls -la /path/to/socket. The nginx worker user must have read/write access. Verify the socket path in nginx uwsgi_pass matches the actual socket path.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Listen queue depth (ss Recv-Q on LISTEN socket)Primary saturation indicator before drops occurSustained nonzero, or approaching Send-Q value
TcpExtListenOverflows (kernel counter)Confirms connections are being dropped, system-wideAny nonzero rate of change
Worker busy ratioExplains why the queue is fillingSustained above 80%, or reaching 100%
Accepting worker countDetects dead or failed workers independent of busy ratioDrops to zero while master is alive
somaxconn vs configured --listenEffective backlog may be lower than configuredsomaxconn less than --listen value
nginx upstream error rateClient-visible symptom, lagging indicatorSpike in 502/504 or connection refused errors

Do not use the uWSGI stats fields listen_queue, load, and listen_queue_errors for alerting. They are unreliable on standard Linux. Use ss and kernel counters instead.

Fixes

Increase the backlog

If workers are briefly saturated during traffic bursts but recover quickly, increasing the backlog buys time for workers to catch up.

# uwsgi.ini
listen = 1024

Also raise the kernel limit. Note: appending to sysctl.conf repeatedly creates duplicate entries. Use a dedicated file under /etc/sysctl.d/ for service-specific settings:

# Add to a dedicated file to avoid duplicate entries
cat >> /etc/sysctl.d/99-uwsgi.conf << 'EOF'
net.core.somaxconn = 4096
net.ipv4.tcp_max_syn_backlog = 8192
EOF

# Apply immediately
sysctl -p /etc/sysctl.d/99-uwsgi.conf

Restart uWSGI after changing --listen. On Linux, keep --listen at or below somaxconn: since 2.0.10 uWSGI refuses to start when --listen exceeds it. A larger backlog absorbs transient spikes but does not fix sustained worker saturation. If workers are permanently overloaded, you need more workers or faster request processing.

Address worker saturation

If the busy ratio is sustained at 100%, the backlog is a symptom, not the cause. Workers cannot process requests fast enough.

  • Identify slow endpoints. Check workers[].uri in the stats JSON for busy workers. If all busy workers show the same URI, that endpoint is the bottleneck.
  • Check downstream dependencies. Database connection pool exhaustion, slow external API calls, and DNS resolution hangs are the most common causes of worker saturation.
  • Add workers. Increase --processes if CPU and memory headroom allow. Each worker is a full process copy.
  • Enable harakiri. Without harakiri, a single hung request permanently consumes a worker. Set --harakiri (in seconds) to 2-3x your expected maximum legitimate request duration. See harakiri timeout tuning.

Fix a dead listener

If the master process is gone, the fix is not backlog tuning. Check dmesg for OOM-killer evidence, check application logs for segfaults, and verify the startup configuration. See uWSGI master process dead.

For UNIX socket permission issues, ensure the nginx worker user has read/write access to the socket file. The --chmod-socket=660 directive sets permissions at startup.

Handle reload race conditions

A graceful reload (SIGHUP) kills all workers and respawns them. If the application has slow startup (heavy imports, model loading), there is a window with zero accepting workers where the backlog fills immediately.

  • Use --chain-reload to cycle workers one at a time instead of all simultaneously.
  • Verify new code with uwsgi --ini app.ini --no-server before reloading to catch import errors early.
  • During the reload window, the listen backlog is the only buffer. If it is too small, connections are dropped during every deployment.

Prevention

  • Monitor TcpExtListenOverflows. This kernel counter is the definitive signal that connections are being dropped. Alert on any nonzero rate of change. It is system-wide, so on multi-service hosts, correlate with per-socket ss data to attribute drops to uWSGI.
  • Set somaxconn above --listen. The kernel caps the backlog at somaxconn, and uWSGI 2.0.10+ on Linux refuses to start if --listen exceeds it. If you configure --listen 1024 but leave somaxconn at its default, raise somaxconn first.
  • Configure alarm-backlog. uWSGI can raise a named alarm when the listen queue is full. This requires the master process to be running.
    alarm-backlog = myalarm
    
    The alarm fires when the socket backlog queue fills. Pair it with an alarm handler (script, email, webhook) to get notified before clients see errors. The option was introduced in uWSGI 2.0.1.
  • Size the backlog for burst tolerance. A backlog of 100 connections at 500 req/s fills in 200ms. A backlog of 1024 buys 2 seconds of headroom during a downstream hiccup.
  • Do not use the stats server as a health check. The stats server is served by the master process and remains responsive during complete worker starvation. A health check must go through the worker pool to reflect real availability.
  • Use chain reload for deployments. This prevents the zero-capacity window that fills the backlog during every deployment.

How Netdata helps

  • Netdata collects kernel TCP/IP metrics including TcpExtListenOverflows and TcpExtListenDrops at per-second granularity, giving immediate visibility into connection drops that uWSGI’s own stats cannot report reliably.
  • The listen queue depth (Recv-Q on LISTEN sockets) is available through Netdata’s socket-level metrics, showing the gap between current queue depth and configured backlog without manual ss polling.
  • Netdata’s uWSGI collector reads the stats server JSON and surfaces worker busy ratio, accepting worker count, average response time, and harakiri count. Correlating worker saturation with kernel-level overflow counters confirms whether connection refusals are caused by backlog overflow or something else.
  • ML anomaly detection on the busy ratio and overflow counter rate can surface a filling backlog before it overflows, during the window where Recv-Q is climbing but drops have not yet started.
  • Per-second resolution matters because the listen queue can fill and overflow in under a second at high request rates. Ten-second polling intervals miss entire overflow events.