prometheus + node exporter 安装教程

参考https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/index.html

1.下载安装 node exporter

下载最新的node exporter安装包:

curl -OL https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz

 

解压安装包:

tar -xzf node_exporter-0.17.0.linux-amd64.tar.gz
cd node_exporter-0.17.0.linux-amd64.tar.gz

./node_exporter

显示监听 9100,则安装成功,通过localhost:9100可以查看node exporter运行情况;

 

2. 下载安装prometheus

下载、解压最新版prometheus

wget https://github.com/prometheus/prometheus/releases/download/v2.7.2/prometheus-2.7.2.linux-amd64.tar.gz
tar -xzf prometheus-2.7.2.linux-amd64.tar.gz

运行prometheus

cd prometheus-2.7.2.linux-amd64.tar.gz
./prometheus

 

 

你可能感兴趣的:(通信)