From 71b2d8bed1aabd363bd7728f01a8edda445cb684 Mon Sep 17 00:00:00 2001 From: Vladimir Shaikovskii Date: Thu, 23 May 2024 15:19:44 +0300 Subject: [PATCH] Fix dashboard uid overriding by grafanaDashboardIDs map --- dashboards/defaults.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/defaults.libsonnet b/dashboards/defaults.libsonnet index 38d2c4a3b..96854c7dd 100644 --- a/dashboards/defaults.libsonnet +++ b/dashboards/defaults.libsonnet @@ -6,7 +6,7 @@ // of the file name and set the timezone to be 'default'. grafanaDashboards:: { [filename]: grafanaDashboards[filename] { - uid: std.md5(filename), + uid: std.get(kubernetesMixin._config.grafanaDashboardIDs, filename, default=std.md5(filename)), timezone: kubernetesMixin._config.grafanaK8s.grafanaTimezone, refresh: kubernetesMixin._config.grafanaK8s.refresh, tags: kubernetesMixin._config.grafanaK8s.dashboardTags,