Each etcd server exports metrics under the /metrics path on its client port.
The metrics can be fetched with curl:
$curl-Lhttp://localhost:2379/metrics# HELP etcd_debugging_mvcc_keys_total Total number of keys.# TYPE etcd_debugging_mvcc_keys_total gaugeetcd_debugging_mvcc_keys_total0# HELP etcd_debugging_mvcc_pending_events_total Total number of pending events to be sent.# TYPE etcd_debugging_mvcc_pending_events_total gaugeetcd_debugging_mvcc_pending_events_total0...
Prometheus
Running a Prometheus monitoring service is the easiest way to ingest and record etcd's metrics.
Then import the default etcd dashboard template and customize. For instance, if Prometheus data source name is my-etcd, the datasource field values in JSON also need to be my-etcd.