- Export all the required environment variables:
export $(grep -v '^#' /etc/etcd.env | xargs -d '\n')
- Start interacting with
etcdctl
etcdctl endpoint health status --cluster -w table && etcdctl endpoint status --cluster -w table
- Scrape Prometheus metrics on
:2379
for any etcd instance:
curl -k --cacert $ETCD_TRUSTED_CA_FILE --cert $ETCD_PEER_CERT_FILE --key $ETCD_PEER_KEY_FILE $ETCD_ADVERTISE_CLIENT_URLS/metrics
-
Object counts and sizes: https://gist.github.com/dkeightley/8f2211d6e93a0d5bc294242248ca8fbf
-
Defragmentation: https://gist.github.com/Dentrax/bca3aaa6d71826f7495e435797c7e324