环境
CentOS 7.9
安装
1、自行下载
https://prometheus.io/download/
2、命令下载
wget https://github.com/prometheus/prometheus/releases/download/v2.47.2/prometheus-2.47.2.linux-amd64.tar.gz
3、解压
tar -zvf prometheus-2.47.2.linux-amd64.tar.gz mv prometheus-2.47.2.linux-amd64 /home/prometheus
4、配置系统服务
cat > /usr/lib/systemd/system/prometheus.service << EOF [Unit] [Service] ExecStart=/home/prometheus/prometheus --config.file=/home/prometheus/prometheus.yml ExecReload=/bin/kill -HUP \$MAINPID [Install] WantedBy=multi-user.target Alias=dbus-org.fedoraproject.FirewallD1.service EOF
5、启动、查看状态
systemctl start prometheus systemctl status prometheus -l
验证
prometheus默认端口为9090,注意防火墙开启情况
访问对应IP:9090,可查看启动状态
标签:amd64,tar,2.47,接入,Linux,prometheus,Prometheus,linux From: https://www.cnblogs.com/sefuture/p/17807823.html