1 在线安装Pie Chart
[root@wyl01 ]# grafana-cli plugins install grafana-piechart-panel
installing grafana-piechart-panel @ 1.3.9
from url: https://grafana.com/api/plugins/grafana-piechart-panel/versions/1.3.9/download
into: /var/lib/grafana/plugins
[root@wyl01 ]# grafana-cli plugins install grafana-piechart-panel
installing grafana-piechart-panel @ 1.3.9
from url: https://grafana.com/api/plugins/grafana-piechart-panel/versions/1.3.9/download
into: /var/lib/grafana/plugins
✔ Installed grafana-piechart-panel successfully
Restart grafana after installing plugins . <service grafana-server restart>
[root@wyl01 ]# systemctl restart grafana-server
2 离线安装Pie Chart
[root@wyl01 ]# cd /var/lib/grafana/plugins/
[root@wyl01 ]# git clone https://github.com/grafana/piechart-panel.git
[root@wyl01 ]# yarn
[root@wyl01 ]# yarn build
[root@wyl01 ]# systemctl restart grafana-server
3 grafana的配置
node_filesystem_size_bytes {instance=~"$node",fstype=~"ext4|xfs"}