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-snapshot-errors

Operations Guides

ZooKeeper snapshot errors: recovery safety at risk

zk_snapshot_error_count (new in ZooKeeper 3.9.0) increments when a snapshot-related AdminServer command fails, and zk_restore_error_count (also 3.9.0+) counts restore-command failures. On 3.5.x through 3.8.x these counters do not exist; there the equivalent signals are the server log and zk_unrecoverable_error_count. A failed scheduled snapshot is not silent: since 3.5, an IOException while writing a scheduled snapshot makes the server log Severe unrecoverable error, exiting and stop the JVM.

A single increment (from the AdminServer snapshot command) is often transient: a backup job, a brief disk-full condition, or I/O contention from a colocated batch process can make one snapshot fail, and the next snapshot cycle (taken every snapCount transactions, default 100,000) succeeds. If you page on every increment, you burn through your team’s attention on events that self-resolve. A failure of a scheduled snapshot is different: the node exits immediately, which is itself the alarm.

This metric (on 3.9.0+) is the only counter-based early warning for a corrupt snapshot that will block the next startup. The playbook: escalate to PAGE only when zk_snapshot_error_count is accompanied by zk_unrecoverable_error_count or zk_restore_error_count also incrementing. Both zk_restore_error_count and zk_unrecoverable_error_count are exposed via mntr (3.9.0+; unrecoverable_error_count since 3.6.0). Multiple error counters moving together means the failure is systemic, not transient.

This article covers what to check when zk_snapshot_error_count increments, how to distinguish transient I/O stress from corruption, and how to validate that the node can actually recover before the next time it restarts.

What this means

ZooKeeper persists state in two complementary files: a write-ahead transaction log appended on every write, and a periodic fuzzy snapshot of the entire data tree. On restart, the server loads the latest snapshot and replays any transaction log records with a zxid higher than the snapshot’s. If the snapshot is missing, incomplete, or fails checksum validation, the recovery path is broken.

zk_snapshot_error_count increments when a snapshot AdminServer command fails (ZooKeeper 3.9.0+). The most common causes are the destination filesystem being unable to accept the write — disk full, I/O error, or permission denied — and, less commonly, an OutOfMemoryError partway through serializing the data tree. Scheduled snapshots are written directly to snapshot.<zxid> without an atomic rename when fsync is disabled, so an interrupted write can leave a truncated file that only fails when it is loaded; an OutOfMemoryError during serialization normally terminates the JVM outright.

For an AdminServer snapshot-command failure the node continues serving traffic because the in-memory data tree is unaffected, and the next snapshot cycle can succeed normally. For a scheduled-snapshot failure the node does not keep serving: it logs Severe unrecoverable error, exiting and stops. In either case the recovery safety net is broken, and a node that cannot write snapshots will not come back cleanly after a restart.

A healthy ensemble takes snapshots regularly. Snapshot frequency is governed by snapCount (default 100,000 transactions), randomized slightly per server so all ensemble members do not snapshot simultaneously. If zk_snapshot_error_count keeps incrementing at the snapshot cadence, every snapshot is failing. If it increments once and stops, the cause likely resolved.

flowchart TD
    A[zk_snapshot_error_count increments] --> B{Other error counters moving?}
    B -- "unrecoverable or restore also up" --> C[PAGE: systemic failure]
    B -- "Only snapshot_error_count" --> D{Disk space on dataDir?}
    D -- "Below 20% free" --> E[Disk full: clear space or grow volume]
    D -- Adequate free --> F[Check ZK log for snapshot write errors]
    F --> G{Error is recurring?}
    G -- "Yes, every snapshot cycle" --> H[Ticket: recovery safety broken]
    G -- "No, single event" --> I[Correlate with backup or batch job]
    C --> J[Validate snapshot with zkSnapShotToolkit.sh]
    H --> J

Common causes

