diff options
author | Emile <hanemile@protonmail.com> | 2019-10-09 19:49:32 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-09 19:49:32 +0200 |
commit | 3c5ea5c61d6d4ceaf3c852da9ebf4d2dfe9e59c0 (patch) | |
tree | cc28797bd82f5615fdc5f0cbcaec7572d0674c22 | |
parent | 7a01fad193f94b34ac7c4e10de82bd12047ca328 (diff) |
added a prometheus file scraping the scoreboard
(http → https redirect temprarily disabled
-rw-r--r-- | docker-compose.yml | 5 | ||||
-rw-r--r-- | prometheus.yml | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 9871f1f..453e2ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,6 +61,7 @@ services: scoreboard: image: "circus-scoreboard:latest" + container_name: "scoreboard" volumes: - "/var/run/docker.sock:/var/run/docker.sock:ro" ports: @@ -71,8 +72,8 @@ services: - "traefik.enable=true" - "traefik.http.routers.scoreboard.entrypoints=web" - "traefik.http.routers.scoreboard.rule=Host(`scoreboard.${HOSTNAME}`)" - - "traefik.http.middlewares.scoreboard-https-redirect.redirectscheme.scheme=https" - - "traefik.http.routers.scoreboard.middlewares=scoreboard-https-redirect" + #- "traefik.http.middlewares.scoreboard-https-redirect.redirectscheme.scheme=https" + #- "traefik.http.routers.scoreboard.middlewares=scoreboard-https-redirect" - "traefik.http.routers.scoreboard-secure.entrypoints=websecure" - "traefik.http.routers.scoreboard-secure.rule=Host(`scoreboard.${HOSTNAME}`)" - "traefik.http.routers.scoreboard-secure.tls=true" diff --git a/prometheus.yml b/prometheus.yml new file mode 100644 index 0000000..c7067c3 --- /dev/null +++ b/prometheus.yml @@ -0,0 +1,5 @@ +scrape_configs: + - job_name: 'scoreboard' + scrape_interval: 5s + static_configs: + - targets: ['scoreboard:8080'] |