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 / mysql / mysql-row-lock-contention

Operations Guides

MySQL InnoDB row lock contention: finding who blocks whom

Queries that normally finish in milliseconds take seconds. Threads_running climbs while Questions stalls. SHOW PROCESSLIST shows active threads, yet the database is frozen. That is the shape of InnoDB row lock contention: transactions are waiting to release row-level locks, and the queue is growing.

Row lock contention differs from a metadata lock cascade. Metadata locks block DDL and DML at the table level and live in performance_schema.metadata_locks. Row locks are held by open InnoDB transactions and block at the row, gap, or next-key level. Rising Innodb_row_lock_current_waits alongside rising Threads_running signals a live contention crisis. The goal is to identify the blocker, the waiter, and the lock footprint so you can break the chain without guessing.

What this means

InnoDB holds row-level locks until commit or rollback. When a transaction needs a lock held by another, it joins a FIFO wait queue. The wait ends when the blocker releases the lock, innodb_lock_wait_timeout expires (default 50 seconds), or InnoDB detects a deadlock and rolls back the cheaper transaction.

Status metrics tell you the severity:

  • Innodb_row_lock_waits: cumulative wait events.
  • Innodb_row_lock_current_waits: instantaneous gauge of current waiters.
  • Innodb_row_lock_time: cumulative milliseconds spent waiting.