CauseWhat it looks likeFirst thing to check
Disk full on dataDirdf shows the snapshot partition at or near 100%; log shows IOException: No space left on device near snapshot timedf -h <dataDir> and du -sh <dataDir>/version-2/
I/O error or device degradationSnapshot write fails intermittently; iostat shows high %util, elevated await, or SCSI errors in dmesgiostat -x 1 5 on the dataDir device; dmesg -T | grep -i "i/o error"
Permission or ownership changeSnapshot write fails consistently; log shows Permission denied; recently run chown/chmod or restored from backupls -la <dataDir>/version-2/ and ps -o user= -p $(pgrep -f QuorumPeerMain)
JVM OutOfMemoryError during serializationSnapshot file exists but is truncated or fails to load; GC log shows Full GC or OOM around snapshot time; large data treeHeap usage and GC logs around the snapshot timestamp
Autopurge not keeping upautopurge.purgeInterval configured but snapshot still fails; old snapshots and txnlogs consume the partitionls -lt <dataDir>/version-2/snapshot.* | head and ls <dataLogDir>/version-2/log.* | wc -l
snapshot.trust.empty left enabled after upgradeNode starts without a snapshot and appears healthy; recovery integrity check is disabled; introduced as upgrade escape hatch in 3.5.6 (ZOOKEEPER-3056). It does not itself increment zk_snapshot_error_countps -ef | grep snapshot.trust.empty and zoo.cfg

Quick checks

All read-only and safe to run on a production node.

# Confirm which error counters are moving
echo mntr | nc localhost 2181 | grep -E "zk_snapshot_error_count|zk_restore_error_count|zk_unrecoverable_error_count"

# Confirm there is at least one recent, non-empty snapshot
ls -lhS <dataDir>/version-2/snapshot.* | head -5

# Check disk space on both dataDir and dataLogDir
df -h <dataDir> <dataLogDir>

# Snapshot and transaction log file counts vs. autopurge.snapRetainCount
ls <dataDir>/version-2/snapshot.* | wc -l
ls <dataLogDir>/version-2/log.* | wc -l

# Disk I/O health on the dataDir device
iostat -x 1 5

# Look for snapshot write failures in the ZK log
grep -iE "snapshot|IOException|No space left|Permission denied" <zk_log_dir>/zookeeper.log | tail -50

# Look for kernel-level I/O errors on the dataDir device
dmesg -T | grep -iE "i/o error|read-only|filesystem" | tail -20

# Confirm the snapshot.trust.empty escape hatch is not set (checks JVM args; also grep zoo.cfg)
ps -ef | grep -o "zookeeper.snapshot.trust.empty=[a-z]*"

# Heap pressure around snapshot time (Full GC or OOM is suspicious)
jstat -gcutil $(pgrep -f QuorumPeerMain) 1000 5

Replace <dataDir>, <dataLogDir>, and <zk_log_dir> with the paths from your zoo.cfg.

