linux安装

linux安装

1.下载文件

复制官网上的下载地址,下载到本地:

wget https://github.com/prometheus/prometheus/releases/download/v2.26.0/prometheus-2.26.0.linux-amd64.tar.gz

image-20200619164127367 2.解压,并运行二进制。

tar -zxvf prometheus-2.26.0.linux-amd64.tar.gz 
cd prometheus-2.26.0.linux-amd64/
./prometheus

image-20200619164235835 3.访问9090端口,可以浏览Prometheus自带的UI:

image-20200619164525215