下载wmi_exporter-amd64,并解压到本地目录
运行wmi-exporter
./wmi_exporter.exe
校验metrics端点
http://localhost:9182/metrics
在Prometheus安装目录下
在prometheus.yml 中添加针对wmi-exporter的监控job
- job_name: 'wmi-exporter'
static_configs:
- targets: ['localhost:9182']
运行Prometheus
./prometheus.exe
访问Prometheus UI
http://localhost:9090
通过Prometheus->Status的configuration和targets校验配置正确
通过Prometheus->Graph查询wmi-exporter在UP1状态
up{job="wmi-exporter"}
在Grafana安装目录下启动Grafana服务器
./bin/grafana-server.exe
登录Grafana UI(admin/admin)
http://localhost:3000
通过Grafana的**+**图标导入(Import) wmi-exporter dashboard:
- grafana id = 2129
- 注意选中
prometheus数据源
查看Windows Node dashboard。
Grafana Dashboard仓库
https://grafana.com/dashboards