mixin: add a dashboard per tab next to the full dashboard (#2678)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-11 16:29:56 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent b3d043d9dc
commit 1cdea1f42a
29 changed files with 34450 additions and 196 deletions
+5 -3
View File
@@ -27,7 +27,7 @@ their runtime behavior.
and examples. [`docs/collector-template.md`](docs/collector-template.md) is the
documentation template.
- [`contrib/mixin`](contrib/mixin): Jsonnet recording rules, alerts and dashboard
sources. [`dashboard`](dashboard) contains the generated Grafana dashboard;
sources. [`dashboard`](dashboard) contains the generated Grafana dashboards;
[`docs/runbooks`](docs/runbooks) documents the alerts.
- [`installer`](installer), [`kubernetes`](kubernetes) and [`tools`](tools): MSI
packaging, deployment examples, CI fixtures and end-to-end helpers. The CI
@@ -178,8 +178,10 @@ running unless the user requests changes to it.
Read [`contrib/mixin/README.md`](contrib/mixin/README.md) and
[`dashboard/README.md`](dashboard/README.md) before editing monitoring artifacts.
Edit the Jsonnet/Grafonnet source under `contrib/mixin/dashboards`, including its
tab modules and shared builders, and regenerate
`dashboard/windows-exporter-dashboard.json`. Do not hand-edit generated JSON.
tab modules and shared builders, and regenerate `dashboard/windows-exporter-*.json`:
the full dashboard `windows-exporter-dashboard.json` and one dashboard per tab.
Do not hand-edit generated JSON. Tab dashboards keep only the variables their
panels reference, so reference variables as `$name` or `${name}`.
Gate every tab, row, panel and variable on the collectors it queries with
`on('<collector>')` (names from `_config.collectors`), and run
`jsonnet -J vendor tests/dashboard.test.jsonnet` to check the layout for several