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-nginx-504-gateway-timeout ▌

Operations Guides

uWSGI behind nginx: 504 Gateway Timeout when uwsgi_read_timeout fires first

A 504 from nginx with a uwsgi_pass upstream means nginx stopped waiting for uWSGI before the worker finished. The default uwsgi_read_timeout is 60 seconds. If uWSGI has no harakiri configured (the default), or if harakiri is set higher than uwsgi_read_timeout, the worker keeps processing a request whose response will never be read. The client already has their 504. The worker burns CPU, holds database connections, and occupies a slot that could serve real traffic.

The fix: make one timeout authoritative. Harakiri should fire before uwsgi_read_timeout so uWSGI controls the kill, cleans up the worker, and produces an observable signal. The same ordering principle applies through every proxy layer.

uwsgi_read_timeout is a per-read timeout, not a total response timeout. It resets between successive read operations, so a slow but steadily streaming response will not trigger it. The 504 fires when the worker has not sent the first byte of the response, or has stopped sending for the full timeout window. The entire request processing phase, including all downstream calls, must produce at least one response byte before the timeout expires.

What this means

flowchart TD
    A["Request arrives at nginx"] --> B["nginx forwards to uWSGI worker"]
    B --> C["Worker begins processing"]
    C --> D["Request takes too long"]
    D --> E{"Which timeout fires first?"}
    E -->|"uwsgi_read_timeout wins"| F["nginx returns 504 to client"]
    F --> G["Worker still processing (wasted work)"]
    G --> H["Worker writes response, gets SIGPIPE"]
    E -->|"harakiri wins"| I["Master kills worker (SIGKILL or SIGTERM)"]
    I --> J["nginx sees disconnect, returns 502"]
    J --> K["Worker respawned, harakiri_count++"]
    E -->|"Neither configured"| L["Worker stuck indefinitely"]
    L --> M["Capacity silently degrades to zero"]

Three outcomes when a request takes too long:

nginx fires first (504 + wasted work). uwsgi_read_timeout expires. nginx returns 504 to the client and closes the upstream connection. The uWSGI worker does not know the client is gone. It continues processing, eventually writes the response to a closed socket, and receives SIGPIPE.

harakiri fires first (502 + clean cleanup). The master process kills the worker with SIGKILL (or SIGTERM first if harakiri-graceful-timeout is configured) and respawns it. nginx sees the upstream connection drop and returns 502 Bad Gateway. The harakiri_count increments, giving you an observable signal.

Neither fires (silent capacity loss). If harakiri is not configured and the request runs longer than uwsgi_read_timeout, the worker continues until the application code returns. If the application is stuck on a blocking call with no timeout, the worker is consumed permanently. No harakiri_count increment, no alert, just one fewer worker.

The operational principle: harakiri should fire before uwsgi_read_timeout. When it does, uWSGI controls the timeout, the worker is cleaned up, and you get a signal to alert on. When nginx fires first, the worker does wasted work and the only evidence is a SIGPIPE log entry and elevated write_errors in the stats server.

Common causes

CauseWhat it looks likeFirst thing to check
harakiri not configured504s from nginx, no harakiri log entries, harakiri_count stuck at 0grep harakiri in uWSGI config
harakiri set higher than uwsgi_read_timeout504s from nginx, SIGPIPE in uWSGI log, write_errors climbingCompare the two configured values
proxy_read_timeout used instead of uwsgi_read_timeoutTimeout changes to nginx config have no effectVerify the location block uses uwsgi_pass with matching directives
Downstream dependency slowdownavg_rt climbing, all workers busy on diverse endpointsCheck database or external API latency
post-buffering interactionharakiri fires much later than expected with non-empty request bodiesCheck if post-buffering is enabled

Quick checks

These commands assume the uWSGI stats server is enabled (stats 127.0.0.1:9191 in your uWSGI config). Adjust the address to match your deployment.

# Check nginx error log for the uwsgi_read_timeout pattern
grep "upstream timed out" /var/log/nginx/error.log | tail -20

