Skip to content

Commit

Permalink
Merge pull request #937 from oik741/master
Browse files Browse the repository at this point in the history
Fix dashboard uid overriding by grafanaDashboardIDs map
  • Loading branch information
povilasv authored May 24, 2024
2 parents 033a6fb + 71b2d8b commit de834e9
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 de834e9

Please sign in to comment.