etcd/tools/etcd-dump-metrics
Marek Siarkowicz 372042c374 refactor: Use proper variable names for urls
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-03-13 14:48:01 +01:00
..
README.md Doc: add installtion instructions for tools 2022-04-28 01:13:02 -04:00
etcd.go refactor: Use proper variable names for urls 2023-03-13 14:48:01 +01:00
install_darwin.go chore: delete // +build buildtag by `go fix` 2022-12-29 14:17:05 +08:00
install_linux.go chore: delete // +build buildtag by `go fix` 2022-12-29 14:17:05 +08:00
install_windows.go chore: delete // +build buildtag by `go fix` 2022-12-29 14:17:05 +08:00
main.go tests: Use zaptest.NewLogger in places we missed 2022-05-06 12:23:20 +02:00
metrics.go *: move from io/ioutil to io and os packages 2021-10-28 00:05:28 +08:00
utils.go tools/etcd-dump-metrics: automate metrics fetch from release binaries 2018-08-06 09:30:52 -07:00

README.md

etcd-dump-metrics

etcd-dump-metrics provides metrics for the latest main branch, a given endpoint, or version.

Installation

Install the tool by running the following command from the etcd source directory.

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

The installation will place executables in the $GOPATH/bin. If $GOPATH environment variable is not set, the tool will be installed into the $HOME/go/bin. You can also find out the installed location by running the following command from the etcd source directory. Make sure that $PATH is set accordingly in your environment.

  $ go list -f "{{.Target}}" ./tools/etcd-dump-metrics

Alternatively, instead of installing the tool, you can use it by simply running the following command from the etcd source directory.

  $ go run ./tools/etcd-dump-metrics

Usage

The following command should output the usage per the latest development.

  $ etcd-dump-metrics --help

An example of usage detail is provided below.

For the latest main branch

  $ etcd-dump-metrics

For the provided endpoint

  $ goreman start
  $ etcd-dump-metrics --addr http://localhost:2379/metrics

Download specific version to temporary directory to fetch metrics

  $ etcd-dump-metrics --debug --download-ver v3.5.3
  $ etcd-dump-metrics --download-ver v3.5.3