Is there some way to configure dockerswarm_sd_config to read the port or address from a label? For example I'd like to monitor this service that exposes metrics on a different port than the exposed ones:
services: server: image: jnordberg/caddy networks: - public - internal - stats volumes: - data:/data ports: - target: 80 published: 80 mode: host - target: 443 published: 443 mode: host environment: DOCKER_API_VERSION: 1.37 DOCKER_HOST: tcp://docker:2375 CADDY_INGRESS_NETWORKS: public CADDY_DOCKER_CADDYFILE_PATH: /data/Caddyfile deploy: mode: global update_config: parallelism: 10 delay: 10s order: start-first restart_policy: condition: on-failure labels: prometheus.job: caddy prometheus.addr: caddy:2141 << is this possible? placement: constraints: [node.role == manager] -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/943afe18-c7e5-4ec6-b862-4b65034c8227n%40googlegroups.com.