From 1a2f7172d9885137257b56d8a9fe104f8b2ad7d3 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 8 Mar 2019 15:20:56 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20fichier=20de=20provisioning=20de?= =?UTF-8?q?s=20datasources=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dicos/70_prometheus.xml | 1 + tmpl/grafana-datasources.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tmpl/grafana-datasources.yml diff --git a/dicos/70_prometheus.xml b/dicos/70_prometheus.xml index e62164f..3084985 100644 --- a/dicos/70_prometheus.xml +++ b/dicos/70_prometheus.xml @@ -8,6 +8,7 @@ + prometheus prometheus-alertmanager diff --git a/tmpl/grafana-datasources.yml b/tmpl/grafana-datasources.yml new file mode 100644 index 0000000..5201cfe --- /dev/null +++ b/tmpl/grafana-datasources.yml @@ -0,0 +1,11 @@ +apiVersion: 1 + +datasources: +- name: Prometheus + type: prometheus + access: direct + orgId: 1 + url: http://%%adresse_ip_eth0:9090 + isDefault: true + version: 1 + editable: false \ No newline at end of file