From 79c56d98e64255cedbe1932d75f1ec4a149f09a5 Mon Sep 17 00:00:00 2001 From: Joseph Barnes Date: Tue, 17 Oct 2023 18:19:10 -0500 Subject: [PATCH] Fixed a spacing issue in grafana template --- docs/layouts/partials/templates/grafana/dashboard.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/layouts/partials/templates/grafana/dashboard.html b/docs/layouts/partials/templates/grafana/dashboard.html index 8b5db4f77..3813aad36 100644 --- a/docs/layouts/partials/templates/grafana/dashboard.html +++ b/docs/layouts/partials/templates/grafana/dashboard.html @@ -1,3 +1,6 @@ +{{ $types := slice "Log" "Metric" }} +{{ $alerts := where .alerts "visible" true }} +{{ $alerts := where $alerts "type" "in" $types }} { "__inputs": [], "__elements": {}, @@ -26,9 +29,6 @@ "links": [], "liveNow": false, "panels": [ - {{ $types := slice "Log" "Metric" }} - {{ $alerts := where .alerts "visible" true }} - {{ $alerts := where $alerts "type" "in" $types }} {{ range $idx, $value := sort $alerts "name" "asc" }}{{ if ne $idx 0}}, {{ end }} { "title": "{{ $value.name }}",