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-tls-handshake-failures

Operations Guides

ZooKeeper TLS handshake failures: unsuccessful handshakes and non-mTLS connections

When ZooKeeper is configured for TLS, the TLS layer becomes a new failure surface between clients and the ensemble. A spike in zk_unsuccessful_handshake or zk_tls_handshake_exceeded means clients are attempting TLS connections that never complete. If your environment requires mutual TLS, any non-zero value in zk_non_mtls_remote_conn_count means a client bypassed mTLS entirely.

These failures are noisy in a particular way. The client sees a connection timeout or a refused handshake, while the server logs an “Unsuccessful handshake” entry that does not always explain why. Certificate expiry, cipher mismatch, hostname verification failure, and low host entropy all produce similar surface symptoms. The fix is rarely the server itself; it is usually a client configuration error, an expired credential, or a monitoring tool sending plaintext to a secure port.

What this means

TLS in ZooKeeper is layered on top of the Netty connection factory. When a client connects to the secure client port, ZooKeeper must complete a TLS handshake before it can process any session establishment. If the handshake fails, whether from a bad certificate, a cipher mismatch, or plaintext bytes sent to a TLS port, the connection is dropped before a session is ever created.

The signals to track:

  • zk_unsuccessful_handshake (3.7+): counter of TLS handshakes that failed to complete. Increments whenever a client connects to the secure port but cannot negotiate TLS successfully.
  • zk_tls_handshake_exceeded (3.6+): counter of TLS handshakes that exceeded the configured handshake timeout. This is the slow-handshake signal. The client started a handshake but the server could not finish it in time. Low host entropy is a classic cause.
  • zk_non_mtls_remote_conn_count (3.7+): count of remote connections that completed without mutual TLS. In an mTLS-required environment this should be zero. A non-zero count means a client connected without presenting a client certificate, which indicates either a misconfigured port or a policy bypass.

A critical caveat: certificate expiry is a silent, total outage once every client uses TLS. ZooKeeper does not expose certificate expiry as a metric. You must check it externally with openssl or an equivalent tool. An expired server certificate causes every TLS client to fail the handshake, but zk_unsuccessful_handshake will not tell you “the cert expired.” It will just count the failures.

