网络编程 
首页 > 网络编程 > 浏览文章

grafana安装及使用教程详解

(编辑:jimmy 日期: 2025/2/1 浏览:3 次 )

1. 下载grafana并安装

1.1 官网下载较慢,在清华镜像站下载

下载链接 https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/

1.2 下载之后上传

上传之后查看

[root@localhost ~]# ls
grafana-7.3.3-1.x86_64.rpm

1.3 yum安装解决依赖关系

yum -y install grafana-7.3.3-1.x86_64.rpm 

2. 开启grafana服务

2.1 开启服务

systemctl start grafana-server

2.2 查看端口验证(grafana默认监听3000端口)

[root@localhost ~]# netstat -nlpt|grep 3000
tcp6  0  0 :::3000     :::*     LISTEN  21185/grafana-serve 

3. 浏览器访问并配置

3.1 打开浏览器输入 IP:3000 访问

例如: 192.168.153.183:3000

3.2 访问成功之后输入默认的用户名和密码登录

默认的用户名和密码均为:admin

grafana安装及使用教程详解

3.3 登陆成功之后配置新的密码

grafana安装及使用教程详解

3.4 成功访问grafana主页

grafana安装及使用教程详解

3.5 添加zabbix插件和clock插件

grafana 默认插件的存放位置为:/var/lib/grafana/plugins
1)

grafana安装及使用教程详解

2)

grafana安装及使用教程详解

3)

grafana安装及使用教程详解

4)

grafana安装及使用教程详解

5)

grafana安装及使用教程详解

6)在服务器安装

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

"htmlcode">
systemctl restart grafana-server

7)

grafana安装及使用教程详解

8)使能 zabbix(clock插件安装之后直接可以使用,无需设置)

grafana安装及使用教程详解

grafana安装及使用教程详解

3.6 添加zabbix数据源

1)

grafana安装及使用教程详解

2)

grafana安装及使用教程详解

3)

grafana安装及使用教程详解

4)输入连接zabbix接口的用户名和密码,用户名为admin,密码为 zabbix

grafana安装及使用教程详解

5)测试成功

grafana安装及使用教程详解

6)导入仪表板

grafana安装及使用教程详解

3.7 创建新的仪表板

grafana安装及使用教程详解

3.8 创建CPU空闲率仪表板

grafana安装及使用教程详解

3.9 添加仪表板

grafana安装及使用教程详解

3.9 添加可用内存仪表板

grafana安装及使用教程详解

3.10 添加时间仪表板

1)

grafana安装及使用教程详解

2)

grafana安装及使用教程详解

3)

grafana安装及使用教程详解

4)

grafana安装及使用教程详解

5)

grafana安装及使用教程详解

6)

grafana安装及使用教程详解

上一篇:一文秒懂Prometheus 介绍及工作原理
下一篇:Prometheus的安装和配置教程详解
微软与英特尔等合作伙伴联合定义“AI PC”:键盘需配有Copilot物理按键
几个月来,英特尔、微软、AMD和其它厂商都在共同推动“AI PC”的想法,朝着更多的AI功能迈进。在近日,英特尔在台北举行的开发者活动中,也宣布了关于AI PC加速计划、新的PC开发者计划和独立硬件供应商计划。
在此次发布会上,英特尔还发布了全新的全新的酷睿Ultra Meteor Lake NUC开发套件,以及联合微软等合作伙伴联合定义“AI PC”的定义标准。