docker-exporter

command module
v0.0.0-...-38ca88d Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 7 Imported by: 0

README

docker-exporter

Simple application to expose Docker container running state as Prometheus metrics.

By default, exposes metrics on all interfaces, port 12345

Building

As standalone

From the source directory, run go build

As container

From the source directory, run docker build -t docker-exporter .

Running

As standalone

No configuration is required; run the binary on the local machine.

As container

There are two key things here: mounting the Docker daemon socket to the container and exposing the Prometheus metrics endpoint

Because Docker does not give access to information out of the box, we can override values via environment variables.

  • HOSTNAME allows us to override the host found in os.Hostname()

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