From aa9e524e73f4b2178396b1c6395a8dfbadc70313 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 21 Jun 2016 11:46:08 +0200 Subject: [PATCH] tech(docker): add node exporter to prometheus --- docker/blocks/prometheus/fig | 6 ++++++ docker/blocks/prometheus/prometheus.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/blocks/prometheus/fig b/docker/blocks/prometheus/fig index ecfcf395d26..b4979918149 100644 --- a/docker/blocks/prometheus/fig +++ b/docker/blocks/prometheus/fig @@ -6,6 +6,12 @@ prometheus: volumes: - /var/docker/prometheus:/prometheus-data +node_exporter: + image: prom/node-exporter + net: bridge + ports: + - "9100:9100" + fake-prometheus-data: image: grafana/fake-data-gen net: bridge diff --git a/docker/blocks/prometheus/prometheus.yml b/docker/blocks/prometheus/prometheus.yml index 5c853622af3..a9616d4ea6c 100644 --- a/docker/blocks/prometheus/prometheus.yml +++ b/docker/blocks/prometheus/prometheus.yml @@ -23,4 +23,4 @@ scrape_configs: # scheme defaults to 'http'. target_groups: - - targets: ['localhost:9090', '172.17.0.1:9091'] + - targets: ['localhost:9090', '172.17.0.1:9091', '172.17.0.1:9100']