cuigh / prometheus

The Prometheus monitoring system and time series database.
https://prometheus.io/
Apache License 2.0
3 stars 2 forks source link

WIP: Swarm service mode (VIP) #6

Closed WTFKr0 closed 5 years ago

WTFKr0 commented 5 years ago

A first attempt to discover services endpoints (VIP) New label prometheus.mode To switch to service mode, juste set prometheus.mode=service

/closes #5

for testing, i do :

docker service create \
--network prom_net \
-l "prometheus.enable=true" \
-l "prometheus.mode=service" \
-l "prometheus.port=80" \
-l "prometheus.network=prom_net" \
-l "prometheus.path=/service-path" \
--replicas=5 \
--name=nginxtest \
nginx:alpine

Prometheus should discover only 1 target on the swarm service VIP

WTFKr0 commented 5 years ago

Have you got an automatic process to rebuild the cuigh/prometheus docker image ? I think the latest is synced with this master branch right ?

cuigh commented 5 years ago

No, it's hard to configure automatic build for Prometheus on Docker hub. I just updated latest tag manually.

WTFKr0 commented 5 years ago

ok thanx no pb