Published Nov 15, 2026 ⦁ 11 min read
etcd Monitoring: 5 Signals for Cluster Health

etcd Monitoring: 5 Signals for Cluster Health

An etcd endpoint can respond while the cluster can’t commit writes. Monitor all members - not just the leader - and compare these five signals over the same time window:

  • Leader changes: Repeated elections or a missing leader point to consensus trouble.
  • Failed proposals: Sustained failures and a growing backlog call for checks of leadership, quorum, and Raft progress.
  • WAL fsync latency: Slow disk flushes delay writes. Use p99 above 10 ms as an investigation trigger, not proof of failure.
  • Peer round-trip latency: Rising delays between members call for network and host checks.
  • Database size: Compare allocated space, used space, free disk space, and quota to spot capacity pressure.

Check leadership and proposal failures first. Then match storage, network, and capacity changes with client errors. Preserve quorum during recovery: a three-member cluster needs two members that can communicate to make progress.

etcd Monitoring: 5 Signals for Cluster Health

etcd Monitoring: 5 Signals for Cluster Health

Tutorial: Mastering Etcd Observability: A Comprehensive Guide to M... Bogdan Kanivets & Vivek Patani

Set a Cluster-Wide Monitoring Baseline

Scrape each etcd member directly with Prometheus - not through a leader-only or load-balanced endpoint. Leader-only data can hide follower lag and partial outages. Use each member’s /metrics endpoint on the client port, commonly 2379, or its configured metrics listener. Match the cluster’s CA, client certificate, and key requirements. Expose unauthenticated metrics only on a trusted monitoring network. Keep member, endpoint, and peer-destination labels such as To so you can trace slow links.

Check metrics against cluster behavior with etcdctl endpoint health --cluster and etcdctl endpoint status --cluster. Supply your deployment’s actual --endpoints, --cacert, --cert, and --key settings. Health checks confirm consensus participation. Status returns member details, including version, database size, leadership, Raft term, and Raft status. During incidents, save timestamped output to help spot scrape gaps.

Verify metric names, types, and labels against the running etcd version before enabling alerts. Build your baseline across quiet periods, peak traffic, deployments, and maintenance windows. Compare counter rates over a fixed window, such as five minutes, and track per-member p50, p95, and p99 histogram estimates. Use reset-aware rate functions and mark restarts: etcd metrics reset when a member restarts.

Report latency in milliseconds, but remember that _seconds metrics record seconds. Multiply histogram percentile results by 1,000. Apply the same convention to WAL fsync and peer round-trip latency so operators don’t read 0.01 seconds as 0.01 milliseconds.

Label capacity panels as bytes, MiB, or GiB, and stick to one unit convention throughout. Check what each database metric means in your version: etcd_mvcc_db_total_size_in_use_in_bytes reports logically used database size, while etcd_mvcc_db_total_size_in_bytes - formerly etcd_debugging_mvcc_db_total_size_in_bytes - reports the physically allocated size of the underlying database. Track both to catch compaction drift and disk pressure early. Record your compaction and defragmentation policy in the baseline to give capacity shifts context. Keep leader changes, write failures, and latency spikes on the same scale for comparison.

1. Leader Changes

Metric Type and Baseline

etcd_server_leader_changes_seen_total counts the leadership changes each member observes. Rising rates point to consensus instability, which can delay configuration writes. Chart rate(etcd_server_leader_changes_seen_total[5m]) per member. Do not sum members: a single election can appear on several members. In a healthy cluster, this rate stays near zero.

etcd_server_has_leader is a gauge: 1 means the member sees a leader; 0 means it does not. Every healthy member should report 1. Treat a sustained zero as urgent. An alert window of 10 to 30 seconds, tuned to your environment, can filter brief transitions. If all members report zero, page immediately.

With that baseline in place, use election spikes to help explain write delays and latency changes.

Request Symptoms

