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 / apache-pulsar / apache-pulsar-broker-down ▌

Operations Guides

Apache Pulsar broker down: telling a dead broker from a fenced one

Your alerting fired: the broker’s HTTP admin endpoint on :8080 has been unreachable for more than two minutes, and the broker was previously running, so this is not a fresh deploy or a rolling restart. Pager says “broker down.” That phrase hides two very different incidents.

The first is a hard death: the JVM crashed, got OOM-killed, or the host failed. The process is gone and the OS will tell you so in seconds. The second is a fenced broker: the process is alive, maybe even accepting TCP connections, but it has lost its ZooKeeper session and with it ownership of every namespace bundle it served. From the client’s perspective the broker is down. From the process table’s perspective it is fine. The fix, the blast radius, and the forensics are completely different for each.

This guide covers how to tell the two apart, what each state implies for your data path, and which signals confirm the diagnosis before you restart anything.

What this means

In Pulsar, brokers are stateless serving processes that own namespace bundles: hash-range slices of the topic namespace. Bundle ownership is recorded in the metadata store (ZooKeeper in most 3.x deployments) via ephemeral nodes tied to the broker’s ZK session. That design creates a sharp distinction:

  • Dead broker: process terminated. The ZK session dies with it, ephemeral nodes are removed, and surviving brokers take over its bundles. Recovery is automatic. Your job is finding why the process died (OOM, host failure, kill signal) and whether it will die again on restart.
  • Fenced broker: process alive, ZK session expired (long GC pause, ZK latency storm, network partition). The broker loses topic ownership; topics get fenced while ownership moves. A broker in this state is “up” by every process check while serving nothing. Worse, it can oscillate: lose ownership, regain it, lose it again, in the GC death spiral pattern.
  • Degraded but owned: process alive, session intact, but the broker is unhealthy (direct memory exhausted, GC spiral in progress, stuck BookKeeper client). /metrics may even respond. Only a deeper health check catches this.

The basic liveness signal (HTTP endpoint on :8080 responding) only catches the first case reliably. A binary process check is necessary but not sufficient.

flowchart TD
    A[Alert: :8080 unreachable or clients failing] --> B{Process running?}
    B -- No --> C[Dead broker]
    B -- Yes --> D{ZK session intact?}
    D -- No --> E[Fenced broker: lost topic ownership]
    D -- Yes --> F{Health check passes?}
    F -- No --> G[Degraded: owns bundles but cannot serve]
    F -- Yes --> H[Healthy: look elsewhere, e.g. bookies or ZK]
    C --> I[Check OOM signature, exit reason, host health]
    E --> J[Check GC pauses, ZK latency, session expiry in logs]
    G --> K[Check direct memory, thread pools, BK client]

Common causes

CauseWhat it looks likeFirst thing to check
Direct memory exhaustion (OOM)Process dead or hung; heap metrics looked fine before death; RSS far above heapBroker logs for OutOfDirectMemoryError or “Direct buffer memory”
GC death spiral leading to session expiryProcess alive, :8080 slow or unreachable, repeated bundle ownership churn in logsGC logs / jstat -gc, then ZK session events
ZooKeeper latency stormMultiple brokers affected at once, ZK latency elevated before broker symptomsecho stat | nc <zk-host> 2181, ZK disk and CPU
Host or network failureProcess gone, no JVM error in logs, other services on host also affectedHost logs, network reachability, dmesg
OOM killer (cgroup or kernel)Process gone, exit without JVM stack tracedmesg / journal for oom-kill entries, container memory limits vs heap + direct memory
Rolling restart mistaken for outageEndpoint down briefly, broker re-registers, uptime lowBroker uptime and deployment history (the “previously running > 2 min” condition filters this)

Quick checks

All of these are read-only.

# 1. Is the process alive at all?
pgrep -af PulsarBroker

# 2. Is the HTTP listener dead or just the health path?
curl -sf http://<broker-host>:8080/metrics > /dev/null && echo "UP" || echo "DOWN"

# 3. Deeper health: does the broker exercise the full produce/consume path?
curl -sf http://<broker-host>:8080/admin/v2/brokers/health

# 4. Is the metadata-store session intact? Pulsar exposes no zookeeper_connected Prometheus metric; broker log events are the signal (see #7)

