解压后在文件夹里新建一个my.cnf文件,内容如下 由于MySQl_Exporter是作用于采集数据库的各种信息指标,所以需要在配置文件中配置想要采集的数据地址信息 启动MySQL_Exporter 启动命令: mysqld_exporter.exe --config.my-cnf=my.cnf 启动完之后不能关闭命令行,否则该程序也会关闭运行 访问MySQL_Exporter 默认端口9104,...
mysqld_exporter.exe --config.my-cnf=my.cnf 访问:http://127.0.0.1:9104/metrics 修改prometheus.yml,加入任务,之后重启prometheus -job_name:'mysql_metrics_localhost'static_configs:-targets:['localhost:9104'] 在grafana中,导入模版 id:12826
选择指标后,点击execute。 3.监控mysql 在https://prometheus.io/download/下载mysqld_exporter 解压后,添加.my.cnf文件。 内容如下: [client] host=192.168.1.173 user=xxx password=xxx 1. 2. 3. 4. 运行mysqld_exporter.exe文件: Mysqld_exporter的运行端口是:9104 在prometheus的yaml中添加: # mysql mon...
GRANT SELECT ON performance_schema.* TO '上述用户名'@'localhost'; ALTER USER 上述用户名@localhost IDENTIFIED WITH mysql_native_password BY '上述用户密码'; flush privileges; 四.启动mysql_exporter:进入mysql_exporter目录,执行:mysqld_exporter.exe --config.my-cnf=.my.cnf 注意此时可以在浏览器输入:l...
mysqld_exporter:监控数据库 下载后放到需要监控的机器,直接运行,然后到prometheus安装目录修改配置文件prometheus.yml,添加exporter对应的ip以及端口,node_exporter默认端口是9100,mysqld_exporter默认端口9104 2.Grafana 进入Grafana官网windows 64位下载grafana-7.1.5.windows-amd64.msi,直接运行安装即可,安装完成后进入graf...
2、Mysql数据指标采集器 下载地址:https://prometheus.io/download/ 找到mysqld_exporter采集器,选择windows 版本即可 (如:mysqld_exporter-0.11.0.windows-amd64.tar.gz) 在mysqld_exporter.exe的同级目录下创建.my.cnf 并启动 .my.cnf中内容: [client]host=127.0.0.1port=3306user=root ...
databack/mysql-backup Back up mysql databases to... anywhere! 53 prom/mysqld-exporter 43 [OK] deitch/mysql-backup REPLACED! Please use http://hub.docker.com/r… 41 [OK] tutum/mysql Base docker image to run a MySQL database se… 35 ...
打开一个新的CMD窗口,在CMD窗口中输入services.msc即可打开Windows的服务管理窗口。在此窗口中,找到windows_exporter服务,使用鼠标右击点击属性按钮,在启动参数中添加–telemetry.addr=0.0.0.0:9182,配置完成后,重启即可。 访问 服务启动完成后,访问主机的IP+端口即可,例如:192.168.1.100:9182 ...
一、Node_exporter Node_exporter 用于采集Linux系统指标数据数据,prometheus官方提供的exporter,除node_exporter外,官方还提供consul,memcached,haproxy,mysqld等exporter。 二进制部署node_exporter 代码语言:javascript 复制 wget https://github.com/prometheus/node_exporter/releases/download/v1.4.0/node_exporter-1.4....
通过以上步骤,你就可以在Windows系统上成功部署并运行Prometheus监控了。记得根据你的实际监控需求调整prometheus.yml配置文件,并安装和配置相应的exporter(如node exporter, mysql exporter等)来监控不同类型的资源。