mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 18:19:04 +02:00
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
14 lines
670 B
Jsonnet
14 lines
670 B
Jsonnet
// Renders the sample dashboards into ../../dashboard. Run with
|
|
// jsonnet -J vendor -S -m <directory>. The sample dashboards show every
|
|
// collector; mixin users select theirs with _config.collectors.
|
|
local manifest = import 'lib/manifest.libsonnet';
|
|
local mixin = (import 'mixin.libsonnet') + {
|
|
_config+:: { collectors: { [collector]: true for collector in std.objectFields(super.collectors) } },
|
|
};
|
|
|
|
// The full dashboard keeps the file name it had before the tab dashboards.
|
|
{
|
|
[if name == 'windows-exporter.json' then 'windows-exporter-dashboard.json' else name]: manifest(mixin.grafanaDashboards[name])
|
|
for name in std.objectFields(mixin.grafanaDashboards)
|
|
}
|