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

MetricBeat监控MySQL

目录

一、安装部署

二、开启mysql监控模块

三、编辑mysql配置文件

四、启动Metricbeat

五、查看监控图表


一、安装部署

   metriceat的安装部署参考章节: Metricbeat安装使用,这里不再赘述。

二、开启mysql监控模块

 进入metricbeat安装目录

./metricbeat modules enable mysql

三、编辑mysql配置文件

vim modules.d/mysql.yml
# Module: mysql
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/main/metricbeat-module-mysql.html- module: mysqlmetricsets:- status- galera_status- performance# - queryperiod: 10s# Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
# or "unix(/var/lib/mysql/mysql.sock)/",
# or another DSN format supported by <https://github.com/Go-SQL-Driver/MySQL/>.
# The username and password can either be set in the DSN or using the username
# and password config options. Those specified in the DSN take precedence.hosts: ["root:admin@123456@tcp(127.0.0.1:3306)/"]# Username of hosts. Empty by default.#username: root# Password of hosts. Empty by default.#password: secret

四、启动Metricbeat

nohup ./metricbeat -e  > ./metricbeat.log 2>&1 &

五、查看监控图表

登入kibana,进入dashboard,搜索 mysql,即可看到相关图表。

http://www.lryc.cn/news/255917.html

相关文章:

  • Child Mind Institute - Detect Sleep States(2023年第一次Kaggle拿到了银牌总结)
  • Esxi7Esxi8设置VMFSL虚拟闪存的大小
  • vue2+electron桌面端一体机应用
  • 目标检测——OverFeat算法解读
  • vue获取主机id和IP地址
  • 在pytorch中自定义dataset读取数据
  • ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders
  • Java后端的登录、注册接口是怎么实现的
  • TCP Keepalive 和 HTTP Keep-Aliv
  • 操作系统 复习笔记
  • Java中实现单例模式的方式
  • Vue3-01-创建项目
  • Go 语言中的反射机制
  • [leetcode 前缀和]
  • Python与ArcGIS系列(十五)根据距离抓取字段
  • YOLOv8分割训练及分割半自动标注
  • jsp页面通过class或者id获取a标签上的属性的值
  • 题目:美丽的区间(蓝桥OJ 1372)
  • 解决:During handling of the above exception, another exception occurred
  • 计算机基础知识65
  • Python开发运维:Python垃圾回收机制
  • ros2/ros安装ros-dep||rosdep init错误
  • 《深入理解计算机系统》学习笔记 - 第四课 - 机器级别的程序
  • 云原生(Cloud Native)——概念,技术,背景,优缺点,实践例子
  • ElasticSearch之线程池
  • StoneDB-8.0-V2.2.0 企业版正式发布!性能优化,稳定性提升,持续公测中!
  • 【数据结构 — 排序 — 插入排序】
  • 物联网后端个人第十四周总结
  • 在uniapp中,可以使用那些预定义的样式类
  • mybatis的数据库连接池