Sign inSign up

swarmlibs/prometheus-config-provider

By swarmlibs

Updated almost 2 years ago

Image
Developer tools
0

8.2K

swarmlibs/prometheus-config-provider repository overview

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:59375a00d

Size

4.5 MB

Last updated

almost 2 years ago

docker pull swarmlibs/prometheus-config-provider:0.1.0-rc.11