裸金属环境中部署prometheus

本文详细介绍了如何在裸金属环境中下载并安装Prometheus 2.13.0,包括解压、配置、软链接及启动,最后展示了通过172.25.77.10:9090访问监控界面的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

裸金属环境中部署prometheus

1、下载安装包

wget -c https://github.com/prometheus/prometheus/releases/download/v2.13.0/prometheus-2.13.0.linux-amd64.tar.gz
	%首先先去官网下载对应系统的版本,这里是2.13.0版本

2、安装

[root@test ~]# tar -xf prometheus-2.13.0.linux-amd64.tar.gz -C /usr/local/bin/	%解压到指定目录
[root@test ~]# cd /usr/local/bin
[root@test bin]# ls
prometheus-2.13.0.linux-amd64
[root@test bin]# cd prometheus-2.13.0.linux-amd64/
[root@test prometheus-2.13.0.linux-amd64]# ls
console_libraries  LICENSE  prometheus      promtool
consoles           NOTICE   prometheus.yml  tsdb
[root@test prometheus-2.13.0.linux-amd64]# ln -sv /usr/local/bin/prometheus-2.13.0.linux-amd64/ /usr/local/Prometheus	%制作软连接/usr/local/Prometheus’ -> ‘/usr/local/bin/prometheus-2.13.0.linux-amd64/[root@test prometheus-2.13.0.linux-amd64]# vim prometheus.yml %修改配置文件
	static_configs:
    - targets: ['172.25.77.10:9090']	%访问ip和端口

在这里插入图片描述

[root@test prometheus-2.13.0.linux-amd64]# ./prometheus &		%打入后台运行

在这里插入图片描述

3、网页查看

访问172.25.77.10:9090,可以看到成功进入普罗米修斯
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值