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

grafana安装及使用教程详解

(编辑:jimmy 日期: 2024/9/17 浏览: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的安装和配置教程详解
一文看懂荣耀MagicBook Pro 16
荣耀猎人回归!七大亮点看懂不只是轻薄本,更是游戏本的MagicBook Pro 16.
人们对于笔记本电脑有一个固有印象:要么轻薄但性能一般,要么性能强劲但笨重臃肿。然而,今年荣耀新推出的MagicBook Pro 16刷新了人们的认知——发布会上,荣耀宣布猎人游戏本正式回归,称其继承了荣耀 HUNTER 基因,并自信地为其打出“轻薄本,更是游戏本”的口号。
众所周知,寻求轻薄本的用户普遍更看重便携性、外观造型、静谧性和打字办公等用机体验,而寻求游戏本的用户则普遍更看重硬件配置、性能释放等硬核指标。把两个看似难以相干的产品融合到一起,我们不禁对它产生了强烈的好奇:作为代表荣耀猎人游戏本的跨界新物种,它究竟做了哪些平衡以兼顾不同人群的各类需求呢?