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

grafana安装及使用教程详解

(编辑:jimmy 日期: 2024/6/27 浏览: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的安装和配置教程详解
高通与谷歌联手!首款骁龙PC优化Chrome浏览器发布
高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。
在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。
预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。
谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。