You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nicola Strappazzon C edited this page Oct 27, 2023
·
1 revision
User
Create a monitor user to allow access to zenit to collect metrics.
CREATEUSERmonitor@'%' IDENTIFIED by 'monitor';
ALTERUSER monitor@'%' WITH MAX_USER_CONNECTIONS 5;
GRANT REPLICATION CLIENT ON*.* TO monitor@'%';
GRANT PROCESS ON*.* TO monitor@'%';
GRANTSELECTON*.* TO monitor@'%';
List of related variables for the slow query log and light different between MySQL, Percona and MariaDB, please check the official documentation to more details and compatibility:
Variable
Value
MySQL
Percona
MariaDB
Description
log_output
FILE
Yes
Yes
Yes
How the output will be written
log_queries_not_using_indexes
on
Yes
Yes
Yes
Whether to log queries that don't use indexes
log_slow_admin_statements
on
No
Yes
Yes
Whether to log certain admin statements
log_slow_rate_limit
1
No
Yes
Yes
Permits a fraction of slow queries to be logged
log_slow_rate_type
query
No
Yes
log_slow_slave_statements
on
No
Yes
Log slow statements executed by slave thread
log_slow_verbosity
full
No
Yes
Amount of detail in the log
long_query_time
0
Yes
Yes
Yes
Time in seconds/microseconds defining a slow query