Attention: This Docker image is specifically designed for the gaming platform and shouldn't be used in other projects. Tags may undergo breaking changes and could be subject to removal.
This repository provides a Prometheus image for the
gaming platform.
Name
ghcr.io/gaming-platform/docker-prometheus:3.7
Configuration
For docker service discovery, the container can be configured as follows:
prometheus:
image: ghcr.io/gaming-platform/docker-prometheus:3.7
command: --config.file=/etc/prometheus/docker.yml
volumes:
- /var/run/docker.sock:/var/run/docker.sockFor dockerswarm service discovery, the container can be configured as follows:
prometheus:
image: ghcr.io/gaming-platform/docker-prometheus:3.7
command: --config.file=/etc/prometheus/dockerswarm.yml
volumes:
- /var/run/docker.sock:/var/run/docker.sockIn both cases, services should be labeled as follows:
services:
app:
image: prom/node-exporter:v1.6.0
labels:
- "prometheus-job=jobname" # required
- "prometheus-port=80" # optional
- "prometheus-path=/metrics" # optional