ubuntu2404安装prometheus监控软件
·
0.参考链接
Ubuntu 22.04安装和配置Prometheus_prometheus ubuntu deb 下载-CSDN博客
各个软件系统版本
ubuntu:2404 查看命令 lsb_release -a
prometheus:prometheus-3.1.0
1.安装过程
#创建目录 /usr/local/prometheus
mkdir /usr/local/prometheus
#下载prometheus
cd /usr/local/prometheus
wget https://github.com/prometheus/prometheus/releases/download/v3.1.0/prometheus-3.1.0.linux-amd64.tar.gz
#解压文件到指定目录并替换prometheus 目录
tar xvfz prometheus-3.1.0.linux-amd64.tar.gz -C /usr/local
rm -rf prometheus
mv prometheus-3.1.0.linux-amd64/ prometheus
#配置安装服务
vim /usr/lib/systemd/system/prometheus.service
[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/prometheus/prometheus \
--config.file /usr/local/prometheus/prometheus.yml
[Install]
WantedBy=multi-user.target
#重启加载服务,启动/开机运行服务/检查服务状态
systemctl daemon-reload
systemctl enable --now prometheus
systemctl status prometheus
所有都正确后
http://192.168.90.165:9090/query
#这里192.168.90.165替换成你的地址

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)