1.下载文件
复制官网上的下载地址,下载到本地:
wget https://github.com/prometheus/prometheus/releases/download/v2.26.0/prometheus-2.26.0.linux-amd64.tar.gz
2.解压,并运行二进制。
tar -zxvf prometheus-2.26.0.linux-amd64.tar.gz
cd prometheus-2.26.0.linux-amd64/
./prometheus
3.访问9090端口,可以浏览Prometheus自带的UI: