From 532f4efc3abe185a325c73bcc32923bd092ef553 Mon Sep 17 00:00:00 2001 From: Techno Freak Date: Fri, 15 Mar 2024 15:32:32 +0300 Subject: [PATCH] feat: allow bootstrapping Grafana without Loki --- templates/monitoring/grafana/provisioning/datasources.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/monitoring/grafana/provisioning/datasources.yml.j2 b/templates/monitoring/grafana/provisioning/datasources.yml.j2 index a9d8be6..614e3d1 100644 --- a/templates/monitoring/grafana/provisioning/datasources.yml.j2 +++ b/templates/monitoring/grafana/provisioning/datasources.yml.j2 @@ -23,6 +23,7 @@ datasources: version: 1 editable: false +{% if loki_domain is defined %} - name: Loki type: loki access: proxy @@ -38,3 +39,4 @@ datasources: basicAuthPassword: {{ loki_password }} version: 1 editable: false +{% endif %}