Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

thxCode/rancher1.x-exporter

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published