Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker DevOps


Prometheus+Grafana+windows_exporter 监控 Windows 系统

Prometheus Grafana DevOps 大约 832 字

下载地址

分为exemsi

https://github.com/prometheus-community/windows_exporter/releases

运行 windows_exporter

双击运行exe文件即可。

windows_exporter 默认端口

http://localhost:9182

修改 Prometheus 配置

scrape_configs下新增job_namewindows(名称随意)

  - job_name: 'windows'
    static_configs:
      - targets: ['192.168.1.2:9182']

完整的scrape_configs如下

scrape_configs:
  - job_name: "prometheus"
    static_configs:
      - targets: ["localhost:9090"]
  - job_name: 'linux'
    static_configs:
      - targets: ['192.168.1.2:9182']

重启 Prometheus

重启后可查看windows_exporter是否上线。

http://localhost:9090/targets

Grafana Dashboard

1 windows_exporter for Prometheus Dashboard CN v20201012: https://grafana.com/grafana/dashboards/10467

Windows Node (fixed for v0.13.0+): https://grafana.com/grafana/dashboards/12422

开源地址

https://github.com/prometheus-community/windows_exporter

阅读 765 · 发布于 2022-02-20

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批