监控(TBD)
Last updated
Last updated
Each etcd server exports metrics under the /metrics
path on its client port.
The metrics can be fetched with curl
:
Running a monitoring service is the easiest way to ingest and record etcd's metrics.
First, install Prometheus:
Set Prometheus's scraper to target the etcd cluster endpoints:
Set up the Prometheus handler:
Now Prometheus will scrape etcd metrics every 10 seconds.
Sample dashboard:
has built-in Prometheus support; just add a Prometheus data source:
Then import the default and customize. For instance, if Prometheus data source name is my-etcd
, the datasource
field values in JSON also need to be my-etcd
.
See the .