windows_exporter下载地址:https://github.com/prometheus-community/windows_exporter/tags
一、安装windows_exporter
要获取服务器运行时的参数,比如当前的CPU负载、内存消耗、硬盘使用、网络IO等等,就可以在服务器上运行一个node_exporter,它能把这些参数收集好,并且暴露出一个HTTP接口以便你访问查询。
1、下载好直接双击安装
2、验证访问http://IP:9182
二、编辑prometheus.yml文件
[root@MonitorServer ~]# vi /opt/prometheus/prometheus.yml #添加以下内容
- job_name: 'Windows_Server'
scrape_interval: 10s
static_configs:
- targets: ['30.0.0.99:9182']
labels:
instance: Windowsname
[root@MonitorServer ~]# systemctl restart prometheus
1、验证
2、搭建Prometheus仪表盘
Import Dashboard: 10467
My brother recommended I might like this web site He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks