Windows 下搭建 wmi_exporter+Prometheus+Grafana 服务器性能监控平台

https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/    【官方介绍+Linux操作】

https://prometheus.io/download/        【Prometheus 各模块下载--需要翻墙】

https://songjiayang.gitbooks.io/prometheus/                   【Prometheus 实战】

https://blog.csdn.net/lht3347/article/details/84144999     【实际操作】

https://blog.csdn.net/zeroctu/article/details/81184109     【各个平台上的SQL语句】

https://github.com/starsliao/Prometheus    【模板下载】

关于 wmi_exporter  和  Prometheus  的介绍就不啰嗦了,看上面参考文章即可。这里写上我自己的简单理解【个人理解,不保证100%准确】:

  • wmi_exporter(Windows) / node_exporter (Linux) 是用来做数据采集的
  • 其中:wmi_exporter 是属于 Martin Lindhe 开发的;node_exporter 是属于 Prometheus  开发的
  • Prometheus 是 搭配 上面两者,用来做时间序列数据的存储的,相当于一个数据库。
  • Prometheus 支持多语言,可以通过各种exporte,集成其他的监控系统

以下是 Windows  下的具体操作。Linux 系统上的搭建见: 下一篇文章

本文各软件版本:wmi_exporter-0.7.999 ; prometheus-2.10.0 ; Grafana-6.2.5

目录

1、下载安装  wmi_exporter

2、下载安装 Prometheus(Windows版本)

3、grafana配置

3.1、配置Prometheus数据库

3.2、导入模板


1、下载安装  wmi_exporter

(1)、下载地址:https://github.com/martinlindhe/wmi_exporter/releases

(2)、双击安装后,exporter 自动运行,可以在服务列表里看到。

(3)、Windows 默认 9182 端口。访问  http://127.0.0.1:9182/metrics   显示以下数据说明数据采集器安装成功。

2、下载安装 Prometheus(Windows版本)

(2)、下载地址:https://prometheus.io/download/     【可能要翻墙,否则速度很慢】

(2)、解压后修改配置文件:prometheus.yml  

主要是修改 IP

 

(3)、在 prometheus 目录下启动命令行,输入命令启动:prometheus.exe --config.file=prometheus.yml

(4)、Windows 默认 9090 端口。访问:http://localhost:9090/ 。能够访问,说明安装并启动成功。

选择Status下的Targets

页面State字段显示up,说明prometheus已经成功的pull数据。

3、grafana配置

3.1、配置Prometheus数据库

3.2、导入模板

模板下载地址:https://github.com/starsliao/Prometheus/tree/master/wmi_exporter

最终效果如下:【不知为啥,CPU相关指标读取不到,可能是因为系统的原因。希望在Linux上不要出现】

  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值