From 681b7b2d72d8322f66374253c32a3aaf4af9d31c Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 20 Jul 2023 10:04:33 +0200 Subject: [PATCH] add nginx dashboard provisionning --- tasks/server/grafana-provisioning.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/server/grafana-provisioning.yml b/tasks/server/grafana-provisioning.yml index 9b510b1..1256b66 100644 --- a/tasks/server/grafana-provisioning.yml +++ b/tasks/server/grafana-provisioning.yml @@ -272,3 +272,13 @@ mode: '0750' when: prometheus_kong_exporter_targets is defined notify: "grafana-prometheus-restart" + +- name: "grafana-prometheus | import grafana nginx dashboard" + copy: + src: dashboards/nginx.json + dest: /opt/docker-compose/grafana-prometheus/dashboards/nginx.json + owner: '1000' + group: '1000' + mode: '0750' + when: prometheus_nginx_exporter_targets is defined + notify: "grafana-prometheus-restart"