flowchart TD
    A["Handshake failures
on secure port"] --> B{"Cert valid?"} B -->|No| C["Renew and reload cert"] B -->|Yes| D{"Plaintext bytes
to TLS port?"} D -->|Yes| E["Fix client port
or use TLS client"] D -->|No| F{"Handshakes timing out?"} F -->|Yes| G["Check host entropy"] F -->|No| H["Cipher or SAN mismatch"]

Common causes

CauseWhat it looks likeFirst thing to check
Expired server or client certificateEvery TLS client fails handshake simultaneously; zk_unsuccessful_handshake spikesopenssl s_client -connect host:secureClientPort and inspect notAfter
Plaintext client hitting secure portNotSslRecordException in server log; monitoring tools (ruok/mntr via nc) failClient connection string port number
Cipher or protocol mismatchHandshake fails on specific JDK versions or distributions; works elsewhereTLS protocol version and cipher list on both ends
Hostname verification failureClient connects, cert is valid, but SAN does not match hostname the client usedCertificate SAN entries versus client connect string
Low host entropyzk_tls_handshake_exceeded increments; handshakes stall then complete or time out/proc/sys/kernel/random/entropy_avail
Wrong client TLS propertyClient logs “Unsuccessful handshake with session 0x0” despite correct certClient JVM property: zookeeper.client.secure not zookeeper.ssl.client.enable

Quick checks

These are read-only and safe to run during an incident. Adjust the secure client port and log path to match your deployment. If only the secure port is enabled and the plaintext port (2181) is closed, use a TLS-capable client for mntr instead of nc.

# Check TLS handshake counters via mntr
echo mntr | nc localhost 2181 | grep -E 'zk_unsuccessful_handshake|zk_tls_handshake_exceeded|zk_non_mtls'

# Verify the server certificate is not expired
echo | openssl s_client -connect localhost:2281 -showcerts 2>/dev/null | openssl x509 -noout -enddate -subject -issuer

# Check available host entropy (low values can stall TLS handshakes)
cat /proc/sys/kernel/random/entropy_avail

# Confirm which port is the secure client port versus plaintext
grep -E 'secureClientPort|clientPort|portUnification' /etc/zookeeper/zoo.cfg

# Check whether mTLS is required
grep 'ssl.clientAuth' /etc/zookeeper/zoo.cfg

# Look for TLS-specific errors in the server log
grep -E 'Unsuccessful handshake|NotSslRecordException|SSLHandshakeException' /var/log/zookeeper/zookeeper.log | tail -30

# Test a TLS connection from the server host to itself
# Add -cert/-key flags if mTLS is required
echo ruok | openssl s_client -connect localhost:2281 -quiet 2>/dev/null

How to diagnose it

  1. Confirm the scope. Is zk_unsuccessful_handshake incrementing on all ensemble members or just one? A single-node pattern points to a node-specific cert or config problem. All nodes points to a fleet-wide cert expiry or a widespread client misconfiguration.

  2. Check certificate validity first. Cert expiry is the highest-priority cause because it is a silent total outage. Run openssl s_client against the secure port on each node and inspect notAfter. If the cert expired, no amount of server tuning will fix the handshakes until the cert is renewed and reloaded.

  3. Inspect the server log for the specific failure. “Unsuccessful handshake” is the generic signal. The log line near it usually contains the real cause: NotSslRecordException (plaintext to TLS port), SSLHandshakeException (cert or cipher problem), or a timeout (entropy or network). Filter the log by the failing client IP if known.

  4. Distinguish client misconfiguration from a server problem. If a single client or client type fails while others succeed, the server is fine. The failing client is either using the wrong port, the wrong TLS property, an expired client cert, or a JDK with incompatible cipher defaults.

  5. Verify mTLS enforcement. If zk_non_mtls_remote_conn_count is non-zero in an mTLS-required environment, identify which clients connected without a client certificate. Check whether port unification is enabled (which accepts both TLS and plaintext on one port) and whether ssl.clientAuth is set to need.

  6. Check host entropy. If zk_tls_handshake_exceeded is incrementing but handshakes eventually succeed, the host may be starved for entropy. This is more common on virtualized hosts and containers without a hardware RNG.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
zk_unsuccessful_handshake (3.7+)Counts failed TLS negotiations on the secure portAny sustained non-zero rate
zk_tls_handshake_exceeded (3.6+)Counts handshakes that timed out during negotiationNon-zero rate indicates entropy, CPU, or network pressure
zk_non_mtls_remote_conn_count (3.7+)Remote connections that skipped mTLSNon-zero in mTLS-required environments
zk_non_mtls_local_conn_count (3.7+)Local connections without mTLSOften acceptable; investigate if policy requires mTLS for localhost
Certificate notAfterZooKeeper does not expose cert expiry as a metricAny cert within 30 days of expiry
/proc/sys/kernel/random/entropy_availLow entropy stalls TLS handshakesSustained values below 200

Fixes

Expired certificate

Renew the certificate in your keystore and restart the affected ZooKeeper node. If the cert is managed by an external CA or cert-manager, trigger the renewal and verify the keystore was updated before restarting. Older ZooKeeper versions do not hot-reload TLS certificates, so a rolling restart is required.

For client certificates the same applies. The client must renew and reload its keystore. An expired client cert produces the same “Unsuccessful handshake” on the server side.

Plaintext client hitting the secure port

The most common offender is a monitoring tool using nc or a raw TCP socket to send ruok or mntr to what is now the secure port. The fix is to point the monitoring tool at the plaintext client port (default 2181) if it is still open, or to use a TLS-capable client for the health check.

If port unification is enabled, both TLS and plaintext are accepted on one port. Verify the client connects to the unified port and is not sending plaintext to a TLS-only port or TLS to a plaintext-only port.

Wrong client TLS property

The correct client-side JVM property to enable TLS is zookeeper.client.secure=true. The property zookeeper.ssl.client.enable=true does not work and produces “Unsuccessful handshake with session 0x0” on the server. This is the most frequent client-side misconfiguration. zookeeper.client.secure is the only client TLS switch ZooKeeper reads (in ZKClientConfig); zookeeper.ssl.client.enable does not exist.

Cipher or protocol mismatch

If handshakes fail only on certain JDK distributions, check the cipher list configured on both ends. JDK distributions may use different cipher naming conventions, and hardcoded cipher overrides in some ZooKeeper versions can break negotiation on JDKs that use different prefixes; the default cipher overrides were removed in ZooKeeper 3.9.6 and 3.10.0 (ZOOKEEPER-4912).

If you control both ends, force a specific TLS protocol version (TLSv1.2 or TLSv1.3) on both client and server to eliminate negotiation ambiguity.

Hostname verification failure

This typically appears in Kubernetes or dynamic infrastructure where the certificate SAN entries do not match the hostname or IP the client used to connect. The fix is either to regenerate the certificate with the correct SANs or to disable hostname verification on the client, which weakens security and should only be a temporary stopgap.

For quorum TLS, hostname verification is enabled by default (ssl.quorum.hostnameVerification config key / zookeeper.ssl.quorum.hostnameVerification Java property, new in 3.5.5, default true). In Kubernetes, reverse DNS lookups for pod IPs may return names that do not match the certificate SANs, breaking quorum formation.

Low host entropy

Install haveged or ensure the kernel RNG is properly seeded. On virtualized hosts, confirm that the hypervisor provides entropy via virtio-rng or an equivalent mechanism. Low entropy manifests as zk_tls_handshake_exceeded incrementing alongside slow or incomplete handshakes.

Prevention

  • Monitor certificate expiry externally. ZooKeeper does not expose cert expiry as a metric. Use openssl s_client, cert-manager in Kubernetes, or your PKI tooling to alert on certificates approaching expiry. Treat any cert within 30 days of expiry as a ticket.
  • Alert on zk_unsuccessful_handshake rate. Any sustained non-zero rate in production warrants investigation. A single failing client is noisy; a fleet-wide spike is an outage.
  • Alert on zk_non_mtls_remote_conn_count in mTLS-required environments. The count should be zero. Non-zero means a client bypassed mutual TLS.
  • Test TLS after every cert rotation. Automated renewal that updates the keystore but does not trigger a ZooKeeper reload leaves the old cert in memory. Verify the running process presents the new cert.
  • Standardize the client TLS property. Document that zookeeper.client.secure=true is the correct property and that zookeeper.ssl.client.enable does not work. This prevents the most common client-side error.
  • Verify entropy on all ZooKeeper hosts. Add /proc/sys/kernel/random/entropy_avail to host monitoring. Entropy starvation is a known cause of TLS handshake stalls.

How Netdata helps

Netdata collects ZooKeeper TLS counters at per-second resolution alongside the host-level metrics that explain them. The useful correlations during a handshake incident:

  • Handshake failure rate versus cert rotation timing. A spike in zk_unsuccessful_handshake or zk_tls_handshake_exceeded that aligns with a deployment window or cert renewal event narrows the cause immediately.
  • zk_non_mtls_remote_conn_count as a standalone metric. A non-mTLS connection in an mTLS-required environment is visible on the dashboard without parsing server logs.
  • Host entropy from /proc/sys/kernel/random/entropy_avail collected by the Linux plugin. Correlate zk_tls_handshake_exceeded with entropy drops on the same host.
  • zk_unsuccessful_handshake alongside zk_num_alive_connections and zk_connection_drop_count. If connections drop during handshake but never establish a session, the problem is TLS, not session management or ephemeral timeouts.
  • JVM and GC metrics on the same host to rule out process-level stalls as a secondary cause of handshake timeouts.