docker-cloud-exporter

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

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

Go to latest
Published: Jul 10, 2017 License: MIT Imports: 8 Imported by: 0

README

docker-cloud-exporter

Exposes the health of Stacks, Services, Nodes and Node Clusters from the Docker Cloud API, to a Prometheus compatible endpoint.

Description

The application can be run in a number of ways, the main consumption is the Docker hub image infinityworksltd/docker-cloud-exporter.

Required

  • DOCKERCLOUD_USER // Username of your docker cloud account
  • DOCKERCLOUD_APIKEY // Generated through the docker cloud admin interface

Optional

  • DOCKERCLOUD_NAMESPACE // Specify this if you wish to show metrics for an organisation your user has access to. Specify the name of the org in this env var.
  • METRICS_PATH // Path under which to expose metrics.
  • LISTEN_PORT // Port on which to expose metrics. Defaults to 9174
  • LOG_LEVEL // Optional - Set the logging level, defaults to Info

Install and deploy

Run manually from Docker Hub:

docker run -d -e DOCKERCLOUD_USER="XXXXXXXX" -e DOCKERCLOUD_APIKEY="XXXXXXX" -p 9174:9174 infinityworks/docker-cloud-exporter

Build a docker image:

docker build -t <image-name> .
docker run -d -e DOCKERCLOUD_USER="XXXXXXXX" -e DOCKERCLOUD_APIKEY="XXXXXXX" -p 9174:9174 <image-name>

Docker compose

docker-cloud-exporter:
    tty: true
    stdin_open: true
    environment:
      - DOCKERCLOUD_USER="xxxx"
      - DOCKERCLOUD_APIKEY="xxxxxx"
    expose:
      - 9174:9174
    image: infinityworks/docker-cloud-exporter:latest

Metrics

Metrics will be made available on port 9174 by default, or you can pass environment variable LISTEN_ADDRESS to override this. An example printout of the metrics you should expect to see can be found in METRICS.md.

Metadata

Go Report Card GoDoc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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