tech(docker): update prometheus config

This commit is contained in:
Carl Bergquist 2016-08-23 11:50:17 +02:00
parent d0ca4ca3cd
commit 5b9366a9c3
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
prometheus:
build: blocks/prometheus
net: bridge
net: host
ports:
- "9090:9090"
volumes:
@ -8,13 +8,13 @@ prometheus:
node_exporter:
image: prom/node-exporter
net: bridge
net: host
ports:
- "9100:9100"
fake-prometheus-data:
image: grafana/fake-data-gen
net: bridge
net: host
ports:
- "9091:9091"
environment:

View File

@ -22,5 +22,6 @@ scrape_configs:
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
target_groups:
- targets: ['localhost:9090', '172.17.0.1:9091', '172.17.0.1:9100', '172.17.0.1:9150']
static_configs:
#- targets: ['localhost:9090', '172.17.0.1:9091', '172.17.0.1:9100', '172.17.0.1:9150']
- targets: ['localhost:9090', '127.0.0.1:9091', '127.0.0.1:9100', '127.0.0.1:9150']