下载rpm包
[root@xing ~]# rpm -ivh grafana-6.6.0-1.x86_64.rpm
启动
[root@xing ~]# systemctl start grafana-server
查看端口
访问
192.168.20.150:3000
账号admin密码admin
可以设置新密码不设置点击skip即可
大功告成
设置颜色
点击preferences
安装zabbix插件
新建一个zabbix数据源
导入dashbord模板
查看默认插件
使用命令行装插件
[root@xing ~]# grafana-cli
Plugins 管理插件
Admin Grafana管理
[root@xing ~]# grafana-cli plugins --help
NAME:
Grafana cli plugins - Manage plugins for grafana
USAGE:
Grafana cli plugins command [command options] [arguments…]
COMMANDS:
install install <plugin version (optional)>
list-remote list remote available plugins
list-versions list-versions
update, upgrade update
update-all, upgrade-all update all your installed plugins
ls list all installed plugins
uninstall, remove uninstall
OPTIONS:
–help, -h show help
取出zabbix
安装 后不加版本默认安装最新版本
[root@xing ~]# grafana-cli plugins install alexanderzobnin-zabbix-app
或者手动下载
[root@xing ~]# wget https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/4.0.1/download
下载地址
放到了这里
解压
[root@xing plugins]# unzip alexanderzobnin-zabbix-app-4.0.1.zip
重启服务
[root@xing plugins]# systemctl restart grafana-server
点击enable
创建数据源
添加这些
把这三个都导入进去
查看