MySQL Slow queries

Interactive Grafana dashboard for analyzing MySQL slow query logs. Identify recent, frequent, slow, and high-impact queries, explore query activity over time, and quickly isolate problematic time intervals.

Requirements

  • MySQL 8.0+
  • Slow query logging enabled
  • log_output includes TABLE
  • mysql.slow_log readable by the Grafana datasource user
  • Grafana MySQL datasource configured

MySQL permissions and variables:

GRANT SELECT ON mysql.slow_log TO 'grafanads'@'%';
SET GLOBAL log_output = 'FILE,TABLE';
Revisions
RevisionDescriptionCreated
MySQL

MySQL

by Grafana Labs
Grafana Labs solution

Monitor MySQL with Grafana. Easily monitor your MySQL deployment with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies