From 8fbef5ae83913d51f32e291a31a7bc6d4fddec01 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 24 Jul 2023 14:36:54 +0200 Subject: [PATCH] grafana - set defaut dashboard --- templates/conf/grafana.ini.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/conf/grafana.ini.j2 b/templates/conf/grafana.ini.j2 index a066094..958daa6 100644 --- a/templates/conf/grafana.ini.j2 +++ b/templates/conf/grafana.ini.j2 @@ -1,3 +1,10 @@ [server] domain = {{ grafana_domain }} root_url = %(protocol)s://%(domain)s + +[dashboards] +{% if prometheus_cloudflare_exporter_targets is defined %} +default_home_dashboard_path = /etc/grafana/provisionning/dashboards/overview_cf.json +{% else %} +default_home_dashboard_path = /etc/grafana/provisionning/dashboards/overview.json +{% endif %}