部署windows-exporter

一、安装

windows-exporter源码
下载对应版本

在windows中使用二进制方式部署

安装好之后,打开 http://127.0.0.1:9182/metrics

二、接入prometheus

1、通过静态文件配置加入

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: ["127.0.0.1:9182"]

三、图表

1、grafana

https://grafana.com/grafana/dashboards/

搜索:windows

https://grafana.com/grafana/dashboards/14694-windows-exporter-dashboard/

之后下载,导入到grafana里

2、夜莺

夜莺内置了一些常用exporter采集图表

我用的是社区版:v7.0.0,从仪表盘 -> 内置仪表盘 -> 搜索windows -> 点击搜索到的,选择带有 Node Exporter的图表
请添加图片描述

四、监控

一般需要对这些比较核心的指标进行配置告警

夜莺里面也有内置一些常用的监控策略,从告警管理 -> 内置规则 -> windows,选择 windows_by_exporter
请添加图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值