Documentation Home
MySQL 8.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 39.8Mb
PDF (A4) - 39.9Mb
Man Pages (TGZ) - 257.9Kb
Man Pages (Zip) - 364.9Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 8.4 Reference Manual  /  ...  /  The ps_setup_disable_instrument() Procedure

30.4.4.6 Performance Schema 中的 ps_setup_disable_instrument() 过程

禁用 Performance Schema 仪表盘的名称包含指定参数的所有仪表盘。生成一个结果集,指示禁用的仪表盘数量。已经禁用的仪表盘不计入结果中。

  • in_pattern VARCHAR(128): 用于匹配仪表盘名称的值,该名称通过使用 %in_pattern% 作为 LIKE 模式匹配的操作符来标识。

    值为 '' 将匹配所有仪表盘。

禁用特定的仪表盘:

mysql> CALL sys.ps_setup_disable_instrument('wait/lock/metadata/sql/mdl');
+-----------------------+
| summary               |
+-----------------------+
| Disabled 1 instrument |
+-----------------------+

禁用所有互斥锁仪表盘:

mysql> CALL sys.ps_setup_disable_instrument('mutex');
+--------------------------+
| summary                  |
+--------------------------+
| Disabled 177 instruments |
+--------------------------+