Add pushgateway to the stack (#139)
* Add pushgateway to the stack * Comment out pushgateway usage
This commit is contained in:
parent
119be0cd42
commit
93e40128fa
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue