https://github.com/rcbops/docker-prometheus-json-exporter
https://github.com/rcbops/docker-prometheus-json-exporter
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rcbops/docker-prometheus-json-exporter
- Owner: rcbops
- Created: 2017-08-24T17:05:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T19:34:46.000Z (over 7 years ago)
- Last Synced: 2025-01-22T18:30:46.752Z (over 1 year ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 5
- Watchers: 7
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
docker-prometheus-json-exporter
===============================
A docker image for [prometheus-json-exporter](https://github.com/kawamuray/prometheus-json-exporter)
Build and push
==============
```sh
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
=============
```sh
# Start python web server
$ python -m SimpleHTTPServer 8000 &
# Start exporter
$ docker run -it \
-p 7979:7979 \
-v $PWD:/config \
-e URL="http://: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.