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 / consul / consul-remove-failed-raft-peer ▌

Operations Guides

Consul stale Raft peer: removing a failed server from the configuration

A Consul server has crashed, been decommissioned, or been replaced, but its entry still sits in the Raft configuration as a voting peer. Serf gossip already marks the node failed or left, yet GET /v1/operator/raft/configuration still lists it as a voter. The dead peer keeps counting toward quorum even though it will never cast another vote.

This is not always an emergency. A healthy cluster with autopilot enabled usually self-heals within tens of seconds. It becomes an emergency when autopilot is disabled, when the cleanup window has not elapsed, or when a second failure tips the cluster below the now-inflated quorum threshold.

This article covers how to confirm a peer is genuinely stale rather than transiently partitioned, when to wait for autopilot, when to act manually with consul operator raft remove-peer, and what to do when the cluster has already lost quorum and remove-peer cannot run at all.

What this means

Consul tracks cluster membership in two independent subsystems: Serf gossip and the Raft configuration. They normally agree, but they can diverge. Serf can declare a node failed while Raft still considers it a voting peer, because Raft configuration changes are themselves Raft writes that require a leader and quorum to commit.

A stale peer is dangerous because quorum is calculated against the configured voter set, not the alive voter set. In a 3-server cluster you need 2 voters to elect a leader. If one server is permanently gone but still listed as a voter, you still need 2 of the remaining 2 to maintain quorum. The cluster has zero failure tolerance. The next restart, network blip, or disk stall on a surviving server drops the cluster below quorum and blocks every write.

Telltale signs:

  • consul members shows the node as failed or left.
  • consul operator raft list-peers still lists it as a voter, often with the Node column showing (unknown).
  • The dead node’s own logs (if you still have them) show failed to join Raft or not part of configuration.
  • The surviving cluster’s leader election count stays at zero, but consul.raft.peers reports a higher count than the number of reachable servers.

For the broader mental model of how Raft, Serf, and the catalog interact, see How Consul actually works in production.

flowchart TD
    A[Suspect stale peer] --> B{Listed as voter in Raft?}
    B -->|No| Z[Not stale]
    B -->|Yes| C{Reachable on port 8300?}
    C -->|Yes| D[Partitioned - do NOT remove]
    C -->|No| E{Leader exists?}
    E -->|No| F[peers.json recovery]
    E -->|Yes| G{Autopilot on?}
    G -->|Yes| H[Wait ServerStabilizationTime]
    G -->|No| I[force-leave then remove-peer]
    H --> J{Still listed?}
    J -->|Yes| I
    J -->|No| Z

Common causes

CauseWhat it looks likeFirst thing to check
Autopilot disabled or CleanupDeadServers=falseStale peers persist indefinitely; replacements do not trigger removalconsul operator autopilot get-config
Cleanup window not elapsedStale peer for less than ServerStabilizationTime after a replacement joinedTime since the replacement became a voter
Server switched from server to client modeforce-leave exits 0 but peer remains in RaftNode role tag in consul members
Manual Raft edit without Serf cleanupPeer added or removed by hand; mismatch with gossip stateRecent consul operator raft invocations in shell history or audit logs
peers.json recovery residueAfter outage recovery, an old address lingers in the configurationCompare prior peers.json contents to current list-peers output
Autopilot livelock (Consul 1.13+)Repeated elections after a disconnected server rejoins with a higher termLeader election count spiking after a dead server returns

Quick checks

Run these read-only. None mutate cluster state.

# List Raft peers from the leader
consul operator raft list-peers

# Read the configuration from any server, even with no leader
consul operator raft list-peers -stale

# Compare to gossip membership
consul members -status=failed
consul members -status=left

# HTTP API view of the same Raft configuration
curl -s http://127.0.0.1:8500/v1/operator/raft/configuration | jq '.Servers[] | {Node, Address, Voter, Leader}'

# Confirm who the current leader is (empty string = no leader)
curl -s http://127.0.0.1:8500/v1/status/leader

# Check autopilot configuration on the cluster
consul operator autopilot get-config

# Inspect the suspected dead node's last known state if its host is still up
consul info | grep -A5 last_contact

