官网地址:Prometheus - Monitoring system & time series database
# 创建目录,放置Prometheus
mkdir -p /opt/soft/prometheus && cd /opt/soft/prometheus
# 下载
wget http://doc.qfbigdata.com/qf/project/soft/prometheus/prometheus-2.17.1.linux-amd64.tar.gz
# 解压
tar -xvzf prometheus-2.17.1.linux-amd64.tar.gz
# 创建软连
ln -s prometheus-2.17.1.linux-amd64 prom
# 创建目录,存放Prometheus 拉取过来的数据,我们这里选择local storage
mkdir -p /data1/prometheus/data/
# 启动Prometheus
/opt/soft/prometheus/prom/prometheus --storage.tsdb.path="/data1/prometheus/data/" --log.level=debug --web.enable-lifecycle --web.enable-admin-api --config.file=/opt/soft/prometheus/prom/prometheus.yml
# 至此Prometheus就可以正常工作了访问端口9090