Recurring elections can delay configuration writes, slow reads, and increase retries and timeouts. Match election timestamps to errors. Missed heartbeats can trigger elections even while the leader process is running, so repeated leadership changes don't always mean repeated crashes.

When election spikes line up with errors, check whether the problem lies with the leader, its peers, or the host.

Diagnostic Checks

Check leader identity, Raft term, reachability, and latency to distinguish leader instability from peer or host failures. Review logs around each transition: restarts suggest member instability, while simultaneous peer disconnects suggest a network interruption. Compare these findings with application latency. Understanding these infrastructure bottlenecks is a core skill taught in our Data Engineering Mastery Course.

Response

Verify quorum before restarting members. A three-member cluster needs two available members that can communicate to make progress. First, restore peer connectivity or relieve CPU, memory, or disk pressure. Don't increase election timeouts blindly. Confirm recovery by checking for stable leadership, successful endpoint checks, and a return to normal application latency and error rates.

2. Failed Proposals

If leader changes stop but writes still fail, failed proposals help show whether etcd can still commit requests.

Metric Type and Baseline

etcd_server_proposals_failed_total is a counter. Chart rate(etcd_server_proposals_failed_total[5m]) per member rather than the raw total. etcd_server_proposals_pending is a gauge, so track its current value and trend.

During stable operation, record the normal five-minute failure rate and pending-proposal count. Alert on sustained changes from that baseline, not a universal threshold.

Request Symptoms

Failed proposals and leader changes can come with client write errors, intermittent timeouts, and higher request latency. A brief failure during an election may pass on its own. Continued failures or a growing pending-proposal count need investigation, especially when the cluster has no leader.

A growing pending-proposal count doesn't prove capacity pressure. It often means the cluster cannot commit proposals.

Diagnostic Checks

If the proposal backlog grows, check Raft progress first. Run etcdctl endpoint health --cluster, followed by etcdctl endpoint status --cluster --write-out=table. Compare IS LEADER, RAFT TERM, RAFT INDEX, and RAFT APPLIED INDEX across members. Poll multiple times to check whether those indexes keep advancing.

Review member logs from the time failures increased. Look for leader elections, lost peer connections, heartbeat timeouts, failed remote-procedure calls, disk write errors, corruption, authentication failures, or quota exhaustion.

A client endpoint can respond even when peer connectivity is broken. If pending proposals grow while Raft progress stalls, check peer URLs, firewall and security-group rules, DNS resolution, clock synchronization, disk availability, and process health before blaming request volume.

Response

Resolve quorum or election problems before scaling capacity. Once leadership is stable and Raft progress resumes, investigate client load, disk performance, request latency, and resource pressure if the backlog persists. Check that pending proposals drain and the failure rate returns to baseline. After a restart, treat the counter as reset.

3. WAL Fsync Latency

If leadership is stable but writes still lag, check WAL fsync latency next.

Metric Type and Baseline

etcd_disk_wal_fsync_duration_seconds is a histogram of WAL fsync latency: the time etcd waits to persist write-ahead log entries to disk. Track each member’s p95 and p99 using the histogram buckets. Averages can hide slow flushes. Replace 0.95 with 0.99 in this query to get p99.

histogram_quantile(
  0.95,
  sum by (instance, le) (
    rate(etcd_disk_wal_fsync_duration_seconds_bucket[5m])
  )
)

Measure the baseline during backups and other heavy I/O periods, too. Keep the member label so aggregation doesn’t hide a degraded disk. Google Distributed Cloud recommends a p99 below 10 milliseconds for etcd_disk_wal_fsync_duration_seconds. Use that as a reference, not your only alert threshold: account for your deployment’s storage behavior and sustained departures from baseline.

Request Symptoms

Slow WAL flushes delay durable commits of configuration writes; they don’t directly slow reads. Storage contention or disk faults can cause write timeouts. Match sustained increases in tail latency with client symptoms. If WAL latency stays normal while peer round-trip latency climbs, the main problem is more likely the network than storage.

