基于Grafana+Prometheus 实现Windows服务器,MySQL数据库监控
目前市面上的主流是以Liunx系统服务器为主,但是仍存在使用windows系统服务器的企业,下面的内容将介绍如何基于Grafana+Prometheus 实现windows服务器,数据库监控。
一、简介
二、下载安装
1、Windows系统性能指标采集器
#下载地址:https://github.com/martinlindhe/wmi_exporter/releases
#选择最新msi文件下载安装即可。通过访问http://ip+默认端口9182(如:http://localhost:9182) 出现下图,即代表安装采集数据成功。
2、Mysql数据指标采集器
#下载地址:https://prometheus.io/download/
#找到mysqld_exporter采集器,选择windows 版本即可 (如:mysqld_exporter-0.11.0.windows-amd64.tar.gz)
,在mysqld_exporter.exe的同级目录下创建.my.cnf 并启动