# Check uWSGI log for SIGPIPE (the wasted-work signal)
grep -i "SIGPIPE" /var/log/uwsgi/app.log | tail -20

# Check whether harakiri is configured at all
grep -i harakiri /etc/uwsgi/apps-available/*.ini

# Check harakiri_count across all workers (should be nonzero if harakiri is working)
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[].harakiri_count] | add'

# Check write_errors (broken pipe from nginx closing the connection first)
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[].cores[].write_errors] | add'

# Check in-flight request ages (are any workers stuck on long requests?)
uwsgi --connect-and-read 127.0.0.1:9191 | jq --argjson now "$(date +%s)" \
  '[.workers[] | select(.pid > 0) | .id as $wid | .cores[] | select(.in_request == 1) | {worker: $wid, core: .id, age_seconds: ($now - .req_info.request_start)}]'

# Check avg_rt per worker (is latency approaching the timeout boundary?)
uwsgi --connect-and-read 127.0.0.1:9191 | jq \
  '[.workers[] | select(.pid > 0 and .status != "cheap")] | map({id: .id, avg_rt_ms: (.avg_rt / 1000)})'

The stats JSON exposes req_info.request_start per core as a Unix timestamp (epoch seconds) while the core is in a request.

How to diagnose it

  1. Confirm which timeout fired first. Search the nginx error log for upstream timed out (110: Connection timed out) while reading response header from upstream. If present, nginx gave up first. Search the uWSGI log for HARAKIRI ON WORKER. Entries at the same timestamps mean the two are racing.

  2. Check whether harakiri is configured. The default is no timeout. If harakiri is absent from the config, every slow request runs until nginx or the application gives up. This is the most common root cause of 504 cascades with no uWSGI-side signal.

  3. Compare the two timeout values. If uwsgi_read_timeout is 60s (the nginx default) and harakiri is 60s or higher, you have a race or nginx wins outright. Harakiri should be set below uwsgi_read_timeout.

  4. Look for wasted work. Check write_errors in the stats server. These increment when the worker writes to a socket nginx has already closed. A rising rate means workers are processing responses nobody will read.

  5. Identify the slow endpoint. Check the uri field or cores[].vars on busy workers. If all stuck workers show the same URI, that endpoint is the bottleneck.

  6. Check downstream dependencies. If avg_rt is climbing across all workers on diverse endpoints, the problem is systemic. Correlate with database connection count, query latency, or external API response time.

  7. Verify the master process is running. Without a master process, harakiri uses a SIGALRM-based mode that the application can cancel by calling alarm(). With a master, it uses shared memory timestamps (reliable mode). If your deployment runs without a master, harakiri may not fire when expected.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
harakiri_count (delta)Confirms harakiri is firing. If always 0, it may not be configured.Non-zero delta means requests are hitting the uWSGI timeout
write_errors (delta)Detects wasted work. Workers writing to sockets nginx already closed.Rising rate correlates with nginx firing first
avg_rt per workerShows latency approaching the timeout boundary. avg_rt is an EMA with factor 0.5, not a cumulative average.avg_rt approaching the harakiri value means workers are about to be killed
Stuck request ageElapsed time of in-flight requests, derived from in_request and request start time.Request age near uwsgi_read_timeout means 504 is imminent
respawn_count (delta)Every harakiri causes a respawn.Respawn rate tracking harakiri rate 1:1 confirms harakiri-driven kills
nginx 5xx rate504s mean nginx fired first; 502s typically mean harakiri fired first.Sustained 5xx rate from nginx upstream errors

Per-core req_info.request_start (epoch seconds) is available from the stats server while the core is in a request.

Fixes

Set harakiri below uwsgi_read_timeout

Make uWSGI’s harakiri the authoritative timeout by setting it lower than nginx’s uwsgi_read_timeout. Determine the appropriate harakiri value for your application (typically 2-3x your expected maximum legitimate request duration), then set uwsgi_read_timeout slightly above it.

# uWSGI config
harakiri = 55
harakiri-verbose = true
# nginx config
location / {
    uwsgi_pass unix:/run/uwsgi/app.sock;
    uwsgi_read_timeout 60s;
}

With this ordering, when a request hangs: harakiri fires at 55s, the master kills the worker, nginx sees the disconnect before its own 60s timeout and returns 502 instead of 504. The worker is respawned, harakiri_count increments, and no further work is wasted. The harakiri-verbose directive (Linux) logs the blocked syscall and kernel wait channel by reading /proc/<pid>/syscall and /proc/<pid>/wchan, which tells you what the worker was stuck on.

The tradeoff: users see 502 instead of 504. Both are errors, but 502 with clean cleanup and an observable signal is operationally better than 504 with wasted worker capacity and silent SIGPIPE.

Use the right nginx directive

If the location block uses uwsgi_pass, the timeout directives must be uwsgi_read_timeout, uwsgi_send_timeout, and uwsgi_connect_timeout. Setting proxy_read_timeout in a uwsgi_pass location has no effect. This leaves the default 60s uwsgi_read_timeout in place regardless of what the operator intended.

Account for post-buffering

If post-buffering is enabled and the request body is non-empty, the effective harakiri timeout becomes a multiple of the configured value (unbit/uwsgi issue #2030, still open). If you rely on harakiri to bound request time with non-trivial request bodies, verify the effective timeout empirically with harakiri-verbose logging during testing.

Walk the full proxy chain

Each layer between the client and uWSGI (CDN, load balancer, nginx) has its own timeout. The same ordering principle applies: the innermost timeout should fire first. A load balancer with a 30s timeout in front of nginx with a 60s uwsgi_read_timeout and a 55s harakiri means the LB returns 504 at 30s while both nginx and uWSGI are still processing. Walk the chain from outside in and ensure each layer’s timeout is progressively shorter.

gevent and async caveat

Harakiri does not work reliably with gevent or async modes: on async workers it is per-process rather than per-coroutine, is reset by each new request, and only fires when the whole process is stuck without yielding (unbit/uwsgi issue #2184). If you run in async mode, do not rely on harakiri. Use application-level timeouts on downstream calls instead, and set uwsgi_read_timeout as the backstop.

Graceful harakiri (uWSGI 2.0.22+)

Before uWSGI 2.0.22, harakiri used SIGKILL with no graceful shutdown window. Version 2.0.22 added harakiri-graceful-timeout, harakiri-graceful-signal (default SIGTERM), and harakiri-queue-threshold. If your uWSGI version supports it, configure graceful harakiri so the worker gets a chance to clean up resources (close database connections, release locks) before being killed.

Prevention

  • Always configure harakiri. Without it, a single stuck request permanently consumes a worker with no signal.
  • Order timeouts inside-out. harakiri < uwsgi_read_timeout < LB timeout < CDN timeout. Each layer gives the inner layer a chance to handle the timeout first.
  • Monitor write_errors. Rising write_errors mean workers are processing responses to closed connections. This is the signature of nginx or an LB firing before uWSGI.
  • Monitor harakiri_count. A non-zero delta confirms harakiri is configured and working. A permanently zero count may mean harakiri is not configured, not that nothing is timing out.
  • Enable harakiri-verbose. It logs the blocked syscall and wchan when harakiri fires, identifying what the worker was stuck on without a debugger attach.

How Netdata helps

  • Correlate nginx 5xx rates with uWSGI harakiri_count and write_errors. If nginx 504s spike while harakiri_count stays flat, nginx is winning the race and workers are doing wasted work. If harakiri_count spikes alongside nginx 502s, the ordering is correct and uWSGI is handling the timeout.
  • Per-second worker busy ratio and avg_rt. Spot the latency ramp before it hits the timeout boundary. avg_rt approaching the harakiri value is an early warning.
  • Write_errors as a wasted-work signal. Netdata surfaces per-core write_errors from the stats server, making it visible when workers are processing dead requests.
  • Stuck request age detection. By tracking in_request and request start time from the stats server, you can see how long in-flight requests have been running.
  • ML anomaly detection on avg_rt and worker busy ratio. Anomalous latency spikes that precede timeout races can be flagged before they reach the 504 threshold.