set port cadvisor in variables

This commit is contained in:
Clément Desvaux 2023-03-20 15:45:03 +01:00
parent aeb3a218d1
commit 326cf07256
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -2,7 +2,6 @@ version: "3"
networks:
grafana:
name: grafana
{% if grafana_traefik_enable is defined %}
traefik:
external: true