經過centos7.x來部署Prometheuscentos
####同步時間,不然後面監控會有異常!!!!!#######瀏覽器
1. 建立文件夾,上傳軟件包、解壓並將prometheus promtool兩個命令複製到/usr/local/bin目錄下測試
# mkdir -p /Prometheuscentos7
# cp prometheus promtool /usr/local/binblog
# promethus - - versionip
2. 備份配置文件,並將配置文件放到/etc下面部署
# cp prometheus.yml prometheus.yml.bak同步
# mkdir -p /etc/prometheusio
# mv prometheus.yml /etc/Prometheus監控
3. 檢查一下配置文件是否正確&&並運行prometheus(默認的監聽端口9090)
# promtool check config /etc/prometheus/prometheus.yml
# prometheus - -config.file /etc/profmetheus/prometheus.yml
4. 查看監聽端口是否啓動,訪問瀏覽器並測試;
# netstat -anput |grep 9090
瀏覽器訪問:http://ip地址:9090