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 / kafka / kafka-kraft-metadata-log-lag

Operations Guides

Kafka KRaft metadata log lag: standby controllers and brokers falling behind

When client errors like NOT_LEADER_FOR_PARTITION or LeaderNotAvailableException hit a stable-looking cluster, check whether standby controllers and broker metadata lag are climbing. In KRaft mode, the active controller is the Raft quorum leader. It appends metadata changes to __cluster_metadata. Standby controllers and brokers apply that log asynchronously. When they fall behind, they act on stale partition leadership, outdated ISR memberships, and old broker registrations. This guide shows how to distinguish a slow follower, a sick leader, and a network partition.

What this means

In KRaft mode, Kafka replaces ZooKeeper with a Raft-based metadata quorum. The active controller is the Raft leader. It writes metadata records (topic changes, leader elections, configuration updates) to the __cluster_metadata partition. Standby controllers and brokers consume this log asynchronously and apply records to their local MetadataImage.

On the active controller, kafka.controller:type=KafkaController,name=LastAppliedRecordLagMs reads 0 because records apply as they commit. On standby controllers and brokers, last-applied-record-lag-ms should stay near zero in steady state. A sustained non-zero value means a stale cluster view. Stale brokers return outdated metadata to producers and consumers, so clients send requests to the wrong broker. Stale standbys may fail to take over promptly if the active controller fails. The root cause is usually one of three: the Raft leader commits too slowly, the network path between leader and follower is degraded, or the lagging node cannot apply records because of local saturation or corruption.

flowchart TD
    A[Standby or broker metadata lag growing] --> B{Active controller lag = 0?}
    B -->|No| C[Investigate quorum leader or controller event queue]
    B -->|Yes| D{Lagging nodes}
    D -->|Single node| E[Node saturation disk CPU GC or metadata errors]
    D -->|Multiple nodes| F[Leader bottleneck or inter-node network]
    E --> G[Check broker disk await and GC activity]
    G --> H[Add capacity if saturated; restart only if corrupted]
    F --> I[Check commit-latency-avg and EventQueueSize]
    I --> J[Reduce metadata churn or fix network path]

Common causes

CauseWhat it looks likeFirst thing to check
Inter-node network degradationLag grows uniformly on multiple standbys or brokers; no single node stands outcommit-latency-avg under kafka.server:type=raft-metrics and cross-node latency
Lagging node saturatedLag isolated to one broker or standby; local disk await or CPU is highDisk stats and JVM GC activity on the lagging node
Controller event queue backupActive controller lag is 0 but queue size is high; elections and ISR updates slowkafka.controller:type=ControllerEventManager,name=EventQueueSize on the active controller (Kafka 4.0 replaced it with EventQueueTimeMs/EventQueueProcessingTimeMs)
Metadata load or apply errorsLagging node shows error counts under broker-metadata-metricsBroker logs for metadata snapshot load failures
DNS or startup race (containerized)Freshly restarted controller never catches up; current-state stuckkafka-metadata-quorum.sh describe --status and node state

Quick checks

Run these read-only commands before making changes.

# Check quorum status, MaxFollowerLag, and HighWatermark
kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --status
# Check standby controller metadata lag via JMX
echo "get -b kafka.controller:type=KafkaController,name=LastAppliedRecordLagMs Value" | java -jar jmxterm.jar -l localhost:9999
# Check broker metadata lag via JMX
echo "get -b kafka.server:type=broker-metadata-metrics,name=last-applied-record-lag-ms Value" | java -jar jmxterm.jar -l localhost:9999
# Check Raft commit latency on the leader
echo "get -b kafka.server:type=raft-metrics,name=commit-latency-avg Value" | java -jar jmxterm.jar -l localhost:9999
# Check disk latency on the lagging node
iostat -xz 1
# Check GC activity on the lagging broker
jstat -gcutil $(pgrep -f kafka.Kafka) 1000

pgrep -f kafka.Kafka returns multiple PIDs if more than one Java process matches, which breaks jstat. Use the exact broker PID when multiple JVMs run on the host.

How to diagnose it

  1. Confirm the active controller is healthy. Query LastAppliedRecordLagMs on every controller-eligible node. Exactly one node should report 0; that is the active leader. If the active controller itself is lagging or if no node reports 0, you have a quorum problem, not a follower problem. See Kafka ActiveControllerCount not equal to 1: no controller or split brain.

  2. Map the scope of the lag. Use kafka-metadata-quorum.sh describe --status to see which voters and observers are behind. If the lag is isolated to a single standby or broker, suspect node-level saturation or a local disk issue. If multiple nodes lag together, suspect network degradation or an overwhelmed Raft leader.

  3. Inspect the Raft leader’s commit path. On the active controller, check commit-latency-avg and commit-latency-max under kafka.server:type=raft-metrics. Elevated commit latency (sustained above tens of milliseconds) indicates the leader is struggling to replicate metadata records. Correlate with EventQueueSize. A backed-up controller event queue slows metadata changes before they reach the Raft log.

  4. Inspect the lagging node’s ability to apply records. On a lagging broker or standby, check disk I/O await and JVM GC pause times. A node that cannot apply metadata because it is blocked on local disk or garbage collection will show growing lag even if the network is fine. Also check broker logs for snapshot load or apply failures.

  5. Check for client impact. If broker metadata lag is nonzero, expect FailedProduceRequestsPerSec and FailedFetchRequestsPerSec to rise, including NOT_LEADER_FOR_PARTITION errors. Cross-reference with consumer and producer logs to confirm stale metadata is causing retries.

  6. Verify the fix is taking hold. After addressing the root cause, watch last-applied-record-lag-ms return to baseline. Do not declare the incident resolved until lag has been near zero for several consecutive samples.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
