Prometheus安装和配置node_exporter监控主机

释放双眼,带上耳机,听听看~!

Node_exporter是可以在* Nix和Linux系统上运行的计算机度量标准的导出器。

Node_exporter 主要用于暴露 metrics 给 Prometheus,其中 metrics 包括:cpu 的负载,内存的使用情况,网络等。

官方下载地址:https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz

1、安装Node_exporter

解压缩node_exporter并将目录重命名为“node_exporter”放到/usr/local/下。

tar -xf node_exporter-0.17.0.linux-amd64.tar.gz
mv node_exporter-0.17.0.linux-amd64 /usr/local/node_exporter

 放在后台启动即可:

nohup ./node_exporter &

 2、修改Prometheus的配置文件 prometheus.yml的scrape_configs下添加node_exporter,后重启Prometheus。

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: \'prometheus\'

    # metrics_path defaults to \'/metrics\'
    # scheme defaults to \'http\'.

    static_configs:
    - targets: [\'localhost:9090\']
  - job_name: \'node_exporter\'
    static_configs:
      - targets: 
        - \'172.31.182.140:9100\'
        - \'172.31.182.141:9100\'
        - \'172.31.182.142:9100\'
        - \'172.31.182.143:9100\'
        - \'172.31.182.144:9100\'
        - \'172.31.182.145:9100\'
        - \'172.31.182.146:9100\'
        - \'172.31.182.147:9100\'

 3、添加granfana

模板下载地址:https://grafana.com/api/dashboards/1860/revisions/13/download

Prometheus安装和配置node_exporter监控主机

导入后的效果:

Prometheus安装和配置node_exporter监控主机

 

给TA打赏
共{{data.count}}人
人已打赏
随笔日记

NCE损失(Noise-Constrastive Estimation Loss)

2020-11-9 4:14:50

随笔日记

[Java初探07]__关于面向对象的简单认识

2020-11-9 4:14:52

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索