From bdd4b7751ffafc3eb69246dd8c605dbd94513a05 Mon Sep 17 00:00:00 2001 From: bboykin87 <52140742+bboykin87@users.noreply.github.com> Date: Sun, 24 Oct 2021 17:10:28 -0400 Subject: [PATCH 1/3] fx'd bind mount for prometheus config --- docker-compose/prometheus-grafana/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/prometheus-grafana/docker-compose.yml b/docker-compose/prometheus-grafana/docker-compose.yml index 734ff04..4f5c253 100755 --- a/docker-compose/prometheus-grafana/docker-compose.yml +++ b/docker-compose/prometheus-grafana/docker-compose.yml @@ -14,7 +14,7 @@ services: ports: - "9090:9090" volumes: - - /etc/prometheus:/config + - /config:/etc/prometheus - prometheus-data:/prometheus restart: unless-stopped command: @@ -27,4 +27,4 @@ services: - "3000:3000" volumes: - grafana-data:/var/lib/grafana - restart: unless-stopped \ No newline at end of file + restart: unless-stopped From bb336b32645022137fcf8e170f1d784ba53a2bdf Mon Sep 17 00:00:00 2001 From: bboykin87 <52140742+bboykin87@users.noreply.github.com> Date: Sun, 24 Oct 2021 17:43:23 -0400 Subject: [PATCH 2/3] fix alignment --- docker-compose/prometheus-grafana/config/prometheus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/prometheus-grafana/config/prometheus.yml b/docker-compose/prometheus-grafana/config/prometheus.yml index 11191d3..71a19b5 100755 --- a/docker-compose/prometheus-grafana/config/prometheus.yml +++ b/docker-compose/prometheus-grafana/config/prometheus.yml @@ -18,8 +18,8 @@ scrape_configs: # Example job for node_exporter # - job_name: 'node_exporter' - # static_configs: - # - targets: ['node_exporter:9100'] + # static_configs: + # - targets: ['node_exporter:9100'] # Example job for cadvisor # - job_name: 'cadvisor' From 7f5a3a5bf437acf961e125348145518ce10107cd Mon Sep 17 00:00:00 2001 From: bboykin87 <52140742+bboykin87@users.noreply.github.com> Date: Sun, 24 Oct 2021 17:44:49 -0400 Subject: [PATCH 3/3] config file location --- docker-compose/prometheus-grafana/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/prometheus-grafana/docker-compose.yml b/docker-compose/prometheus-grafana/docker-compose.yml index 4f5c253..d90b82d 100755 --- a/docker-compose/prometheus-grafana/docker-compose.yml +++ b/docker-compose/prometheus-grafana/docker-compose.yml @@ -18,7 +18,7 @@ services: - prometheus-data:/prometheus restart: unless-stopped command: - - "--config.file=/config/prometheus.yml" + - "--config.file=/etc/prometheus/prometheus.yml" grafana: image: grafana/grafana:latest