运维学习之部署Grafana

sudo nohup wget https://dl.grafana.com/oss/release/grafana-10.1.1.linux-amd64.tar.gz &后台下载压缩包,然后按一下回车键。

ps -aux | grep 15358发现有两条记录,就是还在下载中。

ps -aux | grep 15358发现有一条记录,并且tail -n 10 nohup.out发现有'grafana-10.1.1.linux-amd64.tar.gz' saved [109275125/109275125]这样的字样,就是下载完成。

tar -zxf grafana-10.1.1.linux-amd64.tar.gz -C /opt进行解压。

/opt/grafana-10.1.1/bin/grafana-server启动,发现报错如下:

bash 复制代码
Deprecation warning: The standalone 'grafana-server' program is deprecated and will be removed in the future. Please update all uses of 'grafana-server' to 'grafana server'
Grafana server is running with elevated privileges. This is not recommended
Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath

/opt/grafana-10.1.1/bin/grafana server --config="/opt/grafana-10.1.1/conf/defaults.ini" --homepath=/opt/grafana-10.1.1就可以成功解决上边问题启动起来。

在自己浏览器里边输入服务器ip:3000,就可以进入到下边的页面:

账户:admin,密码:admin,然后点击"Log in"按钮。

设置新密码。

点击"三"。

选择"Dashboards"。

点击"New",然后点击"Import"。

输入1860,然后点击Load

先点击输入框,然后点击"Configure a new data source"

选择Promethus

然后回到"Dashboards"页面,选择数据源。

点击"Import"

最后结果如下:

此文章为9月Day 11学习笔记,内容来源于极客时间《运维监控系统实战笔记》

相关推荐
小政同学2 小时前
【NFS故障】共享的文件无法执行
linux·运维·服务器
lwf0061642 小时前
导数学习日记
学习·算法·机器学习
ch3nyuyu2 小时前
Ubuntu(乌班图)基础指令
linux·运维·网络
qeen872 小时前
【编程日记】现阶段总结
学习
挽安学长3 小时前
保姆级教程,通过GACCode使用Claude Code Desktop!
运维·服务器
firstacui3 小时前
MGRE实验
运维·服务器·网络
白菜欣4 小时前
Linux —《开发三件套:gcc/g++、gdb、make/Makefile 全解析》
linux·运维
何中应4 小时前
Grafana如何给列表设置别名
运维·grafana·监控
MXsoft6185 小时前
运维的尽头,是把“救火”变成“算命”
运维
大卡片5 小时前
IO模型与并发服务器设计
运维·服务器·网络