mirror of
https://github.com/wahyd4/docker-hub-exporter.git
synced 2026-08-09 04:46:34 +10:00
Updated default port to be compliant with reccomendations
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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 <image-name> .
|
||||
docker run -d --restart=always -p 1234:1234 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" <image-name>
|
||||
docker run -d --restart=always -p 9170:9170 -e IMAGES="infinityworks/ranch-eye, infinityworks/prom-conf" <image-name>
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
Reference in New Issue
Block a user