# 5. GC pressure right now (if process alive)
jstat -gc <broker-pid> 1000 5

# 6. Direct memory vs heap gap
grep VmRSS /proc/<broker-pid>/status

# 7. Recent death signatures
grep -E "OutOfDirectMemoryError|Direct buffer memory|Session expired|Connection loss" /var/log/pulsar/broker.log | tail -20

# 8. Kernel OOM killer
dmesg -T | grep -i "killed process" | tail

# 9. Is the cluster seeing the broker as gone?
curl -s http://<other-broker>:8080/admin/v2/brokers/<cluster>

Note on check 3: GET /admin/v2/brokers/health is not a cheap ping. It creates a producer and a non-durable subscription on a system health-check topic, sends a message, reads it back, and tears down. That is why it catches fenced and degraded brokers: it exercises the full path through the managed ledger and BookKeeper. Do not point a load balancer at it with a one-second interval on a loaded cluster; concurrent calls have historically exposed race conditions in older 2.x versions, and each call costs a produce/consume round trip.

How to diagnose it

  1. Confirm the alert scope. Check whether other brokers also lost their :8080 endpoints or ZK sessions. Multiple brokers affected simultaneously points at ZooKeeper or shared infrastructure, not at individual broker death. A single broker points local.

  2. Dead or alive? pgrep -af PulsarBroker. If the process is gone, you are in the dead-broker path: skip to step 5. If it is alive, the liveness alert already told you something important: the process is up but not serving.

  3. Alive: check the metadata-store session. Pulsar does not expose a ZooKeeper-connection Prometheus metric; the signal is Session expired / Connection loss lines in the broker log (corroborate server-side with echo stat | nc <zk-host> 2181). Such an event means the broker was fenced: it lost bundle ownership and its topics moved to surviving brokers. Correlate the timestamp with GC pauses (jstat history, GC logs) and ZK latency. A GC pause longer than the ZK session timeout is the classic trigger.

  4. Alive with session intact: run the deep health check. GET /admin/v2/brokers/health. A failure here with a live session means the broker owns bundles but cannot complete a produce/consume round trip: suspect direct memory exhaustion in progress, a stuck BookKeeper client, or thread pool saturation. Check RSS vs heap, and Netty allocator stats via /admin/v2/broker-stats/allocator-stats/default (valid for the default and ml-cache allocators).

  5. Dead: find the death signature. In order: broker log tail for OutOfDirectMemoryError or OutOfMemoryError; dmesg for the kernel OOM killer; container runtime events for cgroup OOM or eviction; host logs for hardware or power events. “Process gone with no JVM error” plus an oom-kill entry means your memory accounting was wrong: heap + MaxDirectMemorySize + JVM overhead exceeded the limit. Heap is usually monitored, direct memory is not, and the sum is what the kernel enforces.

  6. Verify client impact separately from broker state. A fenced broker’s topics are already being served by other brokers after bundle reassignment; clients see reconnection blips, not an outage, assuming the rest of the cluster is healthy. Check pulsar_lb_unload_bundle_total on surviving brokers and lookup failures (pulsar_broker_lookup_failures) to confirm the handover completed. Sustained lookup failures after the event mean the problem has moved to the metadata store or ownership churn, not the dead broker.

  7. Only then restart. A dead broker with an explained cause (host failure, fixed OOM) can be restarted or replaced. A fenced broker oscillating in a GC spiral should not be restarted blindly into the same configuration; capture GC evidence first, because the restart erases it and the spiral will recur.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
:8080 endpoint reachability (process liveness)The binary dead/alive signalUnreachable > 2 min on a previously running broker: page
Broker metadata-store session events (log Session expired / Connection loss)Distinguishes fenced from dead on a live processSession events appearing, or repeated flapping
/admin/v2/brokers/health resultExercises produce/consume path; catches degraded-but-aliveNon-200 while /metrics still responds
GC pause duration/frequency (JMX or GC logs)Leading cause of session expiry and fencingPauses approaching the ZK session timeout
Process RSS minus heapProxy for direct memory growth (Pulsar 2.11+ also exposes jvm_memory_direct_bytes_used on /metrics)Gap growing steadily; RSS near container limit
pulsar_lb_unload_bundle_totalConfirms ownership handover after a broker is fenced or diesUnloads without a corresponding broker event; thrashing rate
pulsar_broker_lookup_failuresShows whether clients can still find topic ownersFailure ratio > 1% sustained after the event
pulsar_active_connectionsReconnect storms after fencing; also feeds direct memory pressureSharp drop (fencing) then spike (thundering herd reconnect)

