Node-exporter 可以采集机器(物理机、虚拟机、云主机)的监控指标数据,能够采集到的指标包括cpu、内存、磁盘、网络、文件数等信息。
通过rpm命令查看Linux主机系统版本 我们的主机系统为 CentOS7.6 版本
rpm -qi centos-release
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_115145.png)
使用wget下载 node_exporter 采集器:
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_120904.png)
使用tar -zxvf命令解压node_exporter-1.3.1.linux-amd64.tar.gz
tar -zxvf node_exporter-1.3.1.linux-amd64.tar.gz
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_121016.png)
移动node_exporter-1.3.1.linux-amd64文件夹到/usr/local/目录
mv node_exporter-1.3.1.linux-amd64 /usr/local/
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_121141.png)
进入移入的node_exporter-1.3.1.linux-amd64文件夹目录
cd /usr/local/node_exporter-1.3.1.linux-amd64
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_121346.png)
赋予node_exporter文件777权限
chmod 777 node_exporter
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_121624.png)
使用 nohup 后台启动 node_exporter
nohup ./node_exporter &
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_121756.png)
node_exporter 监听端口为9100 我们可以通过浏览器查看(注意防火墙打开tcp 9100 端口)
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-26_122449.png)