Diagnostic Checks

When WAL latency climbs, compare it with backend commit latency to distinguish a WAL-specific slowdown from broader storage pressure. Chart etcd_disk_backend_commit_duration_seconds using the same p95/p99 query pattern. High WAL latency alone points toward log persistence. If both metrics climb, look for broader storage pressure.

Align those charts with host disk latency, queue depth, throughput, and throttling. Check device and kernel logs for I/O errors or resets, then compare spike times with backups or other competing I/O.

Response

Investigate storage before increasing timeouts. Aspiring engineers can learn these infrastructure fundamentals in a free data engineering boot camp. Pause competing I/O where safe, check volume performance and capacity limits, and work with the storage provider to investigate persistent errors. A dedicated WAL disk can reduce contention, but it won’t fix failing hardware. Verify that each member’s p95 and p99 return to baseline.

4. Peer Round-Trip Latency

If storage latency looks normal but writes still lag, check peer round-trip time next.

Metric Type and Baseline

etcd_network_peer_round_trip_time_seconds is a histogram that measures round-trip time between etcd peers. Track p50, p95, and p99 with the instance and destination peer To labels. Check which labels your deployment exposes. This Prometheus query estimates p95 over five minutes:

histogram_quantile(
  0.95,
  sum by (le, instance, To) (
    rate(etcd_network_peer_round_trip_time_seconds_bucket[5m])
  )
)

Build a baseline for each path, comparing same-zone paths with same-zone paths and cross-zone paths with cross-zone paths. Rather than setting one threshold for every path, watch for sustained increases in tail latency or round-trip times that differ by direction.

Request Symptoms

etcd uses peer communication to replicate proposals and maintain quorum. Sustained delays can leave proposals pending, trigger elections, or block configuration commits. Check whether latency increases line up with changes in etcd_server_leader_changes_seen_total, etcd_server_proposals_failed_total, and etcd_server_proposals_pending.

Diagnostic Checks

Keep source and destination labels visible so you can see where delays occur. If every member reports slow round trips to one peer, check that node’s CPU, memory, disk I/O wait, and throttling.

If only one path slows down, check both ends for congestion, packet loss, retransmissions, routing changes, and interface errors. Compare the timing with peer-send failures, including etcd_network_peer_sent_failures_total when available. Check cross-zone routing or distance before blaming etcd.

Response

Fix packet loss, congestion, or overload before restarting members. Follow documented recovery steps that preserve quorum. Then verify that peer latency, leader changes, failed proposals, and send failures return to baseline. If peer paths are healthy but writes remain slow, check database size next.

5. Database Size

Metric Type and Baseline

If leader changes, failed proposals, and latency look normal, check for capacity pressure next.

etcd_mvcc_db_total_size_in_bytes measures the backend database’s physically allocated size, including internal free space that etcd can reuse. Older releases expose this gauge as etcd_debugging_mvcc_db_total_size_in_bytes, so check /metrics for the correct name. Set a baseline for each member after normal compaction and defragmentation. Then track database size, growth rate, differences between members, and quota usage as a share of etcd_server_quota_backend_bytes.

Request Symptoms

Watch for slower writes, timeouts, or higher API latency as available quota shrinks. If a member exceeds the backend quota, etcd can trigger a cluster-wide NOSPACE alarm and enter maintenance mode. It then accepts only key reads and deletes until space is freed, the backend is defragmented, and the alarm is cleared.

Database size alone doesn’t tell you whether etcd is healthy. Compare growth with filesystem usage, free disk space, write latency, and WAL fsync latency.

Diagnostic Checks

Compare the physical database size with etcd_mvcc_db_total_size_in_use_in_bytes and the database file on disk. A large gap points to reclaimable space. Similar values point to active data or retained revisions.

If growth is speeding up, check revision retention, compaction settings, and applications that repeatedly update the same keys. Understanding these patterns is essential for those breaking into data engineering and managing distributed systems. Don’t treat it as a disk usage problem without checking these causes first.

