proxysql系列 ~ 非main库说明

proxysql库
0 基本操作
1 show tables from db 查看DB下所有表
2 select * from table 查询数据
1 monitor
目的 收集历史监控数据
1 mysql_server_read_only_log 查看监控read_only历史数据
2 mysql_server_connect_log 查看健康connect监控历史数据
3 mysql_server_replication_lag_log 查看延时lags监控历史数据
2 stats
目的 记录与后端历史数据库记录的相关状态
1 stats_mysql_processlist
类似于mysql的processlist,获取瞬时的sql执行状态
2 stats_mysql_query_digest
查看具体sql执行的历史相关情况
3 stats_mysql_users;
该表stats_mysql_users报告了用户列表,其当前的前端连接数以及可以创建的前端连接总数(如所定义mysql_users.max_connections)。
4 stats_mysql_query_rules;
指定rules匹配次数
hits每次LOAD MYSQL QUERY RULES TO RUNTIME通过ProxySQL Cluster 通过显式或隐式重新同步将查询规则加载到运行时时,都会将其重置
5 stats_mysql_commands_counters
所有细化命令的统计类别,非常详细
6 stats_mysql_errors
记载之前的所有的连接到mysql的错误

原文地址:https://www.cnblogs.com/danhuangpai/p/11671517.html