Note:
The repository has been renamed from prometheus-configs-provider to prometheus-config-provider.
This is a simple tool that reads the Docker API and generates Prometheus scrape configs for all Docker configs that have the io.prometheus.scrape_config label set to true.
# docker-stack.yml
configs:
example-scrape-config:
file: ./example-scrape-config.yaml
labels:
- "io.prometheus.scrape_config=true"
With the help of the prometheus-operator/prometheus-operator/tree/main/cmd/prometheus-config-reloader tool, we can automatically reload the Prometheus configuration when the Docker configs are create/update/remove.
Content type
Image
Digest
sha256:9903773c9…
Size
4.5 MB
Last updated
about 2 years ago
docker pull swarmlibs/prometheus-configs-provider:main