From 326cf07256fc83b1f625ed057a6dad3c7e699c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Desvaux?= Date: Mon, 20 Mar 2023 15:45:03 +0100 Subject: [PATCH] set port cadvisor in variables --- tasks/server/grafana-provisioning.yml | 10 ++++++++++ templates/compose/grafana-prometheus.yml.j2 | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tasks/server/grafana-provisioning.yml b/tasks/server/grafana-provisioning.yml index 44db3ba..0b07a1d 100644 --- a/tasks/server/grafana-provisioning.yml +++ b/tasks/server/grafana-provisioning.yml @@ -75,6 +75,16 @@ when: prometheus_docker_exporter_targets is defined notify: "grafana-prometheus-restart" +- name: "grafana-prometheus | import grafana docker dashboard" + copy: + src: dashboards/docker.json + dest: /opt/docker-compose/grafana-prometheus/dashboards/docker.json + owner: '1000' + group: '1000' + mode: '0750' + when: prometheus_cadvisor_exporter_targets is defined + notify: "grafana-prometheus-restart" + - name: "grafana-prometheus | import grafana haproxy dashboard" copy: src: dashboards/haproxy.json diff --git a/templates/compose/grafana-prometheus.yml.j2 b/templates/compose/grafana-prometheus.yml.j2 index 9ef8832..27b0c0c 100644 --- a/templates/compose/grafana-prometheus.yml.j2 +++ b/templates/compose/grafana-prometheus.yml.j2 @@ -2,7 +2,6 @@ version: "3" networks: grafana: - name: grafana {% if grafana_traefik_enable is defined %} traefik: external: true