mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
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>
8 lines
319 B
Plaintext
8 lines
319 B
Plaintext
{
|
|
local nodemixin = import '../lib/prom-mixin.libsonnet',
|
|
grafanaDashboards+:: {
|
|
'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,
|
|
},
|
|
}
|