On Pulsar 3.0+ there is also a passive option: PIP-271 added a pulsar_health gauge at /metrics with values 1 (healthy/success), 0 (failed), -1 (unknown). It is disabled by default (healthCheckMetricsUpdateTimeInSeconds=-1); set it to a positive interval in seconds (e.g. 30-60) to make the broker run the full health check on that schedule and update the gauge. This gives you health state without paying for a full produce/consume health check on every scrape.

Fixes

Dead broker: direct memory or heap OOM

Restart the process (or let the orchestrator do it), then fix the accounting before it happens again. Pulsar’s broker defaults are -Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g. The container or host memory limit must cover heap + direct + roughly 20% JVM overhead. If RSS-minus-heap was climbing before death, increase MaxDirectMemorySize headroom or reduce connection count and message sizes. If heap itself was the ceiling, check managedLedgerCacheSizeMB and topic count per broker.

Fenced broker: GC-induced session expiry

Do not restart first. Capture jstat history or GC logs, then address the pause source: heap sizing, cache sizing, or a memory leak in functions/connectors. As a stopgap you can raise zooKeeperSessionTimeoutMillis to buy time, but treat that as masking, not fixing: longer timeouts also slow real failure detection.

Fenced broker: ZooKeeper-side latency storm

The broker is a victim, not the cause. Check ZK server disk (transaction log), CPU, and watch counts (echo wchs | nc <zk-host> 2181). Note that on ZooKeeper 3.5+, four-letter words like wchs work only if whitelisted via 4lw.commands.whitelist; if they are blocked, use mntr via the admin server or your ZK metrics instead. Do not mass-restart brokers: they reconnect on their own once ZK recovers, and restarting adds reconnection load to an already saturated metadata store.

Topics stuck fenced after ownership moves

If producers report fenced-topic errors long after the broker event, the fence release is lagging. The topicFencingTimeoutSeconds broker config controls how long a topic stays fenced before being force-closed; the default is 0, which disables forced closing of fenced topics entirely. Setting it low (e.g. 5 seconds) releases fencing faster but carries data-consistency risk, and fenced-topic bugs have been reported across multiple 2.x/3.x lines.

Host or infrastructure failure

Replace the host and let the cluster rebalance. Confirm surviving brokers absorbed the bundles cleanly via bundle counts and lookup failure rates before calling it done.

Prevention

  • Monitor direct memory explicitly. Pulsar 2.11+ exposes jvm_memory_direct_bytes_used and jvm_memory_direct_bytes_max on /metrics; on older versions use JMX (java.nio:type=BufferPool,name=direct) or track RSS-minus-heap. Alert on the trend, not just the ceiling.
  • Alert on GC pauses relative to the ZK session timeout, not on absolute pause length. A 10-second pause is harmless with a 30-second session timeout and fatal with a 10-second one.
  • Size container limits honestly: heap + MaxDirectMemorySize + JVM overhead, with headroom. This eliminates the most common “broker died with no log” incident.
  • Treat ZK latency as a leading indicator. Sustained latency above 10ms is an early warning for fencing events cluster-wide; above 100ms, failure is minutes away.
  • Gate liveness pages with “previously running > 2 min” so rolling restarts and cold starts do not page you.
  • Run controlled broker kills in staging so the team knows what a normal bundle handover looks like in metrics before a real one happens.

How Netdata helps

  • Netdata’s Pulsar collector scrapes the broker’s Prometheus endpoint on :8080, so broker liveness, pulsar_zookeeper_connected, bundle unload counters, and lookup failures land in one place at per-second resolution.
  • Host-level metrics from the same agent (RSS per process, dmesg OOM events, disk and NIC health) let you see the RSS-minus-heap gap and kernel OOM kills next to Pulsar’s own view of the broker, which is exactly the correlation that separates dead from fenced.
  • JVM and GC charts alongside ZK session state make the GC-spiral-to-fencing chain visible in one timeline instead of two tools.
  • Bundle unload spikes correlated with connection count drops confirm ownership handover after a broker event, telling you whether the cluster healed or the problem moved.