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-harakiri-worker-killed ▌

Operations Guides

uWSGI HARAKIRI ON WORKER: requests killed for exceeding the timeout

*** HARAKIRI ON WORKER N (pid: XXXX, try: 1) ***

(Releases since 2.0.22 append , graceful: yes when graceful harakiri is enabled.)

You see it in the uWSGI error log, followed by the master reporting the worker died by signal 9. Your monitoring shows a spike in 502 or 504 responses from the reverse proxy. Something in the request path is hanging long enough to exceed the configured harakiri limit, and the master process is killing workers to prevent total pool exhaustion.

Harakiri is doing its job. It is not the problem. The problem is whatever is causing requests to run past the timeout.

What this means

When harakiri fires, the uWSGI master sends SIGKILL to the worker that has been processing a request longer than the configured harakiri value (in seconds). The worker dies immediately. There is no graceful shutdown, no request completion, and no cleanup of resources: database connections, file locks, network sockets. The upstream proxy sees a broken connection. Nginx typically logs recv() failed (104: Connection reset by peer) and returns 502 Bad Gateway. If the proxy’s own upstream timeout fires before harakiri, the user sees 504 Gateway Timeout instead.

The master respawns the worker immediately after the kill. If the root cause is systemic, the replacement picks up the next queued request, hangs on the same dependency, and gets killed again. This cycle is the harakiri death spiral: workers churn through kill-respawn cycles while serving zero useful traffic.

The harakiri directive operates in two modes:

  • SIGALRM-based: The worker sets an alarm timer for itself. Unreliable because application code or C extensions can override or mask SIGALRM, disabling the watchdog silently.
  • Master/shared-memory-based: Each worker writes a per-request timestamp to shared memory. The master periodically checks whether the timestamp plus the harakiri interval has elapsed. The worker cannot interfere. This is the reliable mode, used when the master is present.

Each harakiri event increments two per-worker counters in the stats server JSON:

  • harakiri_count: per-worker, monotonic. It does not reset on respawn, so track the delta between polls, not the absolute value. A worker showing harakiri_count: 47 might have accumulated those over months with zero events in the last week.
  • respawn_count: per-worker, monotonic. Every harakiri increments this by one, but so do other worker exits (crashes, max-requests recycling). Subtract harakiri_count delta from respawn_count delta to isolate non-harakiri churn.

Both harakiri_count and respawn_count persist for the worker slot across respawns (they live in the master’s shared per-worker state and reset only on a full instance restart).

Common causes

CauseWhat it looks likeFirst thing to check
Downstream dependency outage (database, API)All workers hit harakiri simultaneously, throughput collapsesCheck database connectivity and external API health
Connection pool exhaustionRequests slow progressively, then start timing outCheck DB connection count vs pool maximum
DNS resolution hangingIntermittent harakiri on requests making outbound callsCheck resolver config and DNS server responsiveness
Infinite loop or deadlock in application codeSingle worker repeatedly killed, others unaffectedEnable harakiri-verbose and check the blocked syscall
Legitimately slow endpoint (reports, exports)Harakiri clusters on specific URIsCheck workers[].uri in stats for the slow endpoint
Network partition to a dependencyAll workers affected simultaneouslyCheck network connectivity to the dependency host
Container CPU throttlingHarakiri fires far sooner than the configured timeoutCheck cgroup CPU throttling counters

Quick checks

All commands assume the stats server is enabled with --stats and accessible. Adjust the address to match your deployment (TCP or UNIX socket).

# Total harakiri count (sum across all workers; delta between polls gives the rate)
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[].harakiri_count] | add'

# Per-worker breakdown
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.workers[] | {id: .id, harakiri: .harakiri_count, respawn: .respawn_count, status: .status}'

# Worker busy ratio (how saturated is the pool?)
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) else 0 end'

# Which URIs are busy workers processing?
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.workers[] | select(.status == "busy") | {id: .id, uri: .uri, avg_rt: .avg_rt}'

The stats `avg_rt` value is in microseconds.

