Panel plugin not found: grafana-piechart-panel 【 修复插件报错】

 

 

 修复插件报错

grafana安装方法https://www.cnblogs.com/hanxing/p/15995121.html  中   docker run -d -p 3000:3000 --name grafana -v /root/grafana-storage:/var/lib/grafana -e "GF_SECURITY_ADMIN_PASSWORD=123.com" grafana/grafana  映射了目录 /root/grafana-storage

把插件下载到 /root/grafana-storage   再映射配置文件添加插件地址

1、拷贝grafana配置文件到本地并修改添加插件目录

docker cp grafana:/usr/share/grafana/conf/defaults.ini   /root/grafana-storage

ls -l  /root/grafana-storage/defaults.ini     修改添加(映射关系   /root/grafana-storage:/var/lib/grafana)

[plugin.piechart]
path = /var/lib/grafana/plugins/grafana-piechart-panel

2、下载解压插件

cd /root/grafana-storage/plugins

wget  https://grafana.com/api/plugins/grafana-piechart-panel/versions/latest/download -O /opt/grafana-piechart-panel.zip

unzip grafana-piechart-panel.zip

3、重新建一个grafana

docker rm -f 1477e9948777  #删除

docker run -d -p 3000:3000 --name grafana -v /root/grafana-storage:/var/lib/grafana -e "GF_SECURITY_ADMIN_PASSWORD=123.com" grafana/grafana  

docker run -d -p 3000:3000 --name grafana -v /root/grafana-storage:/var/lib/grafana -v /usr/share/grafana/conf/defaults.ini:/root/grafana-storage/defaults.ini  -e "GF_SECURITY_ADMIN_PASSWORD=123.com" grafana/grafana

刷新grafana页面

 

 

 

参考https://blog.csdn.net/xujiamin0022016/article/details/105291432

posted on 2022-03-12 12:48  寒星12345678999  阅读(1518)  评论(0编辑  收藏  举报