当前位置:网站首页>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 .
边栏推荐
- 【20220526】UE5.0.2 release d11782b
- Timestamp to localdate
- 一篇文章读懂:Spark运行模式
- (dfs+ tree DP) acwing 846 Center of gravity of tree
- LeetCode 201. Digit range bitwise AND
- 【工具链系列】 Notepad++
- Class and object -- friend
- LeetCode 6098. Count the number of subarrays whose score is less than K (prefix and + binary search)
- 删除软链接
- [51nod p3216] Award [bit operation]
猜你喜欢

Jenkins accédant à l'authentification de l'utilisateur openldap

(state compression dp+ binary) acwing 91 Shortest Hamilton path

Consolas-with-Yahei

The rise of cloud computing enterprises and the shaking of Oracle database market dominance

VGA常用分辨率及计算方法

MySQL利用E-R模型的数据库概念设计

(state compression dp+good) acwing 291 Mondrian's dream
![1-2 24:00 (20 points) [CSP certification true question]](/img/3b/fe2c0e46dca604e5906d9c5ceabbe3.jpg)
1-2 24:00 (20 points) [CSP certification true question]

Overloading of typical operators

Classes and objects -- object model and this pointer
随机推荐
Jenkins accédant à l'authentification de l'utilisateur openldap
[51nod p2106] an odd number of times [bit operation]
Tree and binary tree: storage structure of binary tree
LeetCode 1143. Longest common subsequence
修饰模式和代理模式的异同
Figure: concept of figure
VGA常用分辨率及计算方法
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
go-zero微服务实战系列(三、API定义和表结构设计)
删除软链接
Dynamic display of analog clock using digital clock in turtle Library
C language: Address Book
阿里高级专家剖析 | Protocol的标准设计
LeetCode 6097. Match after replacing characters (Dictionary)
云计算企业崛起 甲骨文数据库市场主导地位动摇
It was so simple to implement system call
SQL ROW_ The number() function uses
[51nod p2673] shortest path [heap optimization Dijk]
Amadahl's Law (a little thought)
LeetCode 583. Deleting two strings