最近,由于现场使用的 Grafana-v8.4.10 版本被扫描出安全漏洞,于是将Grafana版本升级到官方发布的 Grafana-v10.4.19+security-01 安全版本。
版本升级前,需要将相关的 Dashboard 都导出来到本地备份,升级后再将导出的 Dashboard 再导入进去。
导入后发现,部分使用了 AngularJS 的老旧的 Visualizations 出现弃用(deprecated)的提示(如下图所示)。

虽然Grafana 10.x版本目前还可以支持,但是Grafana 11以后的版本会取消支持。因此需要迁移到新的可视化界面。
查询了Grafana官网,发现官方已经给出了迁移建议。

我这边主要涉及到Graph (old)以及Table (old)这两类,Graph (old) 需要迁移到 Time Series,Table (old) 需要迁移到 Table。

另外,新版本的 Grafana 也给出了推荐的Chart,平台自带,直接应用,还是很方便的。

参考:
https://grafana.com/docs/grafana/v10.4/developers/angular_deprecation/angular-plugins/
https://grafana.com/docs/grafana/v11.1/developers/angular_deprecation/angular-plugins/
https://grafana.com/docs/grafana/v12.1/developers/angular_deprecation/angular-plugins/