logger=plugin.signature.validator t=2024-05-29T02:01:56.628406624Z level=warn msg="Permitting unsigned plugin. This is not recommended" pluginId=aliyun_cms_grafana_datasource
logger=plugins.validator.angular t=2024-05-29T02:01:56.628758831Z level=error msg="Refusing to initialize plugin because it's using Angular, which has been disabled" pluginId=aliyun_cms_grafana_datasource
logger=plugins.validation t=2024-05-29T02:01:56.628768492Z level=error msg="Plugin validation failed" pluginId=aliyun_cms_grafana_datasource error="angular plugins are not supported"
logger=plugins.external.registration t=2024-05-29T02:01:56.747148416Z level=warn msg="Skipping External Service Registration. The feature is behind a feature toggle and needs to be enabled."
原因:
由于AngularJS 是一個(gè)老舊的前端框架霎迫,其活躍開發(fā)已停止多年帘靡,存在安全風(fēng)險(xiǎn)。Grafana 從 v5 開始轉(zhuǎn)向 React描姚。
解決方法:
修改grafana配置文件(defalut.ini)中的下面參數(shù),讓它支持 AngularJS 插件
# Controls if old angular plugins are supported or not.
angular_support_enabled = true
需要關(guān)注的:
grafana版本計(jì)劃
Grafana v9 及以后: 引入全局服務(wù)器配置選項(xiàng),控制是否啟用 Angular 插件支持朝扼。
Grafana 11: 默認(rèn)配置將更改為移除對(duì) AngularJS 的支持,預(yù)計(jì) 2024 年 4 月預(yù)覽發(fā)布擎颖,5 月正式發(fā)布。
Grafana 12: 計(jì)劃完全移除對(duì) Angular 插件的支持搂捧,包括移除 angular_support_enabled 配置參數(shù)。