wget https://github.com/prometheus/prometheus/releases/download/v2.3.2/prometheus-2.3.2.linux-amd64.tar.gz
下载GO语言包 和普罗米修斯
tar -C /usr/local -xf go1.8.3.linux-amd64.tar.gz
tar -xf prometheus-2.3.2.linux-amd64.tar.gz -C /usr/local/
vim /etc/profile
export PATH=$PATH:/usr/local/go/bin
source /etc/profile
go version
cd /usr/local/prometheus-2.3.2.linux-amd64/
ln -sv /usr/local/prometheus-2.3.2.linux-amd64/ /usr/local/Prometheus
vim prometheus.yml
static_configs: #添加你所需要监控的IP 端口
- targets: ['localhost:9090']
./prometheus
浏览器IP加端口访问