标签:roo alt centos eth 下载 linu mode github 图片
root@VM-0-3-ubuntu:~$ wget -c https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz [root@VM-0-3-ubuntus]# tar zxvf node_exporter-0.18.1.linux-amd64.tar.gz
[root@VM_0_11_centos packages]# cd node_exporter-0.18.1.linux-amd64 [root@VM_0_11_centos packages]# ./node_exporter &
[root@VM_0_11_centos packages]# wget -c https://github.com/prometheus/prometheus/releases/download/v2.15.1/prometheus-2.15.1.linux-amd64.tar.gz [root@VM_0_11_centos packages]# tar zxvf prometheus-2.15.1.linux-amd64.tar.gz
在prometheus.yml中加入如下配置:
- job_name: ‘h1‘ static_configs: - targets: [‘X.X.X.X:9100‘]
注意Targets是node ip。
搭建性能监控系统Premetheus+Grafana+node_exporter -1
标签:roo alt centos eth 下载 linu mode github 图片
原文地址:https://www.cnblogs.com/censuan/p/13252196.html