diff --git a/docker/blocks/prometheus/fig b/docker/blocks/prometheus/fig index b4979918149..ec4dd8e4b16 100644 --- a/docker/blocks/prometheus/fig +++ b/docker/blocks/prometheus/fig @@ -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: diff --git a/docker/blocks/prometheus/prometheus.yml b/docker/blocks/prometheus/prometheus.yml index f3e8c8c3469..35be33b80a7 100644 --- a/docker/blocks/prometheus/prometheus.yml +++ b/docker/blocks/prometheus/prometheus.yml @@ -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']