首页 > 其他 > 详细

普罗米修斯监控(prometheus)

时间:2020-06-29 18:23:57      阅读:205      评论:0      收藏:0      [点我收藏+]

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

普罗米修斯监控(prometheus)

原文:https://www.cnblogs.com/krystal-LA-zx/p/13208923.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!