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 / clickhouse / clickhouse-mutations-blocking-merges

Operations Guides

ClickHouse mutations silently blocking merges: the hidden cause of part growth

You are watching part counts climb on a ClickHouse node. system.merges shows active background tasks, health checks return Ok, and the log shows no mutation errors. Yet inserts are slowing and MaxPartCountForPartition is trending toward the delay threshold. The pool looks busy, so merges should be keeping up. They are not: some of those busy slots are mutations, and mutations starve merges silently.

ClickHouse implements ALTER UPDATE and ALTER DELETE as mutations: asynchronous background jobs that rewrite matching data parts. Mutations and regular merges share the same BackgroundMergesAndMutationsPool. A mutation holds one pool slot for minutes to hours. If the backlog is large enough, merges fall behind insert-driven part creation and the system drifts toward the Too many parts threshold without logging a mutation-specific error.

By default, a mutation starts only when at least number_of_free_entries_in_pool_to_execute_mutation slots in the pool are free. The default is 20 on a 32-slot pool. On a busy server with steady inserts, merges rarely free that many slots, so mutations sit while parts accumulate.

What this means

Every INSERT creates immutable data parts. Background merges consolidate smaller parts to keep query performance stable and avoid file descriptor exhaustion. ALTER UPDATE and ALTER DELETE are not in-place edits; they create mutation tasks that rewrite every matching part. Each mutation consumes one slot in the shared pool, runs to completion or until killed with KILL MUTATION, and survives server restarts.

The default pool size is background_pool_size (16) multiplied by background_merges_mutations_concurrency_ratio (2), giving 32 slots. On an active node, merges keep the pool occupied, mutations cannot start, and the queue grows invisible to operators who only watch part counts.

When a mutation finally runs, it monopolizes its slot. Regular merges are starved, inserts create new parts that are not consolidated, and part count climbs. system.merges shows active tasks, but the work is mutation, not merge.

flowchart TD
    A[ALTER UPDATE/DELETE creates mutation] --> B[Mutation waits for pool slot]
    B --> C[Mutation occupies pool slot]
    C --> D[Regular merges starved]
    D --> E[Parts accumulate from inserts]
    E --> F[DelayedInserts then RejectedInserts]
    C --> G[system.merges shows is_mutation=1]
    G --> H[Operator misses the blockage]

Common causes

CauseWhat it looks likeFirst thing to check
Heavy ALTER UPDATE/DELETE on a large tablesystem.mutations shows is_done = 0 with parts_to_do not decreasingSELECT * FROM system.mutations WHERE is_done = 0
Mutation queue backlogMultiple mutations queued per table; each runs sequentiallySELECT database, table, count() FROM system.mutations WHERE is_done = 0 GROUP BY database, table
Pool slot monopolized by a long mutationsystem.merges shows is_mutation = 1 with high elapsedSELECT is_mutation, elapsed, progress FROM system.merges ORDER BY elapsed DESC
Replicated replica lagging on mutationsOne replica has mutations stuck while others are caught upQuery system.mutations on each replica or use clusterAllReplicas
Insufficient pool headroom for burst workloadBackgroundMergesAndMutationsPoolTask near pool size even without mutationsSELECT metric, value FROM system.metrics WHERE metric LIKE 'Background%Pool%'

Quick checks

-- Count incomplete mutations
SELECT count(*) AS running_mutations FROM system.mutations WHERE is_done = 0;
-- List active mutations with remaining work
SELECT database, table, mutation_id, command, create_time, parts_to_do, latest_fail_reason
FROM system.mutations
WHERE is_done = 0
ORDER BY create_time;
-- Distinguish merges from mutations in the pool
SELECT
  count(*) AS active_tasks,
  countIf(is_mutation = 1) AS mutations,
  countIf(is_mutation = 0) AS regular_merges
FROM system.merges;
-- Check pool utilization
SELECT metric, value FROM system.metrics WHERE metric LIKE 'Background%Pool%';
-- Find worst partition part counts
SELECT database, table, partition_id, count(*) AS parts_in_partition
FROM system.parts
WHERE active = 1
GROUP BY database, table, partition_id
ORDER BY parts_in_partition DESC
LIMIT 10;
-- Check if inserts are already suffering
SELECT event, value FROM system.events WHERE event IN ('DelayedInserts', 'RejectedInserts');
-- Check for failed mutations that will never complete
SELECT database, table, mutation_id, latest_fail_reason
FROM system.mutations
WHERE latest_fail_reason != '';
-- Check mutation status across a cluster
SELECT hostName() AS replica, database, table, mutation_id, parts_to_do
FROM clusterAllReplicas('your_cluster_name', system.mutations)
WHERE is_done = 0
ORDER BY replica, create_time;

