运维学习之部署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学习笔记,内容来源于极客时间《运维监控系统实战笔记》

相关推荐
Amazing_Cacao1 小时前
深度观察 | 从“产区玄学”到“液态战场”:精品巧克力的终极试金石
学习
炘爚2 小时前
深入解析printf缓冲区与fork进程复制机制
linux·运维·算法
workflower2 小时前
注塑机行业目前自动化现状分析
运维·人工智能·语言模型·自动化·集成测试·软件工程·软件需求
深蓝海拓2 小时前
S7-1500PLC学习笔记:MOVE_BLK、MOVE_BLK_VARIANT、BLKMOV的区别
笔记·学习·plc
小义_2 小时前
随笔 3(Linux)
linux·运维·服务器·云原生·红帽
#六脉神剑3 小时前
MySQL参数调优:十个关键参数助力数据库性能数倍提升
运维·mysql
darkhorsefly3 小时前
玩24算的益处
学习·游戏·24算
cccccc语言我来了3 小时前
Linux(10)进程概念
linux·运维·服务器
伐尘3 小时前
【linux】查看空间(内存、磁盘、文件目录、分区)的几个命令
linux·运维·网络
倔强的胖蚂蚁4 小时前
x2openEuler 辅助机完整部署教程
运维·云原生