Rechercher dans le manuel MySQL
27.4.3.21 The metrics View
This view summarizes MySQL server metrics to show variable names, values, types, and whether they are enabled. By default, rows are sorted by variable type and name.
The metrics
view includes this
information:
Global status variables from the Performance Schema
global_status
tableInnoDB
metrics from theINFORMATION_SCHEMA
INNODB_METRICS
tableCurrent and total memory allocation, based on the Performance Schema memory instrumentation
The current time (human readable and Unix timestamp formats)
There is some duplication of information between the
global_status
and
INNODB_METRICS
tables, which the
metrics
view eliminates.
The metrics
view has these
columns:
Variable_name
The metric name. The metric type determines the source from which the name is taken:
For global status variables: The
VARIABLE_NAME
column of theglobal_status
tableFor
InnoDB
metrics: TheNAME
column of theINNODB_METRICS
tableFor other metrics: A view-provided descriptive string
Variable_value
The metric value. The metric type determines the source from which the value is taken:
For global status variables: The
VARIABLE_VALUE
column of theglobal_status
tableFor
InnoDB
metrics: TheCOUNT
column of theINNODB_METRICS
tableFor memory metrics: The relevant column from the Performance Schema
memory_summary_global_by_event_name
tableFor the current time: The value of
NOW(3)
orUNIX_TIMESTAMP(NOW(3))
Type
The metric type:
For global status variables:
Global Status
For
InnoDB
metrics:InnoDB Metrics - %
, where%
is replaced by the value of theSUBSYSTEM
column of theINNODB_METRICS
tableFor memory metrics:
Performance Schema
For the current time:
System Time
Enabled
Whether the metric is enabled:
For global status variables:
YES
For
InnoDB
metrics:YES
if theSTATUS
column of theINNODB_METRICS
table isenabled
,NO
otherwiseFor memory metrics:
NO
,YES
, orPARTIAL
(currently,PARTIAL
occurs only for memory metrics and indicates that not allmemory/%
instruments are enabled; Performance Schema memory instruments are always enabled)For the current time:
YES
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-metrics.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.