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 / how-mysql-works-in-production

Operations Guides

How MySQL actually works in production: a mental model for operators

MySQL is a connection-oriented request processor with a pluggable storage engine. In production, that engine is almost always InnoDB. Operating MySQL at scale means managing memory pressure, write-ahead log capacity, version-chain traversal, and fsync latency. The optimizer matters, but the stalls that wake you up start inside InnoDB.

This guide maps the subsystems that fail in production. It assumes you know how to run SHOW PROCESSLIST and need to move from symptoms to root cause: why the server stalls, why replication drifts, or why a fast query suddenly saturates disk I/O.

What it is and why it matters

MySQL Community Edition uses a connection-per-thread model. Every client receives a dedicated thread for the life of the connection. Each thread allocates session memory: sort buffers, join buffers, temporary tables, and net buffers. Connection count is therefore a direct multiplier of memory consumption and internal mutex contention, not just a concurrency limit.

InnoDB manages a fixed-size buffer pool, a write-ahead redo log, undo logs for MVCC, and background threads that flush dirty pages and purge old row versions. The binary log sits above InnoDB and feeds replication. These components interact in repeatable failure archetypes. Understanding them lets you map symptoms to causes without guessing.

How it works

flowchart TD
    Client --> Conn[Connection thread]
    Conn --> Parser[Parser / Optimizer]
    Parser --> InnoDB[InnoDB Engine]
    InnoDB --> BP[Buffer Pool LRU Young/Old]
    InnoDB --> Redo[Redo Log WAL]
    InnoDB --> Undo[Undo Log MVCC Versions]
    BP --> DataFiles[Data Files]
    BP --> Cleaners[Page Cleaner Threads]
    Undo --> Purge[Purge Thread]
    Redo --> Checkpoint[Checkpoint Flush]
    InnoDB --> Binlog[Binary Log]
    Binlog --> Repl[Replication]

Connection and query lifecycle. A connection arrives, authenticates, and receives a thread. The server parses the SQL, optimizes it using table and index statistics, and executes the plan. Every data access goes through InnoDB.

Buffer pool. The buffer pool is a modified LRU cache of 16 KB data and index pages and the single strongest predictor of read performance. InnoDB divides the LRU into young and old sublists. New pages are inserted at the midpoint, by default 37 percent from the tail, controlled by innodb_old_blocks_pct. A page is promoted to the young sublist only if it is accessed again within innodb_old_blocks_time (default 1000 ms). This protects hot pages from eviction by full table scans or read-ahead.

All reads and writes go through the buffer pool. A write modifies a page in memory and marks it dirty. Page cleaner threads flush dirty pages to data files in the background.

Redo log (WAL). MySQL 8.0.30 introduced dynamic redo log capacity via innodb_redo_log_capacity, replacing the static innodb_log_file_size and innodb_log_files_in_group variables. InnoDB maintains 32 redo log files named #ib_redo{N} inside the #innodb_redo directory. Dedicated log_writer, log_flusher, and log_checkpointer threads handle WAL asynchronously since MySQL 8.0.11.

Because the redo log is circular, InnoDB must flush dirty pages to make space. The distance between the current log sequence number and the last checkpoint is the checkpoint age. When checkpoint age approaches capacity, InnoDB forces a synchronous flush. All writes stall until pages are flushed. This is a hard cliff, not gradual degradation.

Undo log and MVCC. InnoDB writes an undo log record for every row modification so the transaction can roll back. These records also enable consistent reads for other transactions. Each row carries DB_TRX_ID (last modifying transaction), DB_ROLL_PTR (pointer to the undo record), and DB_ROW_ID (cluster key if needed). Update undo logs are retained until no open transaction can see the older version. The purge thread removes obsolete rows asynchronously.

If a long-running transaction holds a read view, the purge thread cannot discard update undo logs. The history list length grows. Subsequent MVCC reads traverse longer version chains, causing progressive degradation. Undo tablespaces grow unbounded until the transaction completes.

Change buffer. The change buffer caches modifications to secondary index pages that are not in the buffer pool, merging them when those pages are later read. It can occupy up to 50 percent of the buffer pool (default 25 percent). MySQL 8.4 changed the default for innodb_change_buffering from all to none. Change buffering is not supported for descending indexes or primary keys containing descending columns.

Adaptive hash index (AHI). InnoDB builds a hash index on-demand for frequently accessed B-tree pages. It is enabled by default and partitioned into eight parts (innodb_adaptive_hash_index_parts = 8) to reduce latch contention. Under high concurrency with hot index access, the AHI’s internal rw-lock can become a severe bottleneck. Disable it dynamically:

SET GLOBAL innodb_adaptive_hash_index = OFF;

Warning: This takes effect immediately. Monitor query throughput before and after; disabling AHI can regress read performance if the hash index was active for your working set.

Durability path. A committed transaction is durable only after its redo log record is fsynced to disk. With innodb_flush_log_at_trx_commit = 1 (default), InnoDB fsyncs the redo log on every commit. If the binary log is enabled and sync_binlog = 1, the binlog is also fsynced. Storage latency dominates commit latency here. Even with idle CPU, slow fsyncs stall commits.

Replication. The binary log records data-changing statements. A replica’s I/O thread fetches events from the source to the relay log; SQL/applier threads replay them. MySQL 8.0.27 and later default to multi-threaded apply (replica_parallel_workers = 4). GTID-based replication is the recommended mode for topology management and precise lag measurement.

