zabbix与grafana组合

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
请添加图片描述
请添加图片描述

请添加图片描述

请添加图片描述
请添加图片描述

请添加图片描述
请添加图片描述请添加图片描述
//系统自带模板在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值