- 1.grafana安装
- 2. 页面配置
[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.service2. 页面配置
IP地址加3000端口/login
默认用户名和密码都是admin
搜索zabbix插件
添加数据来源
搜索zabbix,选择zabbix为数据来源



