Add pushgateway to the stack (#139)

* Add pushgateway to the stack

* Comment out pushgateway usage
This commit is contained in:
Moshe Zada 2020-10-01 10:30:42 +03:00 committed by GitHub
parent 119be0cd42
commit 93e40128fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

View File

@ -25,8 +25,10 @@ services:
links:
- cadvisor:cadvisor
- alertmanager:alertmanager
# - pushgateway:pushgateway
depends_on:
- cadvisor
# - pushgateway
networks:
- back-tier
restart: always
@ -102,3 +104,12 @@ services:
- front-tier
restart: always
# pushgateway:
# image: prom/pushgateway
# restart: always
# expose:
# - 9091
# ports:
# - "9091:9091"
# networks:
# - back-tier

View File

@ -19,10 +19,13 @@ services:
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.enable-lifecycle'
- '--web.enable-admin-api'
ports:
- 9090:9090
depends_on:
- cadvisor
# - pushgateway
networks:
- monitor-net
deploy:
@ -107,3 +110,13 @@ services:
restart_policy:
condition: on-failure
# pushgateway:
# image: prom/pushgateway
# deploy:
# mode: global
# restart_policy:
# condition: on-failure
# ports:
# - 9091:9091
# networks:
# - monitor-net

View File

@ -61,6 +61,14 @@ scrape_configs:
- 'tasks.node-exporter'
type: 'A'
port: 9100
# - job_name: 'pushgateway'
# scrape_interval: 10s
# dns_sd_configs:
# - names:
# - 'tasks.pushgateway'
# type: 'A'
# port: 9091
# static_configs:
# - targets: ['node-exporter:9100']