server安装
安装包下载
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
node_exporter
安装包下载
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
grafana模板导入数据展示
导入模板