Sign inSign up

swarmlibs/prometheus-configs-provider

By swarmlibs

Updated about 2 years ago

Image
0

260

swarmlibs/prometheus-configs-provider repository overview

Note: The repository has been renamed from prometheus-configs-provider to prometheus-config-provider.

About

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.

Example

# 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.

Tag summary

Content type

Image

Digest

sha256:9903773c9

Size

4.5 MB

Last updated

about 2 years ago

docker pull swarmlibs/prometheus-configs-provider:main