I had configure percona plugin on zabbix 3.0 for MySQL server, it is showing graphs but I want to know what query is creating locks. Is there any way to find which is query is slow or which is creating the deadlock / table locks ?
Thank you Mykola. Using Percona plugin in zabbix i can see a graph that shows some tables are locked or creating deadlocks but I cannot see that which table or databases doing it. How can I check it in Percona plugin ? Or can i see this in Percona Monitoring and Management ?
Percona Monitoring and Management has Query Analytics tool.
Query Analytics enables you to analyze MySQL query performance over periods of time.
This tool shows queries and explain them.
Monitoring plug-ins should be quick and produce as minimal load as possible, deadlock investigation is not quick procedure.
You may want to investigate the Percona Toolkit pt-deadlock-logger utility which may do what you want. You can read about it here: [url]https://www.percona.com/blog/2012/09/19/logging-deadlocks-errors/[/url]
Buddy I clear my concern in the Reply #7. I can do this in my current environment but I want the feature that can alert when deadlock lock and it would be GUI based. Don’t want tun the CLI commands or append the output of that command