Upgrade Grafana from v11.6.2 to v13.0.1 and Fix dashboard datasource referenes#8882
Upgrade Grafana from v11.6.2 to v13.0.1 and Fix dashboard datasource referenes#8882shajjar-emumba wants to merge 2 commits into
Conversation
… plugin installation
|
Hi @klesh , I noticed the Also since this is a major version upgrade, there may be edge cases or community-facing features that rely on the older Grafana version that I might have missed. A thorough review from the team would be really appreciated. Thank you! |
I think you need to update https://github.com/apache/incubator-devlake/blob/main/.github/workflows/grafana-dashboards-check.yml#L34 to reflect the new syntax. |
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