部署prometheus监控平台
下载安装包:
wget https:
go1.8.3.linux-amd64.tar.gz
解压至/usr/local下:
tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
编辑/etc/profile vim /etc/profile
添加 export PATH=$PATH:/usr/local/go/bin
source /etc/profile
go version
tar -vxf prometheus-2.3.2.linux-amd64.tar.gz -C /usr/local/
[root@server4 mnt]# cd /usr/local/prometheus-2.3.2.linux-amd64/
[root@server4 prometheus-2.3.2.linux-amd64]# ln -sv /usr/local/prometheus-2.3.2.linux-amd64/ /usr/local/Prometheus
‘/usr/local/Prometheus’ -> ‘/usr/local/prometheus-2.3.2.linux-amd64/’
修改yml文件改为自己的ip vim prometheus.yml 执行脚本
./prometheus
访问测试:
|