grafana - provisionning - template instead of copy

This commit is contained in:
Ludovic Cartier 2023-07-24 14:38:49 +02:00
parent 8fbef5ae83
commit ddd0827e20

View File

@ -26,7 +26,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana provisioned datasources conf" - name: "grafana-prometheus | import grafana provisioned datasources conf"
copy: template:
src: dashboards/datasources.yaml.j2 src: dashboards/datasources.yaml.j2
dest: /opt/docker-compose/grafana-prometheus/datasources/datasources.yaml dest: /opt/docker-compose/grafana-prometheus/datasources/datasources.yaml
owner: '1000' owner: '1000'
@ -36,7 +36,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana provisioned dashboards conf" - name: "grafana-prometheus | import grafana provisioned dashboards conf"
copy: template:
src: dashboards/dashboard.yaml.j2 src: dashboards/dashboard.yaml.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/dashboard.yaml dest: /opt/docker-compose/grafana-prometheus/dashboards/dashboard.yaml
owner: '1000' owner: '1000'
@ -46,7 +46,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana apache dashboard" - name: "grafana-prometheus | import grafana apache dashboard"
copy: template:
src: dashboards/apache.json.j2 src: dashboards/apache.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/apache.json dest: /opt/docker-compose/grafana-prometheus/dashboards/apache.json
owner: '1000' owner: '1000'
@ -56,7 +56,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana cloudflare dashboard" - name: "grafana-prometheus | import grafana cloudflare dashboard"
copy: template:
src: dashboards/cloudflare.json.j2 src: dashboards/cloudflare.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/cloudflare.json dest: /opt/docker-compose/grafana-prometheus/dashboards/cloudflare.json
owner: '1000' owner: '1000'
@ -66,7 +66,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana docker dashboard" - name: "grafana-prometheus | import grafana docker dashboard"
copy: template:
src: dashboards/docker.json.j2 src: dashboards/docker.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/docker.json dest: /opt/docker-compose/grafana-prometheus/dashboards/docker.json
owner: '1000' owner: '1000'
@ -76,7 +76,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana docker dashboard" - name: "grafana-prometheus | import grafana docker dashboard"
copy: template:
src: dashboards/docker.json.j2 src: dashboards/docker.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/docker.json dest: /opt/docker-compose/grafana-prometheus/dashboards/docker.json
owner: '1000' owner: '1000'
@ -86,7 +86,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana opensearch dashboard" - name: "grafana-prometheus | import grafana opensearch dashboard"
copy: template:
src: dashboards/opensearch.json.j2 src: dashboards/opensearch.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/opensearch.json dest: /opt/docker-compose/grafana-prometheus/dashboards/opensearch.json
owner: '1000' owner: '1000'
@ -96,7 +96,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana haproxy dashboard" - name: "grafana-prometheus | import grafana haproxy dashboard"
copy: template:
src: dashboards/haproxy.json.j2 src: dashboards/haproxy.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/haproxy.json dest: /opt/docker-compose/grafana-prometheus/dashboards/haproxy.json
owner: '1000' owner: '1000'
@ -106,7 +106,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana memcached dashboard" - name: "grafana-prometheus | import grafana memcached dashboard"
copy: template:
src: dashboards/memcached.json.j2 src: dashboards/memcached.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/memcached.json dest: /opt/docker-compose/grafana-prometheus/dashboards/memcached.json
owner: '1000' owner: '1000'
@ -116,7 +116,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana mysqld dashboard" - name: "grafana-prometheus | import grafana mysqld dashboard"
copy: template:
src: dashboards/mysqld.json.j2 src: dashboards/mysqld.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/mysqld.json dest: /opt/docker-compose/grafana-prometheus/dashboards/mysqld.json
owner: '1000' owner: '1000'
@ -126,7 +126,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana network dashboard" - name: "grafana-prometheus | import grafana network dashboard"
copy: template:
src: dashboards/network.json.j2 src: dashboards/network.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/network.json dest: /opt/docker-compose/grafana-prometheus/dashboards/network.json
owner: '1000' owner: '1000'
@ -136,7 +136,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana node-exporter dashboard" - name: "grafana-prometheus | import grafana node-exporter dashboard"
copy: template:
src: dashboards/node-exporter.json.j2 src: dashboards/node-exporter.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/node-exporter.json dest: /opt/docker-compose/grafana-prometheus/dashboards/node-exporter.json
owner: '1000' owner: '1000'
@ -146,7 +146,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana opcache dashboard" - name: "grafana-prometheus | import grafana opcache dashboard"
copy: template:
src: dashboards/opcache.json.j2 src: dashboards/opcache.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/opcache.json dest: /opt/docker-compose/grafana-prometheus/dashboards/opcache.json
owner: '1000' owner: '1000'
@ -156,7 +156,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana overview dashboard" - name: "grafana-prometheus | import grafana overview dashboard"
copy: template:
src: dashboards/overview.json.j2 src: dashboards/overview.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/overview.json dest: /opt/docker-compose/grafana-prometheus/dashboards/overview.json
owner: '1000' owner: '1000'
@ -168,7 +168,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana overview-cf dashboard" - name: "grafana-prometheus | import grafana overview-cf dashboard"
copy: template:
src: dashboards/overview-cf.json.j2 src: dashboards/overview-cf.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/overview.json dest: /opt/docker-compose/grafana-prometheus/dashboards/overview.json
owner: '1000' owner: '1000'
@ -180,7 +180,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana plateform-overview dashboard" - name: "grafana-prometheus | import grafana plateform-overview dashboard"
copy: template:
src: dashboards/plateform-overview.json.j2 src: dashboards/plateform-overview.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/plateform-overview.json dest: /opt/docker-compose/grafana-prometheus/dashboards/plateform-overview.json
owner: '1000' owner: '1000'
@ -192,7 +192,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana plateform-overview-cf dashboard" - name: "grafana-prometheus | import grafana plateform-overview-cf dashboard"
copy: template:
src: dashboards/plateform-overview-cf.json.j2 src: dashboards/plateform-overview-cf.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/plateform-overview.json dest: /opt/docker-compose/grafana-prometheus/dashboards/plateform-overview.json
owner: '1000' owner: '1000'
@ -204,7 +204,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana phpfpm dashboard" - name: "grafana-prometheus | import grafana phpfpm dashboard"
copy: template:
src: dashboards/phpfpm.json.j2 src: dashboards/phpfpm.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/phpfpm.json dest: /opt/docker-compose/grafana-prometheus/dashboards/phpfpm.json
owner: '1000' owner: '1000'
@ -214,7 +214,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana proxmox dashboard" - name: "grafana-prometheus | import grafana proxmox dashboard"
copy: template:
src: dashboards/proxmox.json.j2 src: dashboards/proxmox.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/proxmox.json dest: /opt/docker-compose/grafana-prometheus/dashboards/proxmox.json
owner: '1000' owner: '1000'
@ -224,7 +224,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana redis dashboard" - name: "grafana-prometheus | import grafana redis dashboard"
copy: template:
src: dashboards/redis.json.j2 src: dashboards/redis.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/redis.json dest: /opt/docker-compose/grafana-prometheus/dashboards/redis.json
owner: '1000' owner: '1000'
@ -234,7 +234,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana varnish dashboard" - name: "grafana-prometheus | import grafana varnish dashboard"
copy: template:
src: dashboards/varnish.json.j2 src: dashboards/varnish.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/varnish.json dest: /opt/docker-compose/grafana-prometheus/dashboards/varnish.json
owner: '1000' owner: '1000'
@ -244,7 +244,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana gitlab dashboard" - name: "grafana-prometheus | import grafana gitlab dashboard"
copy: template:
src: dashboards/gitlab.json.j2 src: dashboards/gitlab.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/gitlab.json dest: /opt/docker-compose/grafana-prometheus/dashboards/gitlab.json
owner: '1000' owner: '1000'
@ -254,7 +254,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana postgresql dashboard" - name: "grafana-prometheus | import grafana postgresql dashboard"
copy: template:
src: dashboards/postgresql.json.j2 src: dashboards/postgresql.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/postgresql.json dest: /opt/docker-compose/grafana-prometheus/dashboards/postgresql.json
owner: '1000' owner: '1000'
@ -264,7 +264,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana kong dashboard" - name: "grafana-prometheus | import grafana kong dashboard"
copy: template:
src: dashboards/kong.json.j2 src: dashboards/kong.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/kong.json dest: /opt/docker-compose/grafana-prometheus/dashboards/kong.json
owner: '1000' owner: '1000'
@ -274,7 +274,7 @@
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana nginx dashboard" - name: "grafana-prometheus | import grafana nginx dashboard"
copy: template:
src: dashboards/nginx.json.j2 src: dashboards/nginx.json.j2
dest: /opt/docker-compose/grafana-prometheus/dashboards/nginx.json dest: /opt/docker-compose/grafana-prometheus/dashboards/nginx.json
owner: '1000' owner: '1000'