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 %}