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_statustableInnoDBmetrics from theINFORMATION_SCHEMAINNODB_METRICStableCurrent 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_nameThe metric name. The metric type determines the source from which the name is taken:
For global status variables: The
VARIABLE_NAMEcolumn of theglobal_statustableFor
InnoDBmetrics: TheNAMEcolumn of theINNODB_METRICStableFor other metrics: A view-provided descriptive string
Variable_valueThe metric value. The metric type determines the source from which the value is taken:
For global status variables: The
VARIABLE_VALUEcolumn of theglobal_statustableFor
InnoDBmetrics: TheCOUNTcolumn of theINNODB_METRICStableFor memory metrics: The relevant column from the Performance Schema
memory_summary_global_by_event_nametableFor the current time: The value of
NOW(3)orUNIX_TIMESTAMP(NOW(3))
TypeThe metric type:
For global status variables:
Global StatusFor
InnoDBmetrics:InnoDB Metrics - %, where%is replaced by the value of theSUBSYSTEMcolumn of theINNODB_METRICStableFor memory metrics:
Performance SchemaFor the current time:
System Time
EnabledWhether the metric is enabled:
For global status variables:
YESFor
InnoDBmetrics:YESif theSTATUScolumn of theINNODB_METRICStable isenabled,NOotherwiseFor memory metrics:
NO,YES, orPARTIAL(currently,PARTIALoccurs only for memory metrics and indicates that not allmemory/%instruments are enabled; Performance Schema memory instruments are always enabled)For the current time:
YES