Browse Source
Automatically add a uid to each dashboard. This prevents changing URLs when restarting a grafana pod and re-importing the dashboards via ConfigMaps. Signed-off-by: Stefan Andres <sandres@anaconda.com>pull/3073/head
Stefan Andres
4 months ago
committed by
GitHub
3 changed files with 13 additions and 8 deletions
@ -1,7 +1,7 @@
|
||||
{ |
||||
local nodemixin = import '../lib/prom-mixin.libsonnet', |
||||
grafanaDashboards+:: { |
||||
'nodes.json': nodemixin.new(config=$._config, platform='Linux').dashboard, |
||||
'nodes-darwin.json': nodemixin.new(config=$._config, platform='Darwin').dashboard, |
||||
'nodes.json': nodemixin.new(config=$._config, platform='Linux', uid=std.md5('nodes.json')).dashboard, |
||||
'nodes-darwin.json': nodemixin.new(config=$._config, platform='Darwin', uid=std.md5('nodes-darwin.json')).dashboard, |
||||
}, |
||||
} |
||||
|
Loading…
Reference in new issue