A brief spike in waits with low average time is normal in busy OLTP. Sustained Innodb_row_lock_current_waits > 0 combined with an average wait time climbing above 1000 ms and rising Threads_running means contention is throttling the system. Compute the average from Innodb_row_lock_time / Innodb_row_lock_waits. Note that Innodb_row_lock_current_waits can report nonzero while no real waits exist (reported in MySQL Bug #94775, closed as “Not a Bug”); always confirm with performance_schema.data_lock_waits.

Lock waits are not deadlocks. Deadlocks are detected immediately and one transaction is rolled back. Lock waits persist until the blocker finishes. The blocking transaction may be idle with trx_query IS NULL and still hold every lock it acquired.

Common causes

CauseWhat it looks likeFirst thing to check
Long-running or idle transaction holding locksOldest transaction in INNODB_TRX has trx_query = NULL and age in minutes or hoursSELECT ... FROM information_schema.INNODB_TRX ORDER BY trx_started ASC
Hot row contention on a small set of rowsMany waiters pointing to the same OBJECT_NAME and similar index entries in data_locks; high current waits but short avg timeperformance_schema.data_locks grouped by object and lock data
Missing index causing gap or next-key locksA simple UPDATE ... WHERE col < N holds locks on far more rows than matched; Handler_read_rnd_next or Select_full_join risingEXPLAIN the blocking query and inspect lock mode in data_locks
Foreign key or AUTO_INC table locksWaits on parent/child tables or high-concurrency inserts; data_locks shows lock_type = TABLE with AUTO_INCdata_locks filtered by LOCK_TYPE = 'TABLE' and lock mode
Connection leak with open transactionConnection sleeps for a long time but INNODB_TRX shows an active transaction with rows modifiedSHOW PROCESSLIST joined to INNODB_TRX by trx_mysql_thread_id

Quick checks

Run these safe, read-only checks before changing anything.

-- Check row lock wait severity
SHOW GLOBAL STATUS LIKE 'Innodb_row_lock%';
-- Confirm real waiters exist (MySQL 8.0+)
SELECT COUNT(*) FROM performance_schema.data_lock_waits;
-- Convenience blocking tree (MySQL 8.0+)
SELECT * FROM sys.innodb_lock_waits\G
-- Find the oldest active transactions
SELECT trx_mysql_thread_id, trx_started,
       TIMESTAMPDIFF(SECOND, trx_started, NOW()) AS age_seconds,
       trx_rows_modified, trx_query
FROM information_schema.INNODB_TRX
ORDER BY trx_started ASC LIMIT 10;
-- Rule out metadata lock cascade
SELECT OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME,
       LOCK_TYPE, LOCK_STATUS, COUNT(*) AS waiting
FROM performance_schema.metadata_locks
WHERE LOCK_STATUS = 'PENDING'
GROUP BY OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME,
         LOCK_TYPE, LOCK_STATUS;
-- Current processlist for context
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO
FROM information_schema.PROCESSLIST
WHERE COMMAND != 'Sleep'
ORDER BY TIME DESC LIMIT 20;

On MySQL 8.0, accessing performance_schema.data_locks and data_lock_waits requires only SELECT on performance_schema.*. This is less restrictive than the legacy MySQL 5.7 INFORMATION_SCHEMA.INNODB_LOCK_WAITS, which required the global PROCESS privilege. If you migrated scripts from 5.7, update grants.

Caution: sys.innodb_lock_waits is convenient but can stall or consume excessive memory under heavy lock volume on MySQL 8.0.0 through 8.0.39. These regressions were fixed in MySQL 8.0.40 (October 2024). If the view is slow, fall back to the manual data_lock_waits join.

How to diagnose it

  1. Confirm the pattern from status metrics. Look for Innodb_row_lock_current_waits > 0, average wait time above 1000 ms, rising Threads_running, and a dropping Questions rate. That combination is the operational signature of an active lock-wait cascade. Compute the average wait time from Innodb_row_lock_time / Innodb_row_lock_waits.

  2. Rule out metadata locks. Check performance_schema.metadata_locks for pending locks. If you see multiple sessions waiting on the same table with LOCK_STATUS = 'PENDING', you are dealing with a metadata lock cascade, not a row lock problem. Row-lock diagnostics will not help there.

  3. Build the blocking tree. In MySQL 8.0+, join performance_schema.data_lock_waits to information_schema.innodb_trx twice: once for the blocker and once for the waiter.

SELECT
  r.trx_id AS waiting_trx_id,
  r.trx_mysql_thread_id AS waiting_thread,
  r.trx_query AS waiting_query,
  b.trx_id AS blocking_trx_id,
  b.trx_mysql_thread_id AS blocking_thread,
  b.trx_query AS blocking_query
FROM performance_schema.data_lock_waits w
INNER JOIN information_schema.innodb_trx b
  ON b.trx_id = w.blocking_engine_transaction_id
INNER JOIN information_schema.innodb_trx r
  ON r.trx_id = w.requesting_engine_transaction_id;

In MySQL 5.7, use information_schema.INNODB_LOCK_WAITS and INNODB_LOCKS instead. Those tables were removed in MySQL 8.0.

  1. Recover the blocking query when the session is idle. If blocking_query is NULL, the blocker is not running a statement but still holds locks. Use the blocking thread ID to find its last SQL:
SELECT t.THREAD_ID, s.SQL_TEXT
FROM performance_schema.threads t
LEFT JOIN performance_schema.events_statements_current s
  ON s.THREAD_ID = t.THREAD_ID
WHERE t.PROCESSLIST_ID = <blocking_thread_id>;

-- If current is empty, try history:
SELECT THREAD_ID, SQL_TEXT, TIMER_START
FROM performance_schema.events_statements_history
WHERE THREAD_ID = <blocking_thread_id>
ORDER BY TIMER_START DESC LIMIT 5;
  1. Inspect the lock footprint. Query performance_schema.data_locks to see whether the blocker holds row locks, gap locks, next-key locks, or table-level AUTO_INC locks. A single UPDATE that matches ten rows but holds thousands of next-key locks tells you the query is scanning a wide range because of a missing index or REPEATABLE READ isolation.

  2. Decide on the Intervention. The safest options, ordered from least to most disruptive:

    • Kill the blocking connection if it is idle or expendable. InnoDB rolls back its transaction and releases all locks. Waiters proceed immediately.
    • Kill a specific waiter if it is less important than the blocker.
    • Fix the root cause: add an index, reduce transaction scope, or change application lock ordering.

Warning: Killing a connection triggers a full transaction rollback. If the transaction modified a large number of rows, the rollback can be slow and resource-intensive.

flowchart TD
    A[Innodb_row_lock_current_waits > 0] --> B{Metadata locks pending?}
    B -->|Yes| C[Diagnose metadata lock cascade]
    B -->|No| D[Join data_lock_waits + innodb_trx]
    D --> E{blocking_query is NULL?}
    E -->|Yes| F[Lookup events_statements_history]
    E -->|No| G[Read blocking SQL]
    F --> H[Kill blocker, kill waiter, or fix query]
    G --> H

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Innodb_row_lock_current_waitsInstantaneous count of transactions waiting for row locks> 0 sustained for more than 30 seconds
Innodb_row_lock_time / Innodb_row_lock_waitsAverage duration of each wait; indicates how painful contention is> 1000 ms and climbing
Innodb_row_lock_waits rateFrequency of contention eventsSustained increase above baseline
Threads_runningActive concurrent workRising while Innodb_row_lock_current_waits > 0
Questions rateQuery throughputDropping while contention metrics rise
lock_deadlocks from INNODB_METRICSEscalation from waits to deadlocks> 1 per minute sustained

Do not rely on Innodb_row_lock_current_waits alone. Because of Bug #94775 it can lie. Always pair it with a direct query against performance_schema.data_lock_waits.

Fixes

Long-running idle transaction. Find the oldest transaction in INNODB_TRX and identify it in SHOW PROCESSLIST. If it is a developer session, monitoring connection, or leaked application connection, kill it:

Warning: KILL triggers a full transaction rollback. A large uncommitted write set can make rollback slow and I/O intensive.

KILL <trx_mysql_thread_id>;

The locks release when rollback completes and the wait queue drains. Long term, fix the application so it commits or rolls back promptly, and ensure connection pools return connections in a clean state.

Hot row contention. Reduce the time any transaction holds the hot rows. Options include batching updates to a counter table, splitting a single hot row into many rows, or moving the sequence/counter logic out of the database. Keep transactions short and do not hold locks while waiting on external services.

Missing index causing wide locks. Run EXPLAIN on the blocking query. If it scans a large range, add a covering index so InnoDB touches only the rows that must change. If the workload allows, switching from REPEATABLE READ to READ COMMITTED reduces gap locking, but it also changes MVCC semantics. Treat that as an application design decision, not a quick fix.

Foreign key and AUTO_INC contention. Ensure foreign key columns are indexed; InnoDB must lock the parent or child table for unindexed foreign key checks. For AUTO_INC contention on high-concurrency inserts, consider spreading inserts across time or partitioning the workload so the table-level AUTO_INC lock is not the bottleneck.

Prevention

  • Alert on open transaction age from information_schema.INNODB_TRX. Any transaction older than 5 minutes in an OLTP workload is worth investigating.
  • Keep long_query_time at 1 second or lower in production so queries that hold locks for a long time show up in the slow log.
  • Maintain indexes on join columns, foreign keys, and range-filtered columns to avoid unintended gap locks.
  • Schedule DDL during low-traffic windows or use online schema change tools to avoid compounding row waits with metadata locks.
  • Review ORM and connection pool settings so transactions are not left open across user think time or external API calls.
  • Stay on MySQL 8.0.40 or newer if you rely on sys.innodb_lock_waits for lock diagnostics.

How Netdata helps

  • Charts Innodb_row_lock_current_waits and row lock wait rates alongside Threads_running, Questions, and Slow_queries on the same timeline, so you can distinguish a lock-wait cascade from CPU saturation or I/O stall.
  • Alerts on sustained Innodb_row_lock_current_waits and high average wait time.
  • Surfaces processlist and InnoDB status metrics without requiring manual SHOW GLOBAL STATUS sampling during an incident.
The Netdata solution

MySQL monitoring with Netdata

Netdata monitors MySQL and MariaDB with per-second metrics and ML anomaly detection. Track connection usage, query throughput, slow queries, redo-log pressure, and replication lag alongside the host and storage signals that explain them.