Upgrade Grafana from v11.6.2 to v13.0.1 and Fix dashboard datasource referenes#8882
Open
shajjar-emumba wants to merge 2 commits into
Open
Upgrade Grafana from v11.6.2 to v13.0.1 and Fix dashboard datasource referenes#8882shajjar-emumba wants to merge 2 commits into
shajjar-emumba wants to merge 2 commits into
Conversation
… plugin installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pr-type/bug-fix,pr-type/feature-development, etc.Summary
Upgrades the bundled Grafana image (devlake-dashboard) from v11.6.2 to v13.0.1.
The primary motivation for this upgrade is native Git Sync support, which reached GA in Grafana v13. Organizations using DevLake often build and maintain custom dashboards on top of DevLake data and also Grafana v13 brings a range of improvements worth exploring.
Changes
grafana/DockerfileFROM grafana/grafana:11.6.2→FROM grafana/grafana:13.0.1RUN grafana-cli plugins install grafana-piechart-panelgrafana-cli(hyphenated) was deprecated in v10 and fully removed in v13grafana-piechart-panelwas deprecated starting from Grafana v8+ and is nowa built-in core panel; no installation needed
grafana/dashboards/*.json(all dashboard files)"datasource": "mysql") to the modern object form(
"datasource": {"type": "mysql", "uid": "mysql"})Does this close any open issues?
Closes 8881
Screenshots
Include any relevant screenshots here.
Other Information
Since all DevLake dashboards are provisioned with
allowUiUpdates: false, users cannot save changes through the Grafana UI. The only way to get modified dashboard JSON back out is to copy it from the dashboard settings panel. In Grafana v13, that copy action now exports the new v2 Kubernetes-style schema by default rather than the classic flat JSON formatIt would be worth also updating the bundled dashboard JSON files to the v2 schema format so that users who customise dashboards and copy the JSON to commit back to their own forks get a format that works with provisioning out of the box. This is not included in the current PR but is a natural follow-up