栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

zabbix与grafana组合

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

zabbix与grafana组合

zabbix与grafana组合
    • 1.grafana安装
    • 2. 页面配置

1.grafana安装
[root@zabbix ~]# wget https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/grafana-8.2.0-1.x86_64.rpm
--2021-10-11 10:28:26--  https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/grafana-8.2.0-1.x86_64.rpm
正在解析主机 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
正在连接 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:66080608 (63M) [application/x-redhat-package-manager]
正在保存至: “grafana-8.2.0-1.x86_64.rpm”

grafana-8.2.0-1.x86_64.rp 100%[=====================================>]  63.02M  3.01MB/s  用时 16s     

2021-10-11 10:28:44 (3.90 MB/s) - 已保存 “grafana-8.2.0-1.x86_64.rpm” [66080608/66080608])

[root@zabbix ~]# yum 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.

//启动
[root@zabbix ~]# systemctl daemon-reload 
[root@zabbix ~]# systemctl start grafana-server.service 
[root@zabbix ~]# systemctl enable grafana-server.service 
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@zabbix ~]# ss -anltu
Netid      State       Recv-Q      Send-Q           Local Address:Port            Peer Address:Port     
udp        UNCONN      0           0                      0.0.0.0:111                  0.0.0.0:*        
udp        UNCONN      0           0                         [::]:111                     [::]:*        
tcp        LISTEN      0           100                  127.0.0.1:25                   0.0.0.0:*        
tcp        LISTEN      0           128                    0.0.0.0:10050                0.0.0.0:*        
tcp        LISTEN      0           128                    0.0.0.0:10051                0.0.0.0:*        
tcp        LISTEN      0           128                  127.0.0.1:9000                 0.0.0.0:*        
tcp        LISTEN      0           128                    0.0.0.0:111                  0.0.0.0:*        
tcp        LISTEN      0           128                    0.0.0.0:22                   0.0.0.0:*        
tcp        LISTEN      0           128                          *:3000                       *:*        
tcp        LISTEN      0           100                      [::1]:25                      [::]:*        
tcp        LISTEN      0           80                           *:3306                       *:*        
tcp        LISTEN      0           128                       [::]:111                     [::]:*        
tcp        LISTEN      0           128                          *:80                         *:*        
tcp        LISTEN      0           128                       [::]:22                      [::]:*        

//安装所需的插件并且重新启动
[root@zabbix ~]# grafana-cli plugins list-remote
......
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.

[root@zabbix ~]# 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@zabbix ~]# systemctl restart grafana-server.service 
2. 页面配置

IP地址加3000端口/login
默认用户名和密码都是admin


搜索zabbix插件



添加数据来源

搜索zabbix,选择zabbix为数据来源






转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/312700.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号