Skip to content

Replace deprecated grafonnet-lib with grafonnet - #202

Merged
oscar-meroton merged 5 commits into
mainfrom
replace-grafonnet-lib
Aug 11, 2026
Merged

Replace deprecated grafonnet-lib with grafonnet#202
oscar-meroton merged 5 commits into
mainfrom
replace-grafonnet-lib

Conversation

@oscar-meroton

@oscar-meroton oscar-meroton commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

The library grafonnet-lib, used in bb-deployments to generate Grafana dashboards, has been deprecated since 2023. This commit re-implements the dashboards using the official replacement library Grafonnet.
The dashboards are now also configurable using the file config.libsonnet, for setting options like the default timezone or whether to use shared crosshairs.
It's worth noting that the new implementation no longer uses the rule jsonnet_to_json to create the dashboards as it incompatible with the package managing tool Jsonnet bundler, which is the recommended way of installing Grafonnet.

@oscar-meroton
oscar-meroton marked this pull request as draft July 15, 2026 12:53
@oscar-meroton
oscar-meroton force-pushed the replace-grafonnet-lib branch 2 times, most recently from 2d6bfa7 to 1609b54 Compare July 17, 2026 07:02
@oscar-meroton
oscar-meroton marked this pull request as ready for review July 17, 2026 07:30
Comment thread monitoring/grafana/simpledash.bzl Outdated
Comment thread monitoring/grafana/simpledash.bzl Outdated
Comment thread monitoring/grafana/simpledash.bzl Outdated
The library used to generate Grafana dashboards,
`grafonnet-lib`, has been deprecate for quite some
time. This commit re-implements `simpledash` with
the replacement library `grafonnet`.
The tool "Jsonnet Bundler" is now used to manage
`grafonnet` versions and dependencies.
@oscar-meroton
oscar-meroton force-pushed the replace-grafonnet-lib branch from 8e7a8d4 to ea1e8de Compare August 10, 2026 13:45
@oscar-meroton
oscar-meroton force-pushed the replace-grafonnet-lib branch from ea1e8de to 052126a Compare August 11, 2026 09:02
Comment thread monitoring/grafana/run_jsonnet.sh Outdated
Comment thread monitoring/grafana/run_jb.sh
Comment thread monitoring/grafana/run_jb.sh Outdated
Comment thread monitoring/grafana/run_jsonnet.sh Outdated
Co-authored-by: Fredrik Medley <moroten@users.noreply.github.com>
@oscar-meroton
oscar-meroton merged commit 91a3580 into main Aug 11, 2026
3 checks passed
@oscar-meroton
oscar-meroton deleted the replace-grafonnet-lib branch August 11, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants