etcd/tools/etcd-dump-metrics
Eng Zer Jun 2a151c8982
*: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-28 00:05:28 +08:00
..

go install -v ./tools/etcd-dump-metrics

# for latest main branch
etcd-dump-metrics > Documentation/metrics/latest

# Or download etcd v3.3.9 to ./bin
goreman start
etcd-dump-metrics --addr http://localhost:2379/metrics > Documentation/metrics/v3.3.9

# Or download etcd v3.3.9 to temporary directory to fetch metrics
etcd-dump-metrics --debug --download-ver v3.3.9
etcd-dump-metrics --download-ver v3.3.9 > Documentation/metrics/v3.3.9