innotop在MySQL5.7中,大家可能都用过,但这个是用perl语言开发的,维护比较困难。国外大佬自己鲁了一下go语言版本的,但这个版本只支持MySQL8.0,5.7.X的不支持,这个要注意一下,好了,下面是具体的安装配置过程:
下载:https://github.com/lefred/innotopgo
安装配置:
wget https://github.com/lefred/innotopgo/releases/download/v0.3.1/innotopgo-linux_static-0.3.1.tar.gz
tar xf innotopgo-on;y-for-8.0-linux_static-0.3.1.tar.gz -C /usr/local/
mv /usr/local/innotopgo-linux_static /usr/local/innotopgo
程序运行:
注意:
innotopgo只支持8.0的版本,5.7.版本不支持
[root@node234 local]# ./innotopgo
Usage: innotopgo mysql://<username>:<password>@<host>:3306
[root@node234 local]# /usr/local/innotopgo mysql://root:Rscpass123.@172.16.1.223:3306
Help
Press ? within innotopgo application.
初始化界面:
Main Processlist Screen
帮助命令清单:
│<spacebar> : refresh processlist <backspace> : return to processlist
│<D> : get details of the thread <spacebar> : change format of QEP
│<e> : go to Query Execution Plan (normal, tree, json)
│<K> : kill a query <a> : run EXPLAIN ANALYZE (timeout after 5min)
│<I> : get InnoDB info <A> : run EXPLAIN ANALYZE (no timeout)
│<M> : get Memory info <mouse and arrow keys> : change the focus on section
│<E> : get Error Log Dashboard and browse using the arrow keys
│<L> : get Locking info
D:get details of the thread:
│<e> : go to Query Execution Plan
<I> : get InnoDB info
<M> : get Memory info
2023-09-28
酷炫的时时监控工具-Innotop for MySQL 8 written in Go
评论
发表评论
姓 名: