I am trying to get ETCD metrics like the number of ETCD keys and size as well as the number of requests made to ETCD through exec (ing) into a kubernetes pod (etcdctl) and am not sure what command to use for this.
An alternative (such as cUrl) would help as well.
Thanks for the help!
You need to extract the information from etcd and filter what you want. To illustrate, I will show you how to get the number of total keys from etcd.
Now you have all the keys/values pairs from etcd, you just need to filter to extract the information you need. For example, to list all keys you can use the command:
and to count the number of keys, just use the command
wc -l
on the end of this command, like:References:
A closer look at etcd: The brain of a kubernetes cluster