A stale peer is confirmed when list-peers lists a voter whose address does not respond on the Raft port (8300 by default) and whose node is failed or left in consul members.

How to diagnose it

  1. Confirm divergence. Run consul operator raft list-peers and consul members from the same server. The peer set and the alive server list should match. Any server present in the first and absent (or failed/left) in the second is a candidate stale peer.

  2. Prove the node is unreachable, not just slow. Before removing anything, test the Raft RPC port directly from each surviving server.

    # From a surviving server, test port 8300 on the suspected dead peer
    nc -vz <suspect-ip> 8300
    

    If even one surviving server can reach the suspect on 8300, do not remove it. You likely have an asymmetric partition, and forcing removal risks split-brain. See Consul lost quorum: Raft peers below the majority needed to elect a leader for the partition case.

  3. Check autopilot state. consul operator autopilot get-config reports CleanupDeadServers, LastContactThreshold, and ServerStabilizationTime. If CleanupDeadServers = true, autopilot is supposed to be cleaning up. Note that cleanup is triggered by a stable replacement joining, not by the death itself. If no replacement has joined, autopilot may never act, and the long-running non-autopilot reaper is the only automatic path. Confirmed: 72 hours is the default reconnect timeout

  4. Check whether a replacement is expected. If you run an autoscaler or a replacement workflow, a stale peer that lingers for a minute or two while the replacement bootstraps is normal. Stale for tens of minutes with no replacement activity is not.

  5. Check for the 1.13+ livelock signature. If the cluster is also experiencing repeated leader elections and the supposedly dead server has come back online, you may be hitting hashicorp/raft issue #524. In that case the fix is to restart the returning node cleanly so it does not rejoin with a stale higher term, not to remove it as a peer. Confirmed: raft#524 remains open; no Consul release resolves it

  6. Verify a leader exists. consul operator raft remove-peer requires an active leader. If GET /v1/status/leader returns an empty string, you are in outage-recovery territory, not stale-peer-removal territory. Skip to the peers.json procedure in the Fixes section.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
consul.raft.peers gaugeConfigured voter count, not alive countHigher than the number of reachable servers
consul.serf.lan.member.status per memberGossip view of liveness, independent of RaftAny server showing failed (4) or left (3)
consul.raft.state.leader (confirmed: counter of leadership transitions per interval)Leadership transitionsSpikes after a stale peer reappears (livelock)
consul.raft.leader.lastContactFollower-to-leader reachabilityTrending toward the election timeout on followers
/v1/operator/raft/configuration JSONAuthoritative Raft peer listNode field showing (unknown)
consul.raft.commitTimeWrite pipeline healthElevated when quorum is fragile and retries pile up

Fixes

Wait for autopilot

If CleanupDeadServers = true and a replacement server has joined, autopilot removes the dead peer after LastContactThreshold has been exceeded and the replacement has been stable for ServerStabilizationTime. Defaults are 200ms and 10s respectively, but verify against your own config. This is the lowest-risk path: let the cluster converge.

If autopilot is on but no replacement is joining, autopilot has nothing to trigger on. You either need to start a replacement or move to manual removal.

consul force-leave first

If the stale node still appears in consul members output (even in failed state), the official guidance is to start with force-leave rather than reaching for remove-peer directly.

# Mark the node as gracefully gone in gossip
consul force-leave <node-name>

force-leave is safer because it goes through the normal leave path. Caveat: if the node has been reconfigured from server mode to client mode, force-leave exits 0 but does not remove it from the Raft configuration. In that case you must use remove-peer.

consul operator raft remove-peer

This is the manual override when autopilot has not cleaned up and force-leave did not remove the peer from Raft. It requires an active leader.

# Remove by Raft address (works on all Raft protocol versions)
consul operator raft remove-peer -address="<ip>:8300"

# Remove by server ID (Raft protocol 3+, preferred for protocol 3 clusters)
consul operator raft remove-peer -id="<node-id>"

The equivalent HTTP API call is DELETE /v1/operator/raft/peer?address=<ip>:8300 or ?id=<node-id>. It requires the operator:write ACL permission.

