安装包下载
wget https://github.com/prometheus/prometheus/releases/download/v2.31.1/prometheus-2.31.1.linux-amd64.tar.gz
解压并放至/opt/prometheus目录下
启动
/opt/prometheus/prometheus-2.31.1/prometheus --config.file=/opt/prometheus/prometheus-2.31.1/prometheus.yml
安装包下载
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.0/node_exporter-1.3.0.linux-amd64.tar.gz
解压后启动
/opt/prometheus/node_exporter-1.3.0/node_exporter
node_exporter加入至server targets中
重启server
导入模板