介绍:
Windows Exporter 是一个用于将 Windows 操作系统指标数据暴露给 Prometheus 监控系统的开源工具。它通过收集 Windows 操作系统的性能计数器、服务状态、进程信息和其他系统指标,将这些数据转化为 Prometheus 可以识别的格式,并通过 HTTP 接口暴露给 Prometheus 进行采集和监控。
windows-exporter安装部署项目上进行操作
1.安装包下载
链接:https://pan.baidu.com/s/1y8q7yED9yligv1Kgsvh6wA?pwd=dgs6
提取码:dgs6
2。直接双击运行该msi程序即可正常安装
安装完成后,打开任务管理器,会看到里面有个windows-exporter的服务
3.使用127.0.0.1:9182端口,可看到对应的metrics
prometheus-server服务配置Prometheus,接入windows的metrics
配置映射里Prometheus.yaml新加一个job
- job_name: windows-exporter
static_configs:
- targets:
- 192.168.1.1:9182
- 192.168.1.2:9182
- 192.168.1.3:9182
- x.x.x.x:9182
将windows的ip加入到配置文件里3.重启windows_exporter
服务
sc stop windows_exporter
sc start windows_exporter