Prometheus监控
一 环境准备
例:Prometheus服务器(192.168.1.171),Agent被监控服务器(192.168.1.172)
二、安装Prometheus(192.168.1.171)
1.下载Prometheus安装包
wget https://github.com/prometheus/prometheus/releases/download/v2.17.2/prometheus-2.17.2.linux-amd64.tar.gz
2.解压并安装软件
tar -zxvf prometheus-2.17.2.linux-amd64.tar.gz
mv prometheus-2.17.2.linux-amd64 /usr/local/prometheus
3.启动Prometheus
cd /usr/local/prometheus
./prometheus --config.file="/usr/local/prometheus/prometheus.yml" &
三、监控agent主机(192.168.1.172)
1.安装node_exporter
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.