Tradeoffs and warnings:

  • Removing a peer that is actually alive and partitioned can cause split-brain. Only do this after step 2 of the diagnosis (direct port test from every surviving server).
  • Removing a peer reduces the quorum requirement. In a 3-server cluster with one stale peer removed, you now have 2 voters and still need 2 to maintain quorum, which leaves you with zero failure tolerance until a replacement joins. Plan to add one quickly.
  • This command does not work without a leader. If quorum is already lost, use peers.json recovery.

peers.json recovery (no leader)

When the cluster has already lost quorum and remove-peer cannot run, the only path is the peers.json outage recovery procedure.

Warning: this is destructive and disruptive. It rewrites the Raft configuration from a hand-written file. Any server not listed in peers.json is permanently removed from Raft, even if it is still alive. The cluster is unavailable for writes while every surviving server is stopped and restarted. Treat this as a last resort, and only after you have confirmed which servers hold the most recent committed log entries.

# Stop Consul on each surviving server you intend to keep.
# The cluster cannot process writes while servers are stopped.
systemctl stop consul

# On each surviving server, write a peers.json with ONLY the nodes you want to keep.
# Path is <data_dir>/raft/peers.json
cat > /opt/consul/data/raft/peers.json <<'EOF'
[
  {"id": "<node-id-1>", "address": "10.0.0.1:8300"},
  {"id": "<node-id-2>", "address": "10.0.0.2:8300"}
]
EOF

# Start Consul on each surviving server
systemctl start consul

Consul reads peers.json on startup, uses it to reconstruct the Raft configuration, and deletes the file. Constraints:

  • This only works on servers that previously had a valid Raft data directory. Placing peers.json on a brand-new node that has never participated in Raft causes startup failure.
  • On Raft protocol 3 clusters, id must be the server’s node ID (UUID), not its IP address. Using the wrong identifier silently fails to form a quorum.
  • After recovery, the cluster has a fresh peer set. Any server not listed in peers.json is gone from Raft, even if it is still alive elsewhere.

For the broader write-pathology context when commit times climb during these incidents, see Consul raft commitTime high: the write pipeline is slowing down.

Prevention

  • Leave autopilot enabled. CleanupDeadServers = true (the default) is the single most effective control against stale peer accumulation. Disabling it is almost always a mistake outside of a controlled debugging session.
  • Monitor consul.raft.peers against expected cluster size. The gauge reports configured voters, not alive voters. Any mismatch with the number of reachable servers is the earliest signal.
  • Monitor consul.serf.lan.member.status for servers. A server in failed or left state for more than ServerStabilizationTime plus a small margin should page, regardless of whether Raft has caught up.
  • Use server IDs, not IPs, in any automation. Protocol 3 clusters identify servers by UUID. IP-based removal in a cluster where addresses have changed (DHCP, k8s pod churn) silently fails.
  • Do not switch server nodes to client mode without force-leaving first. A server that becomes a client while still in the Raft configuration produces a peer that force-leave will not remove.
  • Treat peers.json recovery as a documented runbook, not an ad-hoc fix. Practice it in staging. The first time you reach for it should not be during a real outage.

For a full checklist of the signals a production Consul deployment should track, see Consul monitoring checklist and Consul monitoring maturity model.

How Netdata helps

  • Correlate consul.raft.peers with Serf member status. Per-second resolution makes the divergence between configured voters and alive members visible within seconds, before the next failure tips the cluster into quorum loss.
  • Surface leader election count spikes. A stale peer that reappears with a higher term (the 1.13+ livelock signature) shows up as a sharp increase in leadership transitions. Correlating that with the reappearance of a previously-failed server tells you to restart the returning node, not remove it.
  • Track last_contact trends on each follower. Per-server views distinguish “one follower drifting” from “all followers drifting,” which separates a stale-peer problem from a leader-disk problem.
  • Alert on Raft peer count mismatch. A comparison between consul.raft.peers and the count of alive server members is a direct stale-peer detector.
  • Combine with disk I/O metrics on the Raft volume. Slow disk is the most common cause of leader instability during and after peer removal. Disk latency charts sit next to the Consul metrics, so the correlation is immediate.