https://blog.csdn.net/csolo/article/details/82460539
https://www.cnblogs.com/wangyongqiang/articles/11966113.html
安装步骤:
安装go 语言环境 (Prometheus是使用golang开发的)
linux: https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
windows: https://storage.googleapis.com/golang/go1.8.3.windows-amd64.msi
step1:rz上传tar包,tar解压tar包到/usr/local
tar -xvf go1.8.3.linux-amd64.tar.gz -C /usr/local
step2:添加go命令为系统命令
vim /etc/profile
export PATH=$PATH:/usr/local/go/bin
step3:使操作生效
source /etc/profile
go version //验证一下是否成功
********************************************************************************************
在监控服务器上安装prometheus
官网:https://prometheus.io/download/
step1:下载tar包,并解压到/usr/local下
wget https://github.com/prometheus/prometheus/releases/download/v2.7.1/prometheus-2.7.1. linux-amd64.tar.gz
tar zxvf prometheus-2.7.1.linux-amd64.tar.gz -C /usr/local/
step2:修改yml配置文件
cd /usr/local/prometheus-2.7.1.linux-amd64/
vim prometheus.yml
step3:启动服务
./prometheus --config.file=prometheus.yml &
step4:关闭防火墙,selinux
step5:访问
ip:9001
在被监控环境上安装export
安装grafana
原文:https://www.cnblogs.com/krystal-LA-zx/p/13208923.html