下载

地址:https://github.com/prometheus/node_exporter/releases

安装

tar zxvf node_exporter-1.0.0-rc.0.linux-amd64.tar.gz
cd node_exporter-1.0.0-rc.0.linux-amd64
#运行
./node_exporter

访问

通过curl访问采集的数据

curl 192.168.1.114:9100/metrics

在prometheus.yml配置node_exporter目标地址,使得prometheus搜集到node_exporter采集的数据

static_configs:
- targets: ['localhost:9090','192.168.1.114:9100']