How to diagnose it

  1. Establish scope. Run mntr on every ensemble member and compare zk_snapshot_error_count. A single node incrementing usually means a node-local problem (its disk, its permissions, its heap). All nodes incrementing at the same time points at something systemic: a shared storage backend, a correlated backup job hitting every node, or a data tree size that has outgrown heap on every member.

  2. Capture the timestamp. Note the wall-clock time of the increment. Snapshot creation is logged. Cross-reference the increment timestamp with the ZK server log around that moment. The error message (IOException text, OutOfMemoryError, Permission denied) tells you the cause class directly.

  3. Correlate with other error counters. The single most important triage step:

    • zk_snapshot_error_count alone: TICKET. The node is running; recovery safety is at risk but the cluster is serving traffic.
    • zk_snapshot_error_count plus zk_restore_error_count: PAGE. The server has failed to load state during recovery, not just write it.
    • zk_snapshot_error_count plus zk_unrecoverable_error_count: PAGE. A critical internal error compounds the snapshot failure; the server’s integrity is in question.
    • zk_snapshot_error_count plus zk_digest_mismatches_count: PAGE. The data tree diverged from its checksum, which means in-memory state may already be corrupted, not just at risk.
  4. Inspect the snapshot directory. The latest snapshot file should be roughly the size of zk_approximate_data_size plus per-znode overhead. A file much smaller than the prior snapshot, or a snapshot file with a timestamp older than snapCount transactions worth of writes, indicates the last successful snapshot was a while ago. Look for .tmp or partially written files that indicate a write interrupted mid-stream.

  5. Validate the latest snapshot before relying on it. zkSnapShotToolkit.sh (bundled with ZooKeeper) reads a snapshot file and dumps its contents. If it parses cleanly, the snapshot is structurally valid. If it throws an EOFException or Unreasonable length error, the snapshot is corrupt and the node will fail to recover from it. The toolkit’s flags are -d (dump each znode’s data) and -json (json output).

  6. Check whether snapshot.trust.empty is set. This property (zookeeper.snapshot.trust.empty, introduced in 3.5.6 and 3.6.0 as an upgrade escape hatch, ZOOKEEPER-3056) tells ZooKeeper to start even when no snapshot exists but transaction logs are present. Leaving it set after upgrade defeats the snapshot integrity check entirely. A node with this property set may appear to recover but with stale or empty state. Remove it as soon as a valid snapshot exists.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
zk_snapshot_error_count (3.9.0+)Counter of AdminServer snapshot-command failures; on 3.5.x-3.8.x watch the log for Severe unrecoverable error, exitingAny increment
zk_restore_error_count (3.9.0+)Counter of AdminServer restore-command failures; on 3.5.x-3.8.x watch the log for Unable to load database on diskAny increment alongside snapshot errors
zk_unrecoverable_error_countCritical internal errorsAny increment, full stop
zk_digest_mismatches_countData tree diverged from expected checksumAny increment; data may already be corrupted
zk_approximate_data_sizeDrives snapshot size and serialization costSustained growth correlates with OOM-during-snapshot risk
zk_znode_countSnapshot time scales linearly with tree sizeUnbounded growth
zk_uptimeDistinguishes cold-start noise from runtime failureResets indicate unexpected restart
OS disk usage on dataDirSnapshot writes fail when the partition fillsBelow 20% free
zk_fsynctime p99Slow disk affects snapshot writes tooTrending upward on the same device

Fixes

Disk full on dataDir

Free space first. The safest immediate action is to confirm autopurge is enabled and let it run: autopurge removes old snapshots and transaction logs down to autopurge.snapRetainCount (default 3). Do not manually delete snapshots or logs by hand unless you understand which ones are needed for recovery. The minimum set is the latest snapshot plus all transaction logs with a zxid greater than that snapshot’s. Removing the wrong file breaks recovery.

If autopurge is not configured (autopurge.purgeInterval = 0), set it now. See ZooKeeper autopurge not configured: snapshots and logs filling the disk over months.

If the partition is chronically undersized, grow the volume. Do not use this as a permanent fix without also addressing why snapshot sizes are growing. See ZooKeeper data size growing: using ZooKeeper as a database is an anti-pattern.

I/O errors or device degradation

Move dataDir to a healthy device. If the device is throwing kernel-level errors, the filesystem is likely already damaged. After moving the directory, the node will perform a SNAP sync from the leader on restart to rebuild its snapshot and log state. See ZooKeeper follower doing a SNAP sync: full snapshot transfer and its blast radius.

Permission or ownership

If a recent chown, chmod, or restore from backup changed ownership of the version-2 directory, the ZooKeeper user can no longer write snapshots. Restore the correct owner and mode. The directory should be owned by the user running QuorumPeerMain and writable by that user.

JVM OOM during snapshot

This is the most dangerous cause because the snapshot file is written but truncated. Heap pressure comes from one of three sources: data tree bloat (zk_znode_count and zk_approximate_data_size climbing), watch table growth, or session table bloat. Check heap usage with jstat -gcutil and the GC log. Increase heap (after the rolling restart) and address the underlying growth. See ZooKeeper avg_latency hides write stalls: why the headline number lies for related heap-pressure patterns.

