当前位置: 首页 > news >正文

(二)mac中Grafana监控Linux上的MySQL(Mysqld_exporter)

框架:Grafana+Prometheus+Mysqld_exporter 

一、监控查看端安装

Grafana安装-CSDN博客

普罗米修斯Prometheus监控安装(mac)-CSDN博客

1.启动Grafana服务

brew services start grafana
  • 打开浏览器输入http://localhost:3000进入grafana登录页面 

(默认用户名和密码都为admin,进入后可以更新密码,也可以跳过) 

2.启动 prometheus服务

查看安装位置

which prometheus

找到默认配置prometheus.yml的位置 

/usr/local/etc/prometheus.yml

启动Prometheus server

prometheus --config.file=/usr/local/etc/prometheus.yml

启动后浏览器输入: http://localhost:9090/targets

http://localhost:9090/targets

查看监控数据 

http://localhost:9090/metrich

二、被监控端安装

 Linux安装mysql_exporter-CSDN博客

设置后,可在http://localhost:9090/targets页面中看到

三、应用

 1.grafana登录后,添加数据源

2.选择 prometheus

下面第 2 步是prometheus的服务URL,本文是本机的ip地址

拉到页面最下面,点击“save and test” 

3.添加模板 

仪表盘 import, ID:17320 或者 14057 

Mysqld_exporter模板

 选择自己需要的模板

 上滑到页面顶端

 

4.效果

安装Node_exporter后,CPU\内存等才会显示


http://www.mrgr.cn/news/99176.html

相关文章:

  • 线性代数 | 知识点整理 Ref 1
  • Redis 事件循环(Event Loop)
  • RV1126网络环境TFTPNFS搭建(四)
  • 系统与网络安全------弹性交换网络(1)
  • 大数据应用开发——大数据平台集群部署(三)
  • 用Python玩转倒排索引:从原理到实战的趣味之旅
  • Semaphore的核心机制
  • Webview+Python:用HTML打造跨平台桌面应用的创新方案
  • 云梦数据平台
  • 小红书爬虫,小红书api,小红书数据挖掘
  • 滑动时间窗口实现重试限流
  • Linux 入门:基础开发工具(下)git,cgdb操作指南
  • ZYNQ笔记(十):XADC (PS XDAC 接口)
  • HarmonyOS 笔记
  • 深度可分离卷积与普通卷积的区别及原理
  • Few-shot medical image segmentation with high-fidelity prototypes 论文总结
  • 51c大模型~合集119
  • 位运算,状态压缩dp(算法竞赛进阶指南学习笔记)
  • 算法导论思考题
  • WInform当今技术特性分析