Where it shows up in production

Buffer pool miss and disk saturation. When the working set exceeds the buffer pool, the hit ratio drops and disk I/O saturates. Query latency increases non-linearly: slowly from 99.9 percent to 99 percent, rapidly from 99 percent to 95 percent, and catastrophically below 95 percent. Watch for Innodb_buffer_pool_reads spiking and Innodb_buffer_pool_wait_free becoming nonzero.

Redo log checkpoint stall. Write-heavy workloads fill the redo log faster than page cleaners flush dirty pages. Checkpoint age crosses 75 percent, then 85 percent, then 90 percent. InnoDB enters synchronous flushing. Write throughput collapses to near zero. CPU may be idle while commits hang on fsync.

History list explosion. A single idle transaction, such as a BEGIN without COMMIT or an unclosed ORM session, holds an MVCC read view. The purge thread stops cleaning update undo logs. trx_rseg_history_len grows past one million. Read queries slow down across the board because every consistent read traverses a longer version chain. This is silent and gradual.

Metadata lock cascade. A DDL statement such as ALTER TABLE needs an exclusive metadata lock. If a long-running transaction holds a shared metadata lock on the same table, the DDL waits. All new DML on that table queues behind the DDL. Within minutes, Threads_connected approaches max_connections and queries time out. Only one table is affected, which makes the pattern confusing.

Connection exhaustion. Slow queries or lock waits cause connections to pile up. Once Threads_connected reaches max_connections, new connections are refused instantly. This is a hard cliff. The symptom is often “MySQL is down” when the server is healthy but full.

Replication lag spiral. If the replica’s apply threads cannot keep up with the source write rate, Seconds_Behind_Source grows monotonically. Relay logs accumulate. If the source expires binlogs before the replica consumes them, replication breaks and requires a rebuild.

Tradeoffs and when to tune them

  • innodb_buffer_pool_size: Size to 60 to 80 percent of available RAM. Too small and you hit the buffer pool cliff. Too large and you starve the OS, connection buffers, and other caches. Dynamic since MySQL 5.7.5.
  • innodb_redo_log_capacity: Post-8.0.30, this is dynamic. Size it so peak checkpoint age stays below 50 percent of capacity. Pre-8.0.30, changing redo log size requires a restart.
  • innodb_io_capacity and innodb_io_capacity_max: These cap the IOPS that page cleaner threads issue. If your storage has headroom, raise innodb_io_capacity_max to help InnoDB keep up with write bursts without hitting the checkpoint cliff.
  • innodb_page_cleaners: Defaults to 4, capped at innodb_buffer_pool_instances. If dirty page flushing cannot keep up with your write rate, increasing this may help, but the root cause is often undersized redo log capacity or slow storage.
  • innodb_flush_log_at_trx_commit and sync_binlog: Setting innodb_flush_log_at_trx_commit = 2 writes to the OS page cache without fsyncing on every commit. It improves write throughput but sacrifices durability: an OS crash can lose up to one second of committed transactions. Many operators misconfigure this expecting “fast but safe.” Do not use this on a primary that cannot tolerate data loss.
  • innodb_adaptive_hash_index: If you see btr_search latch waits in SHOW ENGINE INNODB STATUS or high CPU with low throughput, disable AHI dynamically. Many high-performance operators disable it by default.
  • innodb_change_buffering: MySQL 8.4 defaults to none. If you are upgrading from 8.0 and relied on change buffering, set it explicitly to all if your workload benefits from deferred secondary index merges.
  • innodb_max_purge_lag: This setting deliberately throttles DML when the history list grows too long. It is a safety valve, not a fix for forgotten transactions.

Signals to watch in production

SignalWhy it mattersWarning sign
Checkpoint age / redo capacityPredicts synchronous flush stall> 75% of capacity
Buffer pool hit ratioWorking set fit in memory< 99% sustained for OLTP
trx_rseg_history_lenMVCC debt from purge lag> 1,000,000
Threads_runningReal concurrency vs CPU cores> 4x core count sustained
Innodb_buffer_pool_wait_freeQueries blocked waiting for free pagesNonzero sustained rate
Metadata lock waits (performance_schema.metadata_locks)Early warning before DDL/DML cascade> 3 pending on same object
Innodb_log_waitsLog buffer too small or I/O boundNonzero sustained rate
Seconds_Behind_SourceReplica data freshnessGrowing unboundedly

Seconds_Behind_Source is unreliable in several scenarios. For critical decisions, use GTID set comparison or heartbeat tables.

How Netdata helps

Netdata collects MySQL metrics from SHOW GLOBAL STATUS, INFORMATION_SCHEMA.INNODB_METRICS, and performance_schema without log parsing or a database-side agent. Use it to:

  • Correlate Threads_running with CPU, disk latency, and buffer pool hit ratio to distinguish lock contention from I/O saturation.
  • Track checkpoint age as a ratio of redo log capacity and alert before the synchronous flush cliff.
  • Monitor trx_rseg_history_len and active transaction age from INNODB_TRX to catch purge lag before reads degrade.
  • Surface metadata lock waits from performance_schema.metadata_locks that standard status variables do not expose.
  • Compare GTID sets across replicas to detect ordinary lag versus errant transactions or true divergence.
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.