Response

Compaction and defragmentation do different jobs. Compaction makes space from obsolete revisions reusable inside etcd, but it doesn’t shrink the on-disk file. Defragmentation returns unused backend space to the filesystem. Set retention to match client and watch history needs.

Schedule both tasks during low-write periods, and confirm free disk space before maintenance. Defragment one member at a time while preserving quorum. After each step, check member health and client latency.

If quota pressure is severe, clean up data, defragment, and clear the alarm. Increasing the quota without enough disk space only delays failure. Check this metric alongside the other signals to distinguish quota pressure from leader, proposal, and latency failures.

Compare Failure Modes and Response Priorities

Check for no leader or sustained proposal failures before isolated spikes. Use this matrix to decide what to check first when the five signals overlap or point in different directions.

Signal Primary failure mode Supporting evidence Diagnostic priority
Leader changes Consensus instability Increasing leader changes or has_leader = 0. Immediate if there’s no leader. For recurring churn, check storage, network, and load.
Failed proposals Consensus stalls Sustained increases in proposals_failed_total; growing proposals_pending. Immediate for sustained failures, especially when the backlog is growing. Check leadership and quorum first.
WAL fsync latency Storage delay on durable writes Increasing p99 WAL fsync latency; disk saturation. Check disk saturation and proposal failures.
Peer round-trip latency Replication delay High or variable peer RTT; differences between peer pairs and packet loss. Inspect the affected network path.
Database size Capacity pressure or maintenance debt Growing physical size, shrinking free space, or quota pressure. Planned maintenance unless quota or free space is nearly exhausted. In that case, act immediately.

Compare signals by member and timestamp. Let the signal that changes first guide your investigation. If peer RTT increases first, inspect the network path. If WAL fsync latency increases first, check storage before changing election settings.

A growing backlog means work is waiting - not that consensus has failed. A brief increase in failed proposals without a growing backlog deserves investigation, but it doesn’t prove a cluster-wide outage.

Start with leader stability and proposal health. If both look normal, compare p99 WAL fsync latency with backend commit latency. Then review peer round-trip latency for each member pair, and compare the database’s physical and in-use sizes with available disk space and quota. This order helps separate consensus problems affecting configuration writes from storage and replication issues.

For storage checks, use the FAQ thresholds: p99 WAL fsync below 10 ms and p99 backend commit below 25 ms. Treat these as investigation triggers, not failure cutoffs.

Confirm the diagnosis before changing settings. Check endpoint health and status, then match metric changes with read and write timeouts, failed watches, and configuration-service errors during the same time window. A pattern paired with client impact provides stronger evidence than a single spike.

FAQs

How should I prioritize leader-change and failed-proposal alerts?

Prioritize leader-change and failed-proposal alerts based on how many downstream business decisions or critical dashboards depend on the affected configuration service. Issues tied to rarely used processes may be less urgent.

Apply the Pareto Principle: focus on the critical 20% of incidents causing 80% of system instability. Look for patterns across incidents, not just isolated events. Repeated failures often point to deeper configuration problems that threaten cluster health.

How can I distinguish WAL fsync delays from peer latency?

In etcd, check WAL fsync latency and peer round-trip latency separately. Write Ahead Log (WAL) fsync latency measures disk I/O delays as log entries are saved before commit. Peer round-trip latency measures network communication delays between cluster members.

If latency is high but the leader stays stable, check disk metrics for WAL fsync spikes that may point to storage bottlenecks. If peer round-trip latency is high, check network throughput or congestion between nodes.

How can I forecast when etcd will reach its database quota?

Track database size over time with tools like Prometheus or CloudWatch. Use time-series analysis to spot growth patterns and estimate when the database will hit its configured quota.

Store these metrics consistently, rather than relying on isolated snapshots. That history helps you plan for capacity limits before they interrupt service.