etcd/tools/etcd-dump-metrics
Gyuho Lee 3eea37cf31 tools/etcd-dump-metrics: validate exec cmd args
To prevent arbitrary command invocations.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2020-11-25 10:37:52 -08:00
..

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

# for latest master 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