Skip to content

Commit

Permalink
Fix dashboard uid overriding by grafanaDashboardIDs map
Browse files Browse the repository at this point in the history
  • Loading branch information
oik741 committed May 23, 2024
1 parent 033a6fb commit 71b2d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards/defaults.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71b2d8b

Please sign in to comment.