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 / zookeeper / zookeeper-digest-mismatch

Operations Guides

ZooKeeper data tree digest mismatch: detecting corruption before it spreads

When zk_digest_mismatches_count increments on a ZooKeeper node, the in-memory data tree on that node has diverged from the checksum ZooKeeper expects. This is a data-integrity alarm, not a performance signal. Clients reading from that node may be receiving wrong answers, and if the divergence came from a ZAB replication bug rather than local corruption, the same divergence may be propagating to other ensemble members.

The digest feature (enabled by default since ZooKeeper 3.6.0) computes a running checksum of the entire data tree using an incremental adHash scheme. On every write, ZooKeeper updates the hash and compares it against the expected digest attached to the transaction. When the comparison fails, the counter ticks up and ZooKeeper logs a “First digest mismatch on txn” message. A single increment is enough to page.

What this means

ZooKeeper holds its entire data tree in JVM heap. Every znode, its data, its ACL, its children list: all live in memory and replicate across the ensemble via ZAB. There is no per-read checksum validation and no on-disk integrity scan at runtime. The adHash digest is the only continuous in-process integrity check ZooKeeper runs.

The digest is incremental: when a znode changes, ZooKeeper computes current_hash = current_hash + hash(new_data) - hash(old_data). The hash function is CRC-based: fast, not collision-resistant, but adequate for detecting bit flips and dropped transactions. The expected digest for each committed transaction is computed by the leader and attached to the proposal. Followers compare their locally-computed digest against this expected value when they apply the commit. Nodes under /zookeeper (the internal subtree, including quota stats) are excluded from the calculation because their bookkeeping can legitimately diverge.

When the comparison fails:

  1. The DIGEST_MISMATCHES_COUNT counter (exposed via mntr as zk_digest_mismatches_count) increments.
  2. ZooKeeper logs the mismatched zxid and the expected vs actual digest values.

The node keeps running. It does not crash, does not stop serving reads, and does not drop out of the ensemble on its own. Without an explicit alert on the delta, a diverged node can serve stale or corrupted data indefinitely while appearing healthy to shallow liveness checks like ruok.

One logging gotcha: the mismatch log line prints the TxnDigest object as the “expected digest” (for example, “expected digest is 2,10124071835”) while the actual digest is a single number, making the two values hard to compare by eye. This is tracked as ZOOKEEPER-4845 and is still open.

Common causes

CauseWhat it looks likeFirst thing to check
Memory error (bit flip, DIMM fault)Single node, one increment, no corresponding log corruption on other nodes, no recent restart or syncECC error counts from edac-util or IPMI SEL; whether the kernel logged a machine check
ZAB replication bug (DIFF sync with empty committedLog)Single follower after it rejoined or after leader restart; mismatch appears immediately after sync completesZooKeeper version against ZOOKEEPER-4352 (3.6.3, 3.7.0) and ZOOKEEPER-4444 (3.6.3 through 3.8.1); leader’s minCommittedLog state
Disk corruption in snapshot or txnlogMismatch on startup during snapshot or log replay, or after a hard crash; may coincide with zk_snapshot_error_count or zk_restore_error_count incrementsdmesg for disk errors; zk_snapshot_error_count and zk_restore_error_count on the same node
Follower restart with stale on-disk stateFollower fails to synchronize after being killed and restarted twice; “Digests are not matching” in the log, follower may serve deleted znodesWhether the node was restarted multiple times in quick succession; ZooKeeper version against ZOOKEEPER-4444

Quick checks

These are all read-only. Run them on every ensemble member, not just the one that alerted.

# Check the mismatch counter on each node
echo mntr | nc localhost 2181 | grep zk_digest_mismatches_count

# Check for the other integrity signals that travel with digest mismatches
echo mntr | nc localhost 2181 | grep -E 'zk_(unrecoverable_error|snapshot_error|restore_error)_count'

# Confirm which node is the leader (leader-only metrics only appear there)
echo mntr | nc localhost 2181 | grep zk_server_state

# Pull the digest history associated with zxids (3.6.0+)
echo hash | nc localhost 2181

# Look for the mismatch log lines on the affected node
grep -i "digest" /var/log/zookeeper/zookeeper.log | tail -50

# Check for hardware memory errors on the host
edac-util -v     # or: ipmitool sel list | grep -i memory

# Check for disk-level errors that could have corrupted snapshot or txnlog
dmesg -T | grep -iE 'error|medium|failed|ecc|mce' | tail -30

