美文网首页
使用Prometheus监控其他node

使用Prometheus监控其他node

作者: Anson_1f2a | 来源:发表于2021-07-28 14:19 被阅读0次

使用Prometheus node_exporter

  1. 根据相应的系统下载相应压缩包
    下载地址:https://prometheus.io/download/

    image.png
  2. 解压并启动

[root]# tar xvfz node_exporter-1.2.0.linux-amd64.tar.gz
[root]# cd node_exporter-1.2.0.linux-amd64
[root]# nohup ./node_exporter &
  1. 检查是否启动成功
    Node exporter默认的端口是9100
netstat -tnlp | grep 9100
  1. 修改prometheus.yml配置文件
    加入一下配置
  - job_name: 'prod-services'
    static_configs:
    - targets: ['192.168.0.129:9100']
  1. 启动Prometheus
./prometheus --config.file="prometheus.yml"

相关文章

网友评论

      本文标题:使用Prometheus监控其他node

      本文链接:https://www.haomeiwen.com/subject/nwszmltx.html