kafka.controller:type=KafkaController,name=LastAppliedRecordLagMsMeasures how far behind a standby controller is on the metadata logNon-zero and growing on any standby
kafka.server:type=broker-metadata-metrics,name=last-applied-record-lag-msMeasures broker metadata staleness; stale brokers mislead clientsSustained value above baseline or nonzero during steady state
kafka.server:type=raft-metrics commit-latency-avg / commit-latency-maxReveals whether the Raft leader can commit metadata records efficientlySustained values above tens of milliseconds
kafka.server:type=raft-metrics,name=current-stateShows the raft state: leader, candidate, voted, follower, unattached, or observerA controller stuck outside leader/follower, or a broker stuck outside observer (unattached is normal only briefly at startup)
EventQueueSize (kafka.controller:type=ControllerEventManager,name=EventQueueSize; Kafka 4.0 replaced the gauge with EventQueueTimeMs/EventQueueProcessingTimeMs)Backed-up controller events delay metadata changes before they hit the logConsistently above 100, or growing without bound
metadata-load-error-count / metadata-apply-error-count (under kafka.server:type=broker-metadata-metrics)Direct evidence that a node is failing to process metadataAny non-zero value in steady state
Disk await (OS)Local disk saturation prevents metadata snapshot applicationawait above 20 ms for SSDs or 50 ms for HDDs sustained
JVM GC pause timeLong pauses stall the thread applying metadata recordsFull GC pauses above 200 ms or Young GC above 50 ms regularly

Fixes

Network degradation between quorum members. If commit-latency-avg is elevated and multiple followers lag, check inter-node packet loss and latency. In cloud environments, ensure controller nodes are in the same region or availability zone with low RTT. If a network partition is confirmed, fix the routing or security group issue. Do not restart controllers during a suspected partition; this can trigger unnecessary leader elections.

Saturated lagging node. If the lag is isolated to one broker or standby, treat it as a local resource problem. Check whether disk I/O await is high, whether GC pauses are stalling the broker, or whether RequestHandlerAvgIdlePercent shows the node is overloaded. For disk saturation, move traffic away if possible or add I/O capacity. For GC issues, verify the heap is not oversized and that message format down-conversion is not materializing large on-heap buffers.

Controller event queue backup. If the active controller’s event queue is growing, the leader is overwhelmed by metadata churn. Stop any non-essential admin operations (topic creation, configuration changes, partition reassignments) until the queue drains. In large clusters, avoid mass rolling restarts that generate thousands of simultaneous leadership events. See Kafka controller event queue backing up: overwhelmed controller and stalled metadata.

Persistent metadata corruption on a follower. If a node shows metadata load or apply errors and lag never recovers, the local metadata snapshot or log may be corrupt. A controlled rolling restart of the affected node will force it to fetch a fresh snapshot from the leader. This is disruptive: the node will lose its page cache and must replay state. Only do this after ruling out network and resource issues. In containerized environments with persistent volumes, verify the volume is healthy before restart.

Quorum wedging after startup. If a freshly provisioned controller never enters the quorum and current-state is not follower or leader, investigate DNS resolution and startup ordering. Some operators have seen controllers wedge because hostnames are not resolvable at JVM start time; the controller registration manager does retry with bounded exponential backoff, but the node cannot join the quorum until DNS resolves. Recovery may require rolling the controllers one by one, leader last. If your orchestrator relies on port-only readiness probes, consider adding a metadata-state probe.

Prevention

Monitor LastAppliedRecordLagMs and last-applied-record-lag-ms as first-class signals. A metadata lag alert should fire before client errors appear. Keep controller nodes in a low-latency, highly reliable network segment. Do not run combined broker-controller mode in production; it couples the data plane and control plane recovery paths and makes attribution harder. Test controller failover and broker restart times in staging so you know how long metadata replay takes with your partition count. Patch Kafka regularly to pick up KRaft stability fixes.

How Netdata helps

  • Correlates last-applied-record-lag-ms with the same node’s disk await, CPU, and JVM GC metrics in one view, which helps distinguish local saturation from quorum-wide issues.
  • Tracks commit-latency-avg alongside EventQueueSize so you can see whether the bottleneck is Raft replication or controller event processing.
  • Alerts on metadata lag growth rates rather than static thresholds, catching drift before clients see NOT_LEADER_FOR_PARTITION.
  • Surfaces broker error rates (FailedProduceRequestsPerSec, FailedFetchRequestsPerSec) on the same dashboard as metadata lag to confirm client impact.