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-monitoring-maturity-model

Operations Guides

MySQL monitoring maturity model: from survival to expert

Most MySQL monitoring stacks grow reactively. A team starts with a liveness check and disk alerting. An incident exposes a gap, a new signal gets added, and the cycle repeats. The result is uneven coverage: strong in areas that caused past outages, blind in areas that will cause the next one.

This article maps MySQL monitoring into four capability levels. Use it as a self-assessment, not a checklist to max out. Every level includes signals the playbook identifies as operationally important, along with the failure modes they catch. If you are missing an entire category at your current level, that is your highest-priority gap.

The levels are cumulative. Level 2 assumes Level 1 is in place. Level 3 assumes Level 2. Do not skip ahead to expert signals while missing operational fundamentals.

A broader mental model of how MySQL works in production, including the subsystems referenced below, is covered in how MySQL works in production.

flowchart TD
    L1["Level 1: Survival
Is it alive?"] --> L2["Level 2: Operational
Is it healthy?"] L2 --> L3["Level 3: Mature
Are cliff edges approaching?"] L3 --> L4["Level 4: Expert
Where exactly is the contention?"]

Level 1: survival

The minimum to know MySQL is alive and accepting work. Teams at this level know when MySQL is completely down but have no warning before failures and limited diagnostics during incidents.

What this level catches:

  • Server crashes, OOM kills, and restart loops.
  • Connection slot exhaustion (hard refusal).
  • Replication thread failures (broken I/O or SQL thread).
  • Disk full on the data volume.

What this level misses:

  • Gradual performance degradation (slow queries, buffer pool erosion).
  • Lock contention and metadata lock cascades.
  • Replication lag (threads running does not mean caught up).
  • Write-path cliff edges (checkpoint stalls, purge lag).

Signals at this level

SignalSourceWhat it tells you
Server availabilitySELECT 1 + SHOW GLOBAL STATUS LIKE 'Uptime'MySQL is up and can answer a query. Uptime reset means a crash or restart.
Connection utilizationThreads_connected / max_connectionsHow close you are to refusing new connections.
Replication thread stateSHOW REPLICA STATUS\G (Replica_IO_Running, Replica_SQL_Running)Whether replication threads are alive. Does not tell you if the replica is caught up.
Disk space freeOS-level (df) on data volumeWill writes fail soon?
Error log [ERROR] lines/var/log/mysql/error.logCrash signatures, corruption, replication errors with context.

Survival-level checklist

  • Liveness check responds within timeout. A TCP connect succeeding does not mean MySQL is ready. InnoDB crash recovery can block connections for minutes. The check must execute a query, not just open a socket.
  • Connection ratio below 80% at peak. Express as Threads_connected / max_connections, never as an absolute count. Peak headroom of 20-30% covers spikes and failover storms.
  • Both replication threads report Yes. Either thread stopping means lag grows unboundedly. Note: Seconds_Behind_Source at this level is a secondary signal and is unreliable in several scenarios (see Level 2).
  • Error log is collected and alertable. MySQL writes crash signatures, assertion failures, and corruption warnings here that appear nowhere in status variables.

What survival does not cover

A server passing SELECT 1 can still be in deep trouble. Metadata lock cascades, purge lag, checkpoint stalls, and buffer pool cliff edges all produce a server that answers liveness checks while serving queries at a fraction of normal throughput. If your monitoring stops here, your first indication of these problems will be application error rates.

Level 2: operational

What a competent team running MySQL in production monitors. Missing any of these would be considered a gap in peer review. This level adds throughput, active concurrency, query quality, and contention signals.

What this level adds:

  • Active load and throughput baselines.
  • Buffer pool effectiveness.
  • Query quality indicators (scans, joins without indexes, temp table spills).
  • Lock contention and deadlock detection.
  • Connection failure breakdown.

Signals at this level

SignalSourceWhy it matters
Query throughput (Questions rate)SHOW GLOBAL STATUS LIKE 'Questions'A sudden drop with stable connections means queries are stuck (locks, I/O saturation, metadata locks).
Active threads (Threads_running)SHOW GLOBAL STATUS LIKE 'Threads_running'The definitive load gauge. If consistently higher than CPU cores, the database is oversubscribed. Rising while Questions is flat means queries are queuing.
Slow query rateSHOW GLOBAL STATUS LIKE 'Slow_queries' with long_query_time <= 1 secondThe default 10-second threshold misses most operationally relevant slowdowns. Express as Slow_queries / Questions ratio.
Buffer pool hit ratio1 - (Innodb_buffer_pool_reads / Innodb_buffer_pool_read_requests)Below 99% for OLTP is concerning. Below 95% is a crisis. The degradation curve is non-linear.
Row lock waitsSHOW GLOBAL STATUS LIKE 'Innodb_row_lock%'Innodb_row_lock_current_waits > 0 means transactions are actively blocked right now.
DeadlocksINFORMATION_SCHEMA.INNODB_METRICS metric lock_deadlocksSustained high rate indicates application design issues. Note: not available as a SHOW STATUS variable.
Aborted connectionsSHOW GLOBAL STATUS LIKE 'Aborted_connects', Aborted_clientsAuth failures, network drops, credential rotation problems.
Connection rejectionsSHOW GLOBAL STATUS LIKE 'Connection_errors_max_connections'Actual rejections at the limit, not just high utilization.
Replication lagSeconds_Behind_Source from SHOW REPLICA STATUSData freshness. Unreliable in several cases (see below), but better than nothing.
Temp table disk ratioCreated_tmp_disk_tables / Created_tmp_tablesAbove 25% means queries are spilling to disk.
Read/write mixCom_select, Com_insert, Com_update, Com_deleteA shift in ratio often precedes or explains performance changes.

Operational-level checklist

  • Threads_running relative to CPU cores. Sustained above core count means context-switching overhead. Sustained at 3x cores with dropping throughput means contention or stall.
  • Hit ratio computed over intervals, not cumulative. After a year of uptime, cumulative hit ratio masks current degradation. Compute from deltas over 1-minute windows.
  • long_query_time set to 1 second or lower for OLTP. The 10-second default lets 9.9-second queries pass as “normal.” The counter increments even if the slow query log is disabled.
  • Replication lag validated. Seconds_Behind_Source shows 0 when the I/O thread has not fetched latest events but the SQL thread caught up with a stale relay log. It shows NULL when broken. For critical decisions, add heartbeat-based lag (for example pt-heartbeat) or GTID comparison at Level 4.
  • Deadlock count comes from INNODB_METRICS, not SHOW STATUS. The variable Innodb_deadlocks does not exist in upstream SHOW GLOBAL STATUS. Use SELECT COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME = 'lock_deadlocks'.

Common operational mistakes

  • Alerting on Threads_connected instead of Threads_running. High connections with low running is a connection leak. High running is a crisis. These require different responses.
  • Treating max_connections as a tuning knob. Increasing it trades “connection refused” for potential OOM. Each connection consumes memory for per-thread buffers. The right response is investigating why so many connections are needed.
  • Relying solely on Seconds_Behind_Source. This metric is timestamp-based, not real-time. A burst after source idle time makes it jump to 3600 with no real lag. Use it as a secondary signal, not the primary one.

Level 3: mature

Full coverage including internals, leading indicators, and composite failure pattern detection. Teams at this level catch problems before they become incidents.

What this level adds:

  • Write-path cliff edge detection (checkpoint age, redo log capacity).
  • MVCC debt tracking (history list length).
  • Metadata lock detection before cascade.
  • Transaction age and open transaction monitoring.
  • Binlog growth and table cache efficiency.

Signals at this level

SignalSourceWhy it matters
Checkpoint age / redo log capacityMySQL 8.0.30+: Innodb_redo_log_current_lsn - Innodb_redo_log_checkpoint_lsn. Pre-8.0.30: INNODB_METRICS metric log_lsn_checkpoint_age (disabled by default). All versions: parse SHOW ENGINE INNODB STATUS LOG section.Above 75% triggers aggressive flushing. Above 90% with throughput collapse means synchronous flush stall. This is the most common “mysterious slowdown” in production MySQL.
History list lengthINFORMATION_SCHEMA.INNODB_METRICS metric trx_rseg_history_len. Also: parse SHOW ENGINE INNODB STATUS.Above 100,000 is concerning. Above 1,000,000 means a long-running transaction is blocking purge. Above 10,000,000 means severe degradation across all MVCC reads. Not available as a SHOW STATUS variable in MySQL 8.0.
Open transaction ageinformation_schema.INNODB_TRX ordered by trx_startedAny OLTP transaction older than 5 minutes is suspicious. trx_query = NULL with modifications means a forgotten transaction holding locks and a read view.
Metadata lock waitsperformance_schema.metadata_locks where LOCK_STATUS = 'PENDING'More than 3 sessions waiting on the same object means a cascade is developing. Metadata locks are a separate system from InnoDB row locks and do not appear in data_lock_waits.
Binary log growthSHOW BINARY LOGS summed; binlog_expire_logs_secondsMySQL 5.7 default expire_logs_days = 0 means binlogs accumulate forever. Lagging replicas block purge on the source.
Table cache pressureOpened_tables rate; Open_tables / table_open_cache ratioHigh miss rate adds file descriptor overhead and latency. Cross-check against OS ulimit -n.
Buffer pool wait freeSHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_wait_free'Any nonzero sustained rate means queries are blocked waiting for dirty page flush. More reliable than hit ratio for detecting acute memory pressure.
Log buffer waitsSHOW GLOBAL STATUS LIKE 'Innodb_log_waits'Any nonzero rate means innodb_log_buffer_size is undersized. Distinct from checkpoint stalls (which are about redo log capacity, not buffer size).
Thread cache efficiencyThreads_created / Connections ratioHigh ratio means connection pooling is ineffective or thread_cache_size is too small.
Query digest latencyperformance_schema.events_statements_summary_by_digestPer-query-pattern latency catches individual regressions invisible in aggregate averages. Track per-digest latency over time, not absolute values.
Dirty page ratioInnodb_buffer_pool_pages_dirty / Innodb_buffer_pool_pages_totalApproaching innodb_max_dirty_pages_pct triggers aggressive flushing, consuming I/O bandwidth.

Mature-level checklist

  • Checkpoint age expressed as ratio, not absolute LSN. Compare to redo log capacity (innodb_redo_log_capacity in 8.0.30+, or innodb_log_file_size * innodb_log_files_in_group pre-8.0.30). Below 50% is comfortable. Above 75% is the aggressive flushing zone.
  • History list from INNODB_METRICS, not SHOW STATUS. trx_rseg_history_len behaves as a gauge despite being labeled status_counter. In upstream MySQL it is not a status variable. Percona Server exposes it as Innodb_history_list_length.
  • Metadata lock instrument enabled. performance_schema.metadata_locks is available by default in MySQL 5.7+; the wait/lock/metadata/sql/mdl instrument is disabled by default in 5.7 and enabled by default in 8.0, so verify it on 5.7 hosts. Without it, metadata lock cascades are invisible until connection pools fill.
  • Binlog expiry configured. MySQL 8.0 defaults to 30 days (binlog_expire_logs_seconds = 2592000). MySQL 5.7 defaults to never (expire_logs_days = 0). Verify your version.
  • Composite pattern detection in place. Mature monitoring correlates multiple signals: metadata lock cascade (pending MDL + throughput drop), buffer pool cliff (hit ratio drop + wait_free nonzero + disk read saturation), checkpoint stall (checkpoint age > 90% + commit rate collapse).

Common mature-level mistakes

  • Confusing Innodb_log_waits with checkpoint stalls. Innodb_log_waits > 0 means the log buffer was too small. It does not confirm a checkpoint stall. Use throughput or commit rate collapse as the confirmer for checkpoint stalls.
  • Using cumulative hit ratio. After long uptime, cumulative counters mask current state. Always compute over recent intervals.
  • Not finding the blocking transaction. When history list grows, the blocker is found via SELECT * FROM information_schema.INNODB_TRX ORDER BY trx_started ASC LIMIT 1. The transaction may show trx_query = NULL because it is idle between statements, but it is still holding its read view.

Level 4: expert

Deep signals that experienced operators add after repeated incidents. These require Performance Schema instrumentation, structured parsing of SHOW ENGINE INNODB STATUS, and often custom collection logic.

What this level adds:

  • Per-index and per-table access statistics.
  • Lock-wait chain reconstruction.
  • Internal mutex and latch contention analysis.
  • GTID-based replication divergence detection.
  • Page cleaner and flush path efficiency.

Signals at this level

SignalSourceWhy it matters
Per-index access statisticsperformance_schema.table_io_waits_summary_by_index_usageINDEX_NAME = NULL rows indicate table scans. Identifies unused indexes and missing indexes on hot tables.
Lock-wait chainsperformance_schema.data_lock_waits joined with information_schema.innodb_trxShows exactly who is blocking whom and on which rows. In MySQL 8.0, this is the single most useful lock diagnostics tool.
GTID divergenceGTID_SUBTRACT(replica_executed_gtid_set, source_gtid_executed)Errant transactions on a replica (transactions the source does not have) indicate data divergence. The next failover will propagate conflicts. Ordinary lag (GTID_SUBTRACT(source, replica)) is not divergence.
Page cleaner efficiencyInnodb_buffer_pool_pages_flushed rate vs dirty ratio; innodb_page_cleaners countWhether page cleaners are keeping up, independent of dirty page count. Capped by innodb_buffer_pool_instances.
Semaphore waitsSHOW ENGINE INNODB STATUS SEMAPHORES sectionMutex and rw-lock contention that no status variable reveals. btr_search waits indicate adaptive hash index latch contention.
AHI efficiencyINFORMATION_SCHEMA.INNODB_METRICS: adaptive_hash_searches vs adaptive_hash_searches_btreeHit ratio below 50% means AHI consumes buffer pool memory without helping. Many high-performance operators disable AHI entirely.
Mutex spin/wait ratiosINFORMATION_SCHEMA.INNODB_METRICSHigh spin counts with low throughput indicate CPU wasted on lock spinning. Note: Performance Schema mutex instrumentation excludes buffer pool internal mutexes. Use SHOW ENGINE INNODB MUTEX for those.
Sort merge pass rateSort_merge_passes / (Sort_scan + Sort_range)Ratio above 1 means sort_buffer_size is too small for the workload. Increasing the buffer past 256KB-2MB has diminishing returns.
Binlog cache spillBinlog_cache_use vs Binlog_cache_disk_useDisk spill means transactions are too large for the binlog cache (binlog_cache_size).
Per-file I/O statisticsperformance_schema.file_summary_by_instanceReveals when a specific tablespace or log file has become a hotspot.
Prepared statement cacheCom_stmt_prepare vs Com_stmt_reprepareHigh reprepare rate indicates table statistics changes invalidating prepared statements frequently.

Expert-level checklist

  • Errant GTID transactions trigger immediate investigation. GTID_SUBTRACT(replica_set, source_set) returning non-empty is data divergence. It cannot self-resolve. The next failover will propagate conflicting data.
  • Lock-wait chains reconstructed on demand. During contention incidents, joining data_lock_waits with innodb_trx and processlist identifies the blocker in seconds. MySQL 8.0.40 reduced the cost of querying these tables under contention.
  • AHI latch contention checked before disabling. Confirm btr_search waits in the SEMAPHORES section with spin rounds above 100K. Disabling AHI (SET GLOBAL innodb_adaptive_hash_index = OFF) is safe and immediate but clears the entire structure with a brief performance dip.
  • Page cleaner count adequate. innodb_page_cleaners defaults to 4, capped by innodb_buffer_pool_instances. If dirty pages accumulate with adequate I/O capacity, increase page cleaners.
  • Unused indexes identified periodically. Query table_io_waits_summary_by_index_usage for indexes with zero or negligible reads. Removing unused indexes reduces write amplification and storage.

How to use this model

Start by identifying your current level. If you are missing signals at your own level, fill those gaps first. A team at Level 2 with no buffer pool hit ratio monitoring has a more urgent problem than a team at Level 3 considering GTID divergence tracking.

The most common blind spots across all levels:

  1. Checkpoint age (Level 3). The most common “mysterious slowdown” and the least monitored cliff edge. The Innodb_checkpoint_age status variable does not exist. You need INNODB_METRICS or 8.0.30+ redo log status variables.
  2. History list length (Level 3). Silent degradation from idle transactions. Not a SHOW STATUS variable in 8.0.
  3. Metadata locks (Level 3). Separate system from InnoDB row locks. Invisible without performance_schema.metadata_locks.
  4. Threads_running vs Threads_connected (Level 2). The single most important real-time health signal, frequently absent or misunderstood.
  5. GTID errant transactions (Level 4). Invisible divergences that cause failover failures.

For deeper coverage of specific failure patterns, see the related guides below.

How Netdata helps

Netdata collects MySQL status variables, Performance Schema tables, and InnoDB internals through its MySQL collector. The signals across all four levels are available as predefined charts and alarms.

  • Correlates Threads_running with Questions rate and CPU. When active concurrency rises while throughput drops, Netdata shows the divergence in a single view, distinguishing CPU saturation from lock contention.
  • Tracks buffer pool hit ratio as interval-computed, not cumulative. The cliff edge from 99% to 95% is visible as it happens, not masked by historical averages.
  • Monitors connection utilization and rejection rate together. Threads_connected / max_connections and Connection_errors_max_connections are charted alongside each other, making the difference between “approaching” and “refusing” immediately clear.
  • Exposes checkpoint age as a derived metric. Netdata computes the ratio against redo log capacity, eliminating the need to parse SHOW ENGINE INNODB STATUS manually or enable INNODB_METRICS.
  • Correlates replication signals across levels. Thread state, lag, relay log space, and GTID position are collected together, so I/O thread disconnects are not masked by a Seconds_Behind_Source of 0.
  • History list and open transaction age as first-class metrics. Purge lag from idle transactions is charted continuously, not discovered 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.