# Compare the current zxid across all ensemble members to see if one is behind
# (mntr does not expose the zxid; the Zxid line comes from srvr)
echo srvr | nc localhost 2181 | grep -E 'Zxid|Mode'

If hash is not whitelisted you will get “hash is not executed because it is not in the whitelist.” Add it to 4lw.commands.whitelist if you need it, or use the AdminServer /commands/hash endpoint on port 8080 instead. The same whitelist caveat applies to mntr since ZooKeeper 3.5.3.

How to diagnose it

The single most important diagnostic question is: how many nodes incremented?

flowchart TD
    A["zk_digest_mismatches_count incremented"] --> B{"Which nodes incremented?"}
    B -->|"One node"| C{"Did it increment on startup?"}
    B -->|"Multiple nodes"| D["Stop. Escalate immediately."]
    C -->|"Yes, during load or replay"| E["Disk corruption in snapshot or txnlog"]
    C -->|"No, at runtime"| F{"Recent follower sync or restart?"}
    F -->|"Yes"| G["ZAB replication bug or stale on-disk state"]
    F -->|"No"| H["Memory error. Check ECC counts."]
    E --> I["Rebuild node from healthy snapshot"]
    G --> I
    H --> I
    D --> J["Likely ZAB bug. Stop writes, preserve data, file issue with zxids."]
  1. Collect the counter from every node. Do not trust a single-node scrape. A digest mismatch on one follower is a local problem. A digest mismatch on the leader, or on multiple followers simultaneously, is an ensemble problem.

  2. Note whether the increment happened at startup or at runtime. A mismatch during snapshot or txnlog replay points to on-disk corruption: the file was written correctly by ZK but the bytes on disk no longer match. A mismatch at runtime, after the tree was already loaded, points to either a memory error or a ZAB-layer inconsistency introduced during sync.

  3. Correlate with sync events. If the mismatch appeared immediately after a follower rejoined the ensemble or after the leader restarted, check the ZooKeeper version against the known ZAB bugs. ZOOKEEPER-4352 affects 3.6.3 and 3.7.0: when the leader has minCommittedLog=0 (empty in-memory committed log), it sends only a DIFF to a rejoining follower instead of a full snapshot, leaving the follower with an inconsistent tree. ZOOKEEPER-4444 affects 3.6.3 through 3.8.1: a follower killed and restarted twice fails to synchronize and produces “Digests are not matching” while serving stale or deleted znodes.

  4. Check the hardware. If only one node is affected and there is no recent sync or restart, treat it as a suspected memory error until proven otherwise. Check ECC error counts, check dmesg for machine-check exceptions, and check whether the host is bare metal with faulty DIMMs or a VM on a noisy host.

  5. Capture the mismatched zxid from the log before you touch anything. The log line contains the transaction at which the divergence was detected. If you end up filing a ZooKeeper issue or doing forensic comparison of snapshots, you need this number.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
zk_digest_mismatches_countThe primary integrity signal. Any increment means the in-memory tree diverged from the expected checksum.Any increase() greater than 0. Alert on the delta, never the absolute value.
zk_unrecoverable_error_countCo-travels with digest mismatches when the corruption is severe enough that ZK considers the state unrecoverable.Any increment. PAGE unconditionally.
zk_snapshot_error_countIndicates snapshot creation or loading failed. If a digest mismatch appears alongside snapshot errors, disk corruption is the likely root cause.Any increment.
zk_restore_error_countIndicates recovery failed on startup. Pairs with digest mismatches that fire during log or snapshot replay.Any increment.
Zxid via srvr (per node)Comparing zxids across the ensemble reveals whether the diverged node is behind, ahead, or at the same transaction position as peers.A node whose zxid does not match peers after sync completes.
zk_server_stateConfirms which node is leader, which is critical because leader-side digest mismatches are far more dangerous than follower-side.Unexpected role transitions around the time of the mismatch.

Fixes

There is no in-place repair for a diverged data tree. The correct response is to remove the node from the ensemble and rebuild its state from a known-good source.

Single-node mismatch: eject and rebuild

