zabbix与grafana组合
1 、grafana安装
[root@localhost src]# yum -y install grafana-8.2.0-1.x86_64.rpm
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository AppStream is listed more than once in the configuration
CentOS-8 - Base - mirrors.aliyun.com 2.7 MB/s | 7.5 MB 00:02
CentOS-8 - Extras - mirrors.aliyun.c 15 kB/s | 10 kB 00:00
CentOS-8 - AppStream - mirrors.aliyu 1.3 MB/s | 9.3 MB 00:07
Extra Packages for Enterprise Linux 459 kB/s | 956 kB 00:02
Extra Packages for Enterprise Linux 1.9 MB/s | 10 MB 00:05
BaseOS 105 MB/s | 2.3 MB 00:00
依赖关系解决。
=====================================================================
软件包 架构 版本 仓库 大小
=====================================================================
安装:
grafana x86_64 8.2.0-1 @commandline 63 M
安装依赖关系:
......
......
[root@localhost src]# systemctl daemon-reload
[root@localhost src]# systemctl start grafana-server
[root@localhost src]# systemctl enable grafana-server
Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.
[root@localhost src]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 0.0.0.0:10050 0.0.0.0:*
LISTEN 0 128 0.0.0.0:10051 0.0.0.0:*
LISTEN 0 128 127.0.0.1:9000 0.0.0.0:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 128 *:3000 *:*
LISTEN 0 80 *:3306 *:*
//安装所需的插件并且重新启动
[root@localhost src]# grafana-cli plugins list-remote
id: abhisant-druid-datasource version: 0.0.6
......
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.
[root@localhost src]# grafana-cli plugins install alexanderzobnin-zabbix-app
✔ Downloaded alexanderzobnin-zabbix-app v4.2.4 zip successfully
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.
[root@localhost src]# service grafana-server restart
Restarting grafana-server (via systemctl): [ OK ]
[root@localhost src]#
2、web页面配置
IP地址加3000端口/login
默认用户名和密码都是admin
搜索zabbix插件
启动
添加数据来源
搜索zabbix,选择zabbix为数据来源
这里的ip地址为服务端,配置完成后点击下面的save&test
//系统自带模板