rancher1.x-exporter

command module
v0.0.0-...-a1bbc77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 16 Imported by: 0

README

Rancher1.x exporter of Prometheus

An exporter exposes some metrics of Rancher1.x to Prometheus.

    

  

References

Rancher version supported

How to use this image

Running parameters
$ rancher-exporter -h
NAME:
   rancher_exporter - A simple server that scrapes Rancher 1.6.14 stats and exports them via HTTP for Prometheus consumption.

USAGE:
   rancher-exporter [global options] command [command options] [arguments...]

...

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
  --listen_address value     The address of scraping the metrics (default: "0.0.0.0:9173") [$LISTEN_ADDRESS]
  --metric_path value        The path of exposing metrics (default: "/metrics") [$METRIC_PATH]
  --cattle_url value         The URL of Rancher Server API, e.g. http://127.0.0.1:8080 [$CATTLE_URL]
  --cattle_access_key value  The access key for Rancher API [$CATTLE_ACCESS_KEY]
  --cattle_secret_key value  The secret key for Rancher API [$CATTLE_SECRET_KEY]
  --log_level value          Set the logging level (default: "debug") [$LOG_LEVEL]
  --hide_sys                 Hide the system metrics [$HIDE_SYS]
  --help, -h                 show help
  --version, -v              print the version

Start an instance

To start a container, use the following:

$ docker run -d --name test-re -p 9173:9173 -e CATTLE_URL=<cattel_url> -e CATTLE_ACCESS_KEY=<cattel_ak> -e CATTLE_SECRET_KEY=<cattel_sk> maiwj/rancher1.x-exporter

License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL