官方下载地址:
https://prometheus.io/download/#node_exporter

node-export 部署

  1. #下载最新版本的node-export
  2. docker pull docker.io/prom/node-exporter:v1.2.2
  3. 启动:
  4. docker run -d --net=host --name='node-exporter' --restart=always --privileged=true \
  5. -v "/proc:/host/proc" -v "/sys:/host/sys" -v "/:/rootfs" \
  6. docker.io/prom/node-exporter:v1.2.2 --path.procfs /host/proc --path.sysfs /host/sys \
  7. --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"

prometheus 配置node-export

  1. scrape_configs:
  2. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  3. - job_name: "prometheus"
  4. static_configs:
  5. - targets: ['127.0.0.1:9100']