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

相关内容

热门资讯

英国卫生安全局确认:2名英国公... 当地时间5月8日,英国卫生安全局就“洪迪厄斯”号邮轮暴发的汉坦病毒疫情作情况通报。通报称,已确认两名...
湖南卫视、芒果TV宣布多档综艺... 5月8日,湖南卫视官方微博发布消息:生命的逝去令人心碎,此刻,我们选择暂停,以悼念!5月8-10日湖...
男孩每天坚持猛跑1小时把骨头跑... 男孩每天坚持猛跑1小时把骨头跑断了  【男孩每天坚持猛跑1小时把骨头跑断了】“孩子每天跑步一小时,坚...
民进党又借军火买卖牟利?蓝营民... 海峡导报综合报道 国民党民代马文君7日透露,台“军备局”生产制造中心日前开出标案,对外采购3000公...
一份民调引爆绿营内斗!“青鸟”... 海峡导报综合报道 台北市长争霸战开打!陈水扁创办的“新台湾国策智库”7日公布最新民调称,现任市长蒋万...
榴莲遭“仅退款”,商家花500... 极目新闻记者 王鹏2026年5月7日,河南濮阳一冷冻榴莲果肉商家反映,自己遭遇山东德州买家恶意“仅退...
4只皮皮虾1035元店主事发次... 近日,有网友反映其5月4日在三亚一家海鲜店宵夜时仅4只皮皮虾就花费1035元,价格过高,质疑店家存在...
分析师称《GTA6》发售主机或... IT之家 5 月 8 日消息,据游戏媒体 Insider Gaming 昨天报道,Circana 分...
利拓光电取得高稳定性激光器封装... 国家知识产权局信息显示,深圳市利拓光电有限公司取得一项名为“一种高稳定性激光器的封装结构”的专利,授...
别被“120W闪充”骗了:央视... 【太平洋科技快讯】央视新闻近期调查发现,市面上大量标称120W、66W的快充头存在严重功率虚标问题,...