From ab5f63c0ac41c75ffb27f8531ded18be97249533 Mon Sep 17 00:00:00 2001 From: Edward Marshall Date: Fri, 9 Sep 2016 10:20:52 +0100 Subject: [PATCH] Updated default port to be compliant with reccomendations --- Dockerfile | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09cdc6b..b32f4aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.5-alpine RUN pip install prometheus_client requests -ENV BIND_PORT 1234 +ENV BIND_PORT 9170 ENV IMAGES "prom/prometheus, prom/node-exporter" ADD . /usr/src/app diff --git a/README.md b/README.md index 4783d56..265d0b8 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,20 @@ Exposes metrics of container pulls and stars from the Docker Hub API, to a Prome ## Configuration The image is setup to take two parameters from environment variables: -`BIND_PORT` The port you wish to run the container on, defaults to 1234 +`BIND_PORT` The port you wish to run the container on, defaults to 9170 `IMAGES` The images you wish to monitor, expected in the format "user/image1, user/image2". Can be across different dockerhub users. ## Install and deploy Run manually from Docker Hub: ``` -docker run -d --restart=always -p 1234:1234 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" infinityworks/docker-hub-exporter +docker run -d --restart=always -p 9170:9170 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" infinityworks/docker-hub-exporter ``` Build a docker image: ``` docker build -t . -docker run -d --restart=always -p 1234:1234 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" +docker run -d --restart=always -p 9170:9170 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" ``` ## Docker compose @@ -28,13 +28,13 @@ docker-hub-exporter: tty: true stdin_open: true expose: - - 1234:1234 + - 9170:9170 image: infinityworks/docker-hub-exporter ``` ## Metrics -Metrics will be made available on port 1234 by default +Metrics will be made available on port 9170 by default ``` # HELP docker_hub_pull_count counter of docker_pulls from the public API