root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 150000 1
root@ns1:~# systemctl restart mysql
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 500000 6 2
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 350000 3 1
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 250000 2 1
directory.append([os.path.join(root, name)])
Пока нашел вот такой способ: