• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

yxchun

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

Prometheus实现 windows 机器 ,并在Grafana上看到指标

Promethues 在Linux环境下部署;

下载Windows版本的node_exporter,放到Windows服务器上,并双击运行;

下载地址:https://github.com/prometheus-community/windows_exporter/releases

运行成功截图

在Promethues 配置文件 添加node_exporter的地址,端口是9182;添加后,重启Promethues ;

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"
    static_configs:
      - targets: ["10.1.13.17:9100"]
  - job_name: "node_exporter_10.53.9.18:9182"
    metrics_path: '/metrics'
    static_configs:
      - targets: ["10.53.9.18:9182"] 

进入Grafana,添加可查看Windows node_exporter的模版:比如:10467;

 

 

posted on 2025-06-24 09:19  yxchun  阅读(157)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3