If exactly one node incremented and the rest of the ensemble is clean:

  1. Stop the ZooKeeper process on the affected node. This prevents it from serving further stale or corrupted reads.
  2. Preserve the data directory for forensics. Copy dataDir and dataLogDir aside before you wipe them. If this turns out to be a ZAB bug rather than local corruption, the maintainers will want the corrupted snapshot and txnlog.
  3. Wipe the data directories. Remove the contents of dataDir/version-2/ and dataLogDir/version-2/ (or wherever your dataDir and dataLogDir point). This is destructive. Confirm you have a forensic copy from step 2 before proceeding.
  4. Restart the node. It will rejoin the ensemble and perform a full sync from the leader (SNAP sync). The leader serializes its complete data tree and sends it. The rebuilt node’s tree will match the leader’s, and the digest will be correct.
  5. Verify. After sync completes, confirm zk_digest_mismatches_count is zero on the rebuilt node and that its zxid matches the leader.

Do not attempt to patch the diverged znodes by hand. The node’s state is already known to be wrong; rebuilding from a healthy peer is the only reliable path.

If the node that mismatched is the leader, force a leader election first (stop the leader, let the ensemble elect a new one from the clean followers), then rebuild the former leader as a follower.

Multi-node mismatch: stop and escalate

If the mismatch appears on the leader, or on more than one follower, do not rebuild individual nodes. The divergence is likely coming from the replication layer itself, and rebuilding nodes from a leader that is producing bad digests will propagate the corruption.

  1. Stop writes if you can. If dependent systems (Kafka, HBase) can be paused or failed over to a secondary coordination path, do so. Every additional transaction on a diverged ensemble risks wider inconsistency.
  2. Preserve all data directories on all nodes. This is your forensic evidence.
  3. Identify the most-trusted node. Usually this is the node with the highest committed zxid that has not logged a digest mismatch. If you cannot identify one with confidence, do not pick arbitrarily.
  4. Escalate. Multi-node digest divergence is a ZAB-level event. File a ZooKeeper issue with the mismatched zxids, the versions, and the sync history. If you have a support relationship with a vendor distribution, engage it.

Version-specific bugs

If your version matches a known ZAB bug, the rebuild procedure above is the workaround, but you should also plan an upgrade:

  • ZOOKEEPER-4352 (3.6.3, 3.7.0): Restarting the leader to rebuild its in-memory committed log before the follower rejoins avoids the empty-committedLog DIFF path.
  • ZOOKEEPER-4444 (3.6.3 through 3.8.1): Deleting the data directory on the affected follower and letting it re-sync is the documented workaround. No fix version has been assigned for this issue.
  • ZOOKEEPER-4845 (open): The confusing log format is not a data-integrity bug, but it makes forensics harder. The “expected digest” field in the log is a TxnDigest object representation, not a single comparable number.

Prevention

  • Alert on the delta of zk_digest_mismatches_count, not the absolute value. The counter is monotonic within a process lifetime and resets on server restart; any increment is a PAGE.
  • Monitor zk_unrecoverable_error_count, zk_snapshot_error_count, and zk_restore_error_count alongside the digest counter. A digest mismatch with no other error counters moving suggests memory or ZAB; a digest mismatch with snapshot or restore errors suggests disk.
  • Run ZooKeeper on hosts with ECC memory. The adHash digest catches single-bit flips that non-ECC memory will not report on its own. Without ECC, the digest mismatch may be your first and only indication of a failing DIMM.
  • Keep dataLogDir on dedicated, healthy storage. Disk corruption in the txnlog or snapshot is a root cause most preventable by operational hygiene.
  • Stay current on patch releases. The ZAB sync bugs that produce false-positive digest mismatches (ZOOKEEPER-4352, ZOOKEEPER-4444) are not yet resolved in any released version. Running old 3.6.x or 3.7.x in production means carrying known data-divergence bugs.
  • Whitelist the hash four-letter word, or use the AdminServer equivalent. When a mismatch fires, you want the digest history available immediately, not after a config change and restart.

How Netdata helps

  • Correlation across ensemble members in a single view lets you answer the critical triage question (one node vs multiple nodes) without manually scraping each node and comparing outputs. Per-second collection means a single increment is visible within a second of occurring.
  • Co-display of zk_server_state, zk_zxid, and zk_digest_mismatches_count lets you see whether a mismatch followed a sync event, a leader election, or a restart, which is the fastest path to distinguishing a ZAB bug from local corruption.
  • Integration with host-level signals (ECC errors from kernel logs, disk error counters, dmesg patterns) means the hardware-cause hypothesis can be confirmed or eliminated from the same dashboard, without switching tools mid-incident.