prometheus03-node_exporter
admin
2023-03-03 01:02:16
0

1.地址

使用文档:https://prometheus.io/docs/guides/node-exporter/
GitHub:https://github.com/prometheus/node_exporter
exporter列表:https://prometheus.io/docs/instrumenting/exporters/

2.下载

 wget  https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz

3. 安装并启动

mv node_exporter-0.18.1.linux-amd64  /usr/local/node_exporter
[root@zabbix-server system]# cat node_exporter.service
[Unit]
Description=node_exporter
Documentation=https://prometheus.io/
After=network.target
[Service]
Type=simple
User=prometheus
ExecStart=/usr/local/node_exporter/node_exporter
Restart=on-failure
[Install]
WantedBy=multi-user.target
[root@zabbix-server system]# pwd
/usr/lib/systemd/system
[root@zabbix-server system]# 
systemctl  daemon-reload
systemctl start node_exporter

4.查看 metrics

http://192.168.249.10:9100/metrics

prometheus03-node_exporter


5. prometheus 把 node_exporter加载进去

[root@zabbix-proxy sd_config]# cat prometheus-server.yml 
- labels:
    service: prometheus
    idc: su
    project: monitor
  targets:
  - 192.168.249.11:9090
  - 192.168.249.10:9100
[root@zabbix-proxy sd_config]# cat ../prometheus.yml
# my global config
global:
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      # - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=` to any timeseries scraped from this config.
  - job_name: 'prometheus'
    file_sd_configs:
      - files: ['/usr/local/prometheus/sd_config/*.yml']
        refresh_interval: 5s
[root@zabbix-proxy sd_config]#

6.查看

prometheus03-node_exporter

相关内容

热门资讯

玩家最新攻略“咸宁晃晃麻将.到... 有 亲,根据资深记者爆料咸宁晃晃麻将是可以开挂的,确实有挂(咨询软件无需...
烤鸡少年承认用“肉宝王”来调味... 极目新闻记者 丁伟近日,深圳烤鸡少年小陈被曝使用“肉宝王”来调味,引发争议。12月22日,小陈发布视...
我来教教您“先锋大厅.有挂吗?... 家人们!今天小编来为大家解答先锋大厅透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很...
香港通报10亿日元大劫案:11... 12月18日约9时香港上环永乐街发生劫案,4名持刀匪徒在皇后大道中181号新纪元广场附近劫走约10亿...
最新引进“九九牌游十三水.究竟... 网上科普关于“九九牌游十三水有没有挂”话题很是火热,小编也是针对九九牌游十三水作*弊开挂的方法以及开...
今日重大通报“掌中宝麻将.怎么... 您好:掌中宝麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游...
玩家攻略科普“乐禧棋牌.辅助器... 玩家攻略科普“乐禧棋牌.辅助器?”太坑了果然有挂您好,乐禧棋牌这个游戏其实有挂的,确实是有挂的,需要...
终于懂了“好玩茶楼.怎么装挂?... 有 亲,根据资深记者爆料好玩茶楼是可以开挂的,确实有挂(咨询软件无需打开...
荣耀哪款手机性价比高最值得入手 临近年末,荣耀多款机型在各自价位段展现出强劲的竞争力。 从千元出头到四千元以上的旗舰机,不同预算和需...
【第一消息】“新三哥玩十三张.... 网上科普关于“新三哥玩十三张有没有挂”话题很是火热,小编也是针对新三哥玩十三张作*弊开挂的方法以及开...