当前位置:网站首页>MySQL monitoring tool PMM, let you go to a higher level (Part 2)
MySQL monitoring tool PMM, let you go to a higher level (Part 2)
2022-06-13 09:41:00 【Operation and maintenance home】
Statement : This article is “ Operation and maintenance home ” original , Reprint please indicate the source , More content please pay attention to the public number “ Operation and maintenance home ”.

a purpose
In the last article, I introduced PMM-server Deployment of , And verification , In today's article, let's introduce how to install mysql client , And how to use it server monitor client The service side , And pass grafana Show .
Environmental Science
linux Environmental Science
mysql Environmental Science
docker Environmental Science
server IP:192.168.112.130
client IP:192.168.112.131
Software download
Reply from WeChat official account “PMM”, Can get pmm-client Software .
matters needing attention
The version must correspond , From the last article pmm-server Version is the latest version on the official website 2.26, So is the client I downloaded here 2.26, In the near future , The version is higher , Then you download docker Mirror image , To download, use the following command :
docker pull docker pull percona/pmm-server:2.26
install
The following operations are client End operation .
[[email protected] pmm]$ pwd
/home/yunweijia/pmm
[[email protected]ocalhost pmm]$ ls
pmm2-client-2.26.0-6.el7.x86_64.rpm
[[email protected] pmm]$
[[email protected] pmm]$ sudo rpm -ivh pmm2-client-2.26.0-6.el7.x86_64.rpm
Warning :pmm2-client-2.26.0-6.el7.x86_64.rpm: head V4 RSA/SHA256 Signature, secret key ID 8507efa5: NOKEY
In preparation ... ################################# [100%]
Upgrading / install ...
1:pmm2-client-2.26.0-6.el7 ################################# [100%]
[[email protected] pmm]$
Modify the database configuration file
The premise of this step is client There is already mysql The software , If the operation is not skilled , You can view previous documents .
# Turn on slow query
[[email protected] pmm]$ sudo vim /etc/my.cnf
# The following operations are [mysqld] In the middle of
slow_query_log=1
long_query_time=1
slow_query_log_file="/mysql/data/localhost-slow.log"
[[email protected] pmm]$
restart mysql And authorize
The rest of the contents should be transferred to the official account. “ Operation and maintenance home ” , reply “101” see .
边栏推荐
- Class template
- 云计算企业崛起 甲骨文数据库市场主导地位动摇
- A static variable is associated with a class and can be used as long as the class is in memory (the variable does not exist as long as your application terminates). (heap body, stack reference)
- Learning makefile with me
- (tree DP) acwing 285 A dance without a boss
- 阿里高级专家剖析 | Protocol的标准设计
- 二叉树简介
- Figure: concept of figure
- (topological sorting +bfs) acwing 848 Topological sequence of digraph
- MySQL利用E-R模型的数据库概念设计
猜你喜欢
![[51nod p2653] interval XOR [bit operation]](/img/3a/57c1a00edd3583e2c31fc4b8d47220.jpg)
[51nod p2653] interval XOR [bit operation]

acwing 786. Number k

说说MySQL索引机制

VGA common resolution and calculation method
![1-4 message passing interface [CSP authentication]](/img/db/aecda548693cdfb0e740bcf1a1c823.jpg)
1-4 message passing interface [CSP authentication]

(state compression dp+good) acwing 291 Mondrian's dream

C language: file operation

Jenkins接入Openldap用户认证

【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
![[Luogu p1403] Research on divisor](/img/c1/b2a91ddad264d5f8283abf27dc8839.jpg)
[Luogu p1403] Research on divisor
随机推荐
acwing 788. Number of pairs in reverse order
VDD,DVDD,AVDD,VCC,AFVDD,DOVDD,IOVDD
VGA常用分辨率及计算方法
LeetCode 6095. 强密码检验器 II
VDD, dvdd, avdd, VCC, afvdd, dovdd, iovdd
LeetCode 5259. 计算应缴税款总额
Simple use of spiel expressions
LeetCode 201. Digit range bitwise AND
虚拟机内存结构简述
MOOC week 8 programming exercise 1
(dp+ memory) acwing 901 skiing
acwing 789. Range of numbers (dichotomy + suitable for understanding dichotomy boundary)
Heap
LeetCode 6097. Match after replacing characters (Dictionary)
Exploitation of competitive loopholes in attacking and defending world PWN play conditions
I have summarized the knowledge points of JS [intermediate and advanced] for you
Interrupt handling mechanism
[poj1845] sumdiv [number theory]
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
时间戳转localDate