How to diagnose it

  1. Confirm part count is growing. Query system.parts for active parts per partition twice, 60 seconds apart. If the worst partition is growing by more than a few parts per minute and regular merges are not completing, the merge subsystem is falling behind.

  2. Inspect what is running in the pool. Query system.merges. Look for is_mutation = 1. If mutations account for most or all active tasks, they are the blockage. Note elapsed and progress. A mutation with progress stuck for minutes is likely the culprit.

  3. Inspect the mutation queue. Query system.mutations where is_done = 0. Check parts_to_do. If it is flat or increasing over a 5-minute window, the mutation is not making progress. Check latest_fail_reason; a non-empty value records the most recent failure. It may be retryable and can clear on the next attempt, so also check whether parts_to_do advances before treating it as permanent.

  4. Measure pool saturation. Query system.metrics for BackgroundMergesAndMutationsPoolTask. If this value is at or near the pool size, every slot is occupied. When mutations hold those slots, regular merges cannot enter the pool.

  5. Check insert health. Query system.events for DelayedInserts and RejectedInserts. Even small increments of DelayedInserts confirm that part accumulation is already affecting the write pipeline.

  6. Verify cross-replica state for replicated tables. Run the clusterAllReplicas query against system.mutations. If one replica is mutation-blocked while others are healthy, the issue is local to that replica’s background pool or disk.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
system.mutations.parts_to_doTracks remaining work per mutationFlat or increasing over 30 minutes
system.merges.is_mutationDistinguishes mutation tasks from merges in the poolMutations dominate while regular merges drop
BackgroundMergesAndMutationsPoolTaskReveals total pool saturationSustained near pool size for more than 10 minutes
MaxPartCountForPartitionMeasures distance to insert throttlingMore than 50% of parts_to_delay_insert
DelayedInserts / RejectedInsertsConfirms write-path impactAny sustained increase
system.mutations.latest_fail_reasonIdentifies recent mutation failuresNon-empty string, especially when parts_to_do also stalls
Per-replica mutation lagCatches asymmetric stalls in clustersSame mutation is_done on some replicas but not others

Fixes

Kill a non-critical or stuck mutation

Stop a stuck or mistaken mutation with KILL MUTATION:

KILL MUTATION WHERE database = 'db_name' AND table = 'table_name' AND mutation_id = 'mutation_id';

Warning: Killing a mutation is disruptive. Parts already rewritten remain changed; the mutation does not roll back completed work. Subsequent merges and mutations process those parts normally. Use this only when the mutation is safe to discard.

Lower the mutation idle-slot gate

number_of_free_entries_in_pool_to_execute_mutation controls how many slots must be free before a mutation starts. This is a MergeTree-level setting: change it per table with ALTER TABLE ... MODIFY SETTING, or set it globally in the server configuration. Lowering it lets mutations start with fewer idle slots, which can help a critical mutation finish so merges can resume.

Tradeoff: A lower gate lets mutations start sooner, but mutations still consume pool slots and starve merges while they run. This is a temporary relief valve, not a fix for chronic mutation overload.

Increase background pool capacity

If CPU and I/O headroom exist, raise background_merges_mutations_concurrency_ratio (or background_pool_size on older configurations) to add slots. These settings can be increased at runtime; lowering either requires a server restart.

Tradeoff: More threads increase disk and CPU contention. Verify that storage latency and CPU utilization are below 70% before raising the pool size, or you may turn merge starvation into I/O saturation.

Reduce mutation frequency

Avoid treating ClickHouse like an OLTP store. Batch changes instead of issuing many small ALTER UPDATE statements. If your version supports lightweight deletes and the use case fits, prefer DELETE FROM over ALTER DELETE; lightweight deletes mark rows with a hidden column rather than rewriting parts immediately, though they still require eventual cleanup merges.

For replicated tables: clear per-replica blockages

Each replica processes mutations independently. If one replica is mutation-blocked while others are healthy, run the diagnostic queries locally on that replica and kill the stuck mutation there.

Do not restart the server to clear a mutation. Mutations are persisted and resume after restart, so a restart only prolongs the stall.

Prevention

  • Monitor mutations as a first-class signal. A dashboard that shows system.parts but not system.mutations will miss the root cause of merge starvation.
  • Alert on mutation stagnation. Alert when parts_to_do is not decreasing over a 15-minute window, and when any mutation has a non-empty latest_fail_reason.
  • Reserve pool headroom. Target background pool utilization below 70% during normal operation. This leaves room for mutations without choking merges.
  • Review schema-change patterns. Flag application code or ETL pipelines that issue frequent ALTER UPDATE/DELETE. ClickHouse mutations are designed for occasional bulk corrections, not continuous row-level updates.
  • Test mutation duration. Before running a mutation on a billion-row table, test it on a representative partition and measure elapsed time and disk I/O.

How Netdata helps

  • Correlate active mutation count from system.mutations with active part count and merge pool utilization. A flat mutation line alongside a climbing part-count line is the classic starvation signature.
  • Alert on the ratio of mutation tasks to total background tasks. When mutations dominate the pool, part growth follows within minutes.
  • Combine DelayedInserts rate with mutation backlog to distinguish mutation blocking from insert overload or poor batching.
  • Surface per-replica mutation states in clustered deployments to catch asymmetric stalls that cluster-wide averages hide.
The Netdata solution

ClickHouse monitoring with Netdata

Netdata monitors ClickHouse with per-second metrics and ML anomaly detection. Track merge debt, memory usage, replication lag, Keeper/ZooKeeper saturation, and disk headroom against the host signals that drive them.