bdelliott / docker-prometheus-json-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-prometheus-json-exporter

A docker image for prometheus-json-exporter

Build and push

docker build . -t quay.io/rackspace/prometheus-json-exporter:$(git describe --always)
docker push quay.io/rackspace/prometheus-json-exporter:$(git describe --always)

Example Usage

# Start python web server
$ python -m SimpleHTTPServer 8000 &

# Start exporter
$ docker run -it \
    -p 7979:7979 \
    -v $PWD:/config \
    -e URL="http://<my.local.ip.addr>:8000/registry_example.json" \
    quay.io/rackspace/prometheus-json-exporter:$(git describe --always)

# Query metrics
$ curl http://localhost:7979/metrics

Note

The example is based on the docker registry output and can be used to establish prometheus monitoring for a private docker regsitry.

About


Languages

Language:Dockerfile 100.0%