回滚操作:
删除insight文件夹 将bak还原 重启服务
二、新版本直接打开开关
Insightserver中修改配置config/prometheus.properties,开关+gdbip
---安装gateway
tar -zxvf prometheus-2.9.1.linux-amd64.tar.gz -C /home
systemctl daemon-reload
http://10.229.46.60:9090/,http://10.229.46.60:9091/
--安装gateway-
31.144到解压安装prometheus服务tar zxvf prometheus-2.9.1.linux-amd64.tar.gz -C /home
解压之后安装gateway,tar zxvf pushgateway-0.7.0.linux-amd64.tar.gz -C /usr/local/
1) 进入解压目录,在prometheus.yml文件中配合需要采集的服务器,修改时注意文件中格式
cd /home/prometheus-2.9.1.linux-amd64/
vim prometheus.yml,
- job_name: 'GOLDEN_MONITOR'
static_configs:
- targets: ['10.229.31.144:9090']
labels:
instance: 10.229.31.144:9090
job_name:用来和后面的Grafana进行对接
Targets:写上gateway的本身ip +port即可,控制在哪个端口起页面
启动服务端
#cp /home/prometheus-2.9.1.linux-amd64/prometheus/prometheus.service /usr/lib/systemd/system/
#systemctl daemon-reload
#systemctl start prometheus.service
#systemctl status prometheus.service
#systemctl enable prometheus.service
启动gagetway
cp /usr/local/pushgateway-0.7.0.linux-amd64/pushgateway.service /usr/lib/systemd/system/
或者直接从其他环境拷贝一份
systemctl daemon-reload
systemctl enable pushgateway
systemctl start pushgateway
systemctl status pushgateway
2、浏览器访问http://IP:9090,显示界面则表示安装prometheus服务成功
访问http://IP:9091表示安装gateway服务成功
---安装Grafana安装
yum localinstall grafana-6.3.0-beta4.x86_64.rpm -y
1) 启动服务
systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server
4) 访问
浏览器访问http://IP:3000,出现Grafana界面则表示安