Files
windows_exporter/contrib/mixin/dashboard.jsonnet
T
Jan-Otto Kröpke 018ec75223 mixin: move kubernetes to docs, dashboard and rendered rules to contrib
kubernetes/ moves to docs/kubernetes/, dashboard/ to contrib/dashboard/,
and the rendered Prometheus rules and alerts to contrib/monitoring/ with
a README that says how to use and regenerate them.

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2026-10-17 19:26:11 +00:00

14 lines
667 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)
}