Zabbix5.0+Grafana可视化试用(九):在Grafana上安装常用插件Plugins
默认Grafana7.0.3已自带一些插件,包括Graph、Stat、Gauge等常用插件,如下图:
可通过官网选择需要的其它插件:https://grafana.com/grafana/plugins,如下
点击需要安装的插件名称,以Clock为例,Installation选项栏中写着如何安装此插件,一般只需通过grafana-cli plugins install来安装插件,如下图为grafana-cli plugins install grafana-cli plugins install grafana-clock-panel:
在Grafana服务器中执行grafana-cli plugins install grafana-clock-panel,如下:
[root@localhost ~]# grafana-cli plugins install grafana-clock-panel
installing grafana-clock-panel @ 1.1.1
from: https://grafana.com/api/plugins/grafana-clock-panel/versions/1.1.1/download
into: /var/lib/grafana/plugins鉁[0m Installed grafana-clock-panel successfully
Restart grafana after installing plugins . <service grafana-server restart>
[root@localhost ~]#
如上提示,完成安装后,需重启grafana:
[root@localhost ~]# systemctl restart grafana-server.service
完成后,即可看到插件列表中已有Clock插件,如下图所示。
grafana-cli常用命令:
List available plugins–列出可用插件
grafana-cli plugins list-remoteInstall the latest version of a plugin–安装插件
grafana-cli plugins install <plugin-id>Install a specific version of a plugin–安装指定版本插件
grafana-cli plugins install <plugin-id> <version>List installed plugins–列出已安装插件
grafana-cli plugins lsUpdate all installed plugins–升级所有插件
grafana-cli plugins update-allUpdate one plugin–升级指定插件
grafana-cli plugins update <plugin-id>Remove one plugin–删除一个插件
grafana-cli plugins remove <plugin-id>Admin commands
Admin commands are only available in Grafana 4.1 and later.
Show all admin commands
grafana-cli adminReset admin password
grafana-cli admin reset-admin-password <new password> resets the password for the admin user using the CLI. You might need to do this if you lose the admin password.
至此,一个插件安装完成,可以从官网https://grafana.com/grafana/plugins处下载并安装更多插件。
以下为我安装的插件列表:
1、Datatable Panel
网址:https://grafana.com/grafana/plugins/briangann-datatable-panel
安装命令:grafana-cli plugins install briangann-datatable-panel
2、Progress List
网址:https://grafana.com/grafana/plugins/corpglory-progresslist-panel
安装命令:grafana-cli plugins install corpglory-progresslist-panel
3、Blendstat
网址:https://grafana.com/grafana/plugins/farski-blendstat-panel
安装命令:grafana-cli plugins install farski-blendstat-panel
4、Cock
网址:https://grafana.com/grafana/plugins/grafana-clock-panel
安装命令:grafana-cli plugins install grafana-clock-panel
5、Pie Chart
网址:https://grafana.com/grafana/plugins/grafana-piechart-panel
安装命令:grafana-cli plugins install grafana-piechart-panel
6、Polystat
网址:https://grafana.com/grafana/plugins/grafana-polystat-panel
安装命令:grafana-cli plugins install grafana-polystat-panel
7、Worldmap Panel
网址:https://grafana.com/grafana/plugins/grafana-worldmap-panel
安装命令:grafana-cli plugins install grafana-worldmap-panel
8、Diagram
网址:https://grafana.com/grafana/plugins/jdbranham-diagram-panel
安装命令:grafana-cli plugins install jdbranham-diagram-panel
9、Analytics Panel
网址:https://grafana.com/grafana/plugins/macropower-analytics-panel
安装命令:grafana-cli plugins install macropower-analytics-panel
10、Multistat
网址:https://grafana.com/grafana/plugins/michaeldmoore-multistat-panel
安装命令:grafana-cli plugins install michaeldmoore-multistat-panel
11、Status Panel
网址:https://grafana.com/grafana/plugins/vonage-status-panel
安装命令:grafana-cli plugins install vonage-status-panel
全部安装完成后如下。