# Stuck request ages (how long has each in-flight request been running?)
# cores[] is suppressed if uWSGI was started with --stats-no-cores
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, age_seconds: ($now - .req_info.request_start)}]'

# Check configured harakiri timeout
grep -i harakiri /etc/uwsgi/*.ini

# Search logs for harakiri-verbose output (syscall and wchan)
grep -A10 "HARAKIRI" /var/log/uwsgi/*.log | tail -80

How to diagnose it

flowchart td
    A["HARAKIRI log lines appearing"] --> B{"All workers affected?"}
    B -->|Yes| C{"Throughput near zero?"}
    B -->|No| D["Single worker or specific URI"]
    C -->|Yes| E["Systemic: downstream dependency outage"]
    C -->|No| F["Intermittent: DNS, pool, or contention"]
    D --> G["Check harakiri-verbose for syscall"]
    G --> H["Check workers.uri for slow endpoint"]
    E --> I["Check DB and API connectivity"]
    F --> J["Check DNS, pool limits, locks"]
  1. Confirm the harakiri timeout. Run grep -i harakiri /etc/uwsgi/*.ini or check your config path. If harakiri is not set, it is disabled by default and these kills are not coming from uWSGI. Something else is killing workers.

  2. Determine scope: death spiral or isolated kills. Poll harakiri_count twice, 60 seconds apart. If the delta is 3 or more across the pool and worker busy ratio is at or near 100%, you are in a death spiral. The service is effectively down. If only one or two workers show increments while others serve normally, the problem is endpoint-specific or worker-specific.

  3. Enable harakiri-verbose if not already on. Add harakiri-verbose = true to your config and reload. This causes uWSGI to log the blocked syscall and kernel wait channel at harakiri time (Linux only; it reads /proc/<pid>/syscall and /proc/<pid>/wchan). You cannot retroactively get this data. If it was not enabled before the event, the information is gone. After enabling, wait for the next harakiri and check the log.

  4. Identify the blocked syscall. With harakiri-verbose enabled, the log shows lines like HARAKIRI: -- syscall> 232 0x27... and HARAKIRI: -- wchan> sys_epoll_wait. Common patterns:

    • sys_epoll_wait, poll_schedule_timeout, or sys_read: blocked on network I/O, likely waiting on a downstream dependency that is not responding.
    • futex_wait: lock contention or a threading primitive deadlock.
    • io_schedule: blocked on disk I/O, possibly an NFS stall or synchronous file operation.
  5. Check which endpoints are timing out. Poll workers[].uri on busy workers. If all busy workers show the same URI, that endpoint is the bottleneck. If URIs are diverse, the problem is systemic, not endpoint-specific.

  6. Check downstream dependencies. The most common root cause is a downstream service (database, cache, external API) that is slow or unresponsive. Verify database connectivity, check connection pool utilization against configured maximums, and test external API endpoints independently.

  7. Rule out known bugs. If you run threaded mode (threads > 1) with post-buffering > 0, uWSGI has open reports of harakiri firing far earlier than the configured timeout (unbit/uwsgi issues #2706 and #2030) and no released fix as of current 2.0.x. The workaround is threads = 1 or post-buffering = 0.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
harakiri_count delta (per worker)Direct measure of kill rateAny sustained non-zero delta over a 5-minute window
respawn_count deltaTotal worker churn; subtract harakiri delta to isolate crash or recycling respawnsRespawn rate significantly exceeding expected max-requests cadence
Worker busy ratioPool saturation; at 100%, every new request queues in the kernel backlogSustained above 80% with rising avg_rt
avg_rt (per worker)Latency trendApproaching the harakiri timeout value
Stuck request age (req_info.request_start)In-flight request duration; identifies requests about to be killedRequest age approaching harakiri timeout
workers[].uri on busy workersWhich endpoint is consuming capacityAll busy workers stuck on the same URI
Exception rateApplication errors that may cause hangs or slow processingSpike correlated with harakiri events

Fixes

Downstream dependency is down or slow

The most common cause. The fix is at the application and dependency level, not in uWSGI configuration.

  • Add explicit timeouts to all outbound calls. Database queries, HTTP client requests, and DNS lookups should all have timeouts shorter than the harakiri limit. A database query with no timeout will hang until harakiri kills the worker, leaking the connection when the worker dies.
  • Fail fast. If a dependency health check fails, return 503 immediately instead of attempting the request and waiting for it to hang. This preserves worker capacity for requests that can succeed.
  • Check connection pool sizing. If workers are waiting for connections from an exhausted pool, increasing the pool size or reducing the worker count can help. Total demand is workers multiplied by connections per worker, across all application servers sharing the downstream resource.

Slow endpoint is hitting the timeout

If harakiri clusters on a specific URI (reports, exports, bulk operations), the endpoint legitimately needs more time than the global harakiri allows.

  • Use per-route harakiri. uWSGI supports route-level harakiri overrides via setharakiri in the internal routing subsystem. Set a longer timeout for known slow endpoints and keep the global timeout tight for everything else.
  • Move long-running work to the spooler or mules. Operations that take minutes should not occupy request workers. Write the job to the spooler and return immediately with a job identifier.

Harakiri timeout is misconfigured

  • Too low: Kills legitimate requests. If your p99 latency is 8 seconds and harakiri is 10 seconds, normal traffic spikes will trigger kills. A reasonable starting point is 2-3x your expected maximum legitimate request duration.
  • Too high: Workers hang for a long time before recovery. A 300-second timeout means a stuck worker occupies a slot for 5 minutes before harakiri frees it. During that time, effective capacity is reduced by one worker.
  • Consider graceful harakiri. The harakiri-graceful-timeout directive sends SIGTERM first, giving the worker a chance to clean up (release connections, log the request) before SIGKILL. This reduces resource leaks from violent kills. Both harakiri-graceful-timeout and harakiri-graceful-signal (default SIGTERM) were added in uWSGI 2.0.22.

Container CPU throttling is causing premature kills

The master tracks the harakiri deadline per worker core (thread) in current releases, but the premature-harakiri reports for threaded mode with post-buffering (issue #2706) remain open, so no released fix is confirmed.

In containerized environments with CPU limits, the kernel throttles CPU time in cgroup scheduling periods. uWSGI’s harakiri timer measures wall-clock time, not CPU time. If a worker is throttled and receives less CPU than expected, it may exceed the harakiri timeout despite doing legitimate work. Check cgroup CPU throttling counters and consider increasing CPU limits if throttling is frequent.

Prevention

  • Always configure harakiri. Without it, a stuck worker hangs forever, silently consuming a worker slot until all workers are exhausted and the service is unresponsive. A harakiri_count of 0 when harakiri is not configured is not a sign of health. It is a monitoring blind spot.
  • Enable harakiri-verbose from day one. You lose the syscall and wchan data if it was not enabled before the event. Retroactive diagnosis without it is guesswork.
  • Set application-level timeouts on every outbound call. Database query timeout, HTTP client timeout, DNS resolver timeout. All should be shorter than harakiri. This ensures the application recovers before the master kills the worker.
  • Monitor harakiri rate as a trend, not individual events. Harakiri is a safety mechanism. Occasional kills on legitimately slow requests are expected. A rising rate indicates systemic degradation.
  • Correlate harakiri with downstream dependency metrics. Harakiri rate alongside database connection count, query latency, and external API response time immediately reveals whether the root cause is in the application or in a dependency.

How Netdata helps

Netdata collects harakiri_count per worker from the uWSGI stats server at per-second resolution, computing the delta automatically so you see the kill rate without manual polling.

Correlating harakiri rate with worker busy ratio, avg_rt, and exception rate in a single view makes the death spiral pattern immediately visible: all three rise together when a downstream dependency fails.

Per-worker breakdowns let you distinguish systemic harakiri (all workers affected) from endpoint-specific kills (one or two workers), narrowing the investigation before you touch a shell.

Netdata also surfaces respawn_count, so you can verify that respawns track harakiri 1:1 (confirming kills as the cause) versus tracking max-requests recycling (normal worker lifecycle).