Skip to content

etcd

Prometheus Metrics

etcd is a distributed key-value store that provides reliable configuration storage and service discovery for distributed systems.

etcd exposes Prometheus metrics by default at http://localhost:2379/metrics — no additional service-side configuration is required.

For authenticated clusters, ensure Glouton can reach the metrics endpoint, or configure etcd to expose an unauthenticated metrics listener on a separate port.

Terminal window
sudo tee /etc/glouton/conf.d/99-etcd.conf > /dev/null << 'EOF'
metric:
prometheus:
targets:
- url: "http://localhost:2379/metrics"
name: "etcd"
allow_metrics:
- "etcd_server_has_leader"
- "etcd_server_leader_changes_seen_total"
- "etcd_mvcc_db_total_size_in_bytes"
- "etcd_disk_wal_fsync_duration_seconds*"
- "etcd_network_peer_sent_bytes_total"
EOF

Glouton automatically detects configuration changes.

Metric Description
etcd_server_has_leader Indicates whether the etcd member has a leader
etcd_server_leader_changes_seen_total Total number of leader changes observed
etcd_mvcc_db_total_size_in_bytes Total size of the underlying database in bytes
etcd_disk_wal_fsync_duration_seconds Histogram of WAL fsync durations in seconds
etcd_network_peer_sent_bytes_total Total number of bytes sent to peers