grafa8.0不能按照官方文档进行配置,正确配置如下
1.我这里是tar包启动,建议不要使用yum安装;
mkdri /opt/grafana
cd /opt/grafana
wget https://dl.grafana.com/oss/release/grafana-8.0.0.linux-amd64.tar.gz
tar -zxvf grafana-8.0.0.linux-amd64.tar.gz
2.配置conf/defaults.ini
cd grafana-8.0.0/conf
allow_loading_unsigned_plugins = aliyun_cms_grafana_datasource
3.生成plugins,8.0.0要建立这个plugins文件夹
mkdir /opt/grafana/grafana-8.0.0/public/plugins
cd /opt/grafana/grafana-8.0.0/public/plugins
wget https://github.com/aliyun/aliyun-cms-grafana/releases/download/v2.0/aliyun_cms_grafana_datasource_v2.0.1.tar.gz
tar zxvf aliyun_cms_grafana_datasource_v2.0.1.tar.gz
4.重启 grafan,生效