Corrupt snapshot

If zkSnapShotToolkit.sh cannot parse the latest snapshot, you have two options:

  1. Force a SNAP sync from the leader. Stop the node, move the entire version-2 directory aside (do not delete it; keep it for forensics), and restart. The node will request a full snapshot from the leader. This is the standard recovery path for a single corrupt node. See ZooKeeper follower doing a SNAP sync: full snapshot transfer and its blast radius.

  2. Repair the transaction log with zkTxnLogToolkit.sh. If the failure is a CRC error in the transaction log rather than the snapshot, the bundled zkTxnLogToolkit.sh can rewrite the log with recalculated CRCs in recovery mode (-r, with -y for non-interactive fix-all). It writes a .fixed file next to the original (-r for recover mode, -y for non-interactive fix-all). This is recovery work, not first-line triage.

Do not move the version-2 directory aside on more than one node at a time. Recovery depends on at least one healthy member having a valid snapshot.

Prevention

  • Monitor zk_snapshot_error_count on every member, every scrape. Treat any increment as a TICKET. Escalate to PAGE only when paired with zk_unrecoverable_error_count or zk_restore_error_count.
  • Track snapshot recency. If your monitoring can read the filesystem, alert when the newest snapshot file is older than snapCount worth of writes plus a safety margin. A node that stops snapshotting is a node whose recovery safety has quietly gone stale.
  • Enable autopurge. autopurge.purgeInterval (hours) and autopurge.snapRetainCount (default 3) prevent disk exhaustion and recovery time creep. See ZooKeeper autopurge not configured: snapshots and logs filling the disk over months.
  • Keep dataDir and dataLogDir on separate devices. Snapshot writes and transaction log fsyncs competing for the same disk is a common root cause of write stalls that compound into snapshot failures.
  • Remove snapshot.trust.empty after upgrade. It exists to bridge 3.4.x to 3.5.x+ upgrades. Leaving it set disables the snapshot integrity check. Verify it is unset on every node.
  • Size heap to the data tree. Snapshot serialization allocates buffers proportional to tree size. A heap sized for steady-state reads but not for snapshot time will OOM at the worst moment.
  • Track snapshot size over time. Growing snapshots mean a growing data tree, longer recovery times, and higher OOM-during-snapshot risk. See ZooKeeper data size growing: using ZooKeeper as a database is an anti-pattern.
  • Patch against AdminServer snapshot/restore CVEs. If you are running ZooKeeper 3.9.x before 3.9.4, patch two AdminServer issues: CVE-2024-51504 (IP-authentication bypass in the AdminServer via X-Forwarded-For header spoofing, fixed in 3.9.3) and CVE-2025-58457 (insufficient permission check on the AdminServer snapshot and restore commands, fixed in 3.9.4). Upgrade to 3.9.4 or later, or disable the endpoints via admin.snapshot.enabled=false and admin.restore.enabled=false (admin.enableServer=false disables the whole AdminServer).

How Netdata helps

  • Per-second scraping of zk_snapshot_error_count catches single increments that slower scrapers miss entirely. A minute-level scrape can fold a transient backup-induced failure and a real corruption event into the same data point.
  • Correlating zk_snapshot_error_count with zk_unrecoverable_error_count, zk_restore_error_count, and zk_digest_mismatches_count in one view makes the PAGE-versus-TICKET decision immediate. Multi-counter increments are the systemic-failure signature.
  • ML anomaly detection on zk_approximate_data_size, zk_znode_count, and heap metrics surfaces data-tree-bloat and heap-pressure conditions that produce OOM-during-snapshot before the snapshot actually fails.
  • Disk usage and disk I/O metrics on the same dashboard as the ZooKeeper metrics let you confirm disk-full or I/O-error causes without switching tools.
  • Cold-start suppression keyed off zk_uptime prevents brief snapshot failures during recovery from a planned restart from firing as a real incident.