Grafana

Grafana

1.概述

Grafana是一个开源指标分析和可视化套件。Grafana提供了丰富的图表和仪表盘组件,可以将数据以各种形式进行可视化展示,帮助用户更直观地理解数据。

安装环境:

hostnameIP要安装的应用应用版本
服务端localhost.localdomain172.16.12.128lamp架构
zabbix server
zabbix agent
grafana
系统RedHat-8
httpd-2.4.57
MariaDB-10.5.22
php-7.4.33
zabbix-5.0.38

2.安装grafana

[root@localhost ~]# yum list all| grep grafana
Failed to set locale, defaulting to C.UTF-8
grafana.x86_64                                                    7.5.9-4.el8                                                       AppStream         
grafana-pcp.x86_64                                                3.1.0-1.el8                                                       AppStream         
[root@localhost ~]# yum -y install grafana

#启动grafana
[root@localhost ~]# systemctl enable --now grafana-server
[root@localhost ~]# ss -antl
State       Recv-Q       Send-Q             Local Address:Port              Peer Address:Port      
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                      0.0.0.0:22                     0.0.0.0:*         
LISTEN      0            128                         [::]:10050                     [::]:*         
LISTEN      0            128                         [::]:10051                     [::]:*         
LISTEN      0            80                             *:3306                         *:*         
LISTEN      0            128                            *:80                           *:*         
LISTEN      0            128                         [::]:22                        [::]:*         
LISTEN      0            128                            *:3000                         *:*         

打开网页登录 192.168.200.39:3000

在这里插入图片描述

3.安装zabbix插件

[root@localhost ~]# grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 4.1.5
from: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/4.1.5/download
into: /var/lib/grafana/plugins

✔ Installed alexanderzobnin-zabbix-app successfully 

Restart grafana after installing plugins . <service grafana-server restart>
[root@localhost ~]# systemctl restart grafana-server

在这里插入图片描述
在这里插入图片描述

4.添加数据源

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

5.创建dashboard

生成内存使用率可视化图
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
生成CPU使用率可视化图

在这里插入图片描述

在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值