The following server metrics are registered by default:
The maximum number of metric instruments which can be created is
set by
performance_schema_max_metric_classes
.
Table 35.3 mysql.stats Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of connections that were aborted because the client died without closing the connection properly |
|
|
|
The number of failed attempts to connect to the MySQL server |
|
|
|
The number of cached privilege objects |
|
|
|
The number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction |
|
|
|
The number of transactions that used the binary log cache. |
|
|
|
The number of non-transaction statements that used the binary log statement cache but that exceeded the value of binlog_stmt_cache_size and used a temporary file to store those statements. |
|
|
|
The number of nontransactional statements that used the binary log statement cache |
|
|
|
The number of bytes received from all clients |
|
|
|
The number of bytes sent to all clients |
|
|
|
The number of internal on-disk temporary tables created by the server while executing statements |
|
|
|
How many temporary files mysqld has created |
|
|
|
The number of internal temporary tables created by the server while executing statements |
|
|
|
The number of bytes currently used in the Performance Schema error_log table |
|
|
|
The number of events currently present in the Performance Schema error_log table |
|
|
|
The number of events discarded from the Performance Schema error_log table to make room for new events |
|
|
|
The number of times the server flushes tables |
|
|
|
The memory used by all user connections to the server |
|
|
|
The number of attempts to connect to locked user accounts |
|
|
|
The number of SELECT statements for which the execution timeout was exceeded |
|
|
|
The number of SELECT statements for which a nonzero execution timeout was set |
|
|
|
The number of |
|
|
|
The maximum number of connections that have been in use simultaneously since the server started |
|
|
|
Shows the number of ongoing transactions which have been marked as anonymous |
|
|
|
The number of files that are open. This count includes regular files opened by the server. |
|
|
|
The number of streams that are open, used mainly for logging |
|
|
|
The number of cached table definitions |
|
|
|
The number of tables that are open. |
|
|
|
The number of files that have been opened with
|
|
|
|
The number of table definitions that have been cached. |
|
|
|
The number of tables that have been opened |
|
|
|
The current number of prepared statements |
|
|
|
The number of statements executed by the server,
including ones executed within stored programs. It
does not count |
|
|
|
The number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs. |
|
|
|
Number of temporary tables that the replication SQL thread currently has open. |
|
|
|
The number of queries offloaded to a secondary engine |
|
|
|
The number of joins that perform table scans because they do not use indexes |
|
|
|
The number of joins that used a range search on a reference table |
|
|
|
The number of joins that used ranges on the first table |
|
|
|
The number of joins without keys that check for key usage after each row |
|
|
|
The number of joins that did a full scan of the first table |
|
|
|
The number of threads that have taken more than slow_launch_time seconds to create. |
|
|
|
The number of queries that have taken more than long_query_time seconds |
|
|
|
The number of merge passes that the sort algorithm has had to do |
|
|
|
The number of sorts that were done using ranges |
|
|
|
The number of sorted rows. |
|
|
|
The number of sorts that were done by scanning the table. |
|
|
|
The number of times that a request for a table lock could be granted immediately |
|
|
|
The number of times that a request for a table lock could not be granted immediately and a wait was needed. |
|
|
|
The number of hits for open tables cache lookups. |
|
|
|
The number of misses for open tables cache lookups. |
|
|
|
The number of overflows for the open tables cache. |
|
|
|
For the memory-mapped implementation of the recovery log, this variable increments each time the server was not able to commit a transaction and had to wait for a free page in the log. |
|
|
|
The number of threads in the thread cache. |
|
|
|
The number of currently open connections |
|
|
|
The number of threads created to handle connections. |
|
|
|
The number of threads that are not sleeping. |
|
|
|
The number of seconds that the server has been up. |
The mysql.stats.com
metrics correspond to
the Com_
statement counter variables. See
Section 7.1.10, “Server Status Variables” and
Com_xxxfor more
information.
xxx
The mysql.stats.com
metrics are named for
those variables, without the Com_
prefix.
For example, the select
metric corresponds
to the Com_select
statement counter
variable.
These metrics are of OTEL Type ASYNC
COUNTER
and record the number of times (INTEGER) the
corresponding command statement has been executed.
The mysql.stats.connection
metrics
correspond to the Connections
and
Connection_
status variables.
XXX
Table 35.4 mysql.stats.connection Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
Cumulative count of total connections created. |
|
|
|
The number of errors that occurred during calls to
|
|
|
|
The number of connections refused due to internal errors in the server, such as failure to start a new thread or an out-of-memory condition. |
|
|
|
The number of connections refused because the server max_connections limit was reached. |
|
|
|
The number of errors that occurred while searching for connecting client IP addresses. |
|
|
|
The number of errors that occurred during calls to select() or poll() on the listening port. |
|
|
|
The number of connections refused by the
|
The mysql.perf_schema
correspond to the
Performance_schema_
status variables. See
Section 29.7, “Performance Schema Status Monitoring”.
XXX
Table 35.5 mysql.perf_schema Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of times a row could not be added to the accounts table because it was full. |
|
|
|
How many condition instruments could not be loaded. |
|
|
|
How many condition instrument instances could not be created. |
|
|
|
The number of digest instances that could not be
instrumented in the
|
|
|
|
How many file instruments could not be loaded. |
|
|
|
How many file instrument instances could not be opened. |
|
|
|
How many file instrument instances could not be created. |
|
|
|
The number of times a row could not be added to the hosts table because it was full. |
|
|
|
The number of indexes for which statistics were lost. |
|
|
|
How many events are lost or not recorded. |
|
|
|
The number of times a memory instrument could not be loaded. |
|
|
|
The number of metadata locks that could not be
instrumented in the
|
|
|
|
How many meter instruments could not be loaded. |
|
|
|
How many metric instruments could not be loaded. |
|
|
|
How many mutex instruments could not be loaded. |
|
|
|
How many mutex instrument instances could not be created. |
|
|
|
The number of stored program statements for which statistics were lost. |
|
|
|
The number of prepared statements that could not be
instrumented in the
|
|
|
|
The number of stored programs for which statistics were lost. |
|
|
|
How many rwlock instruments could not be loaded. |
|
|
|
How many rwlock instrument instances could not be created. |
|
|
|
Longest seen connection attribute received. |
|
|
|
The number of connections for which connection attribute truncation has occurred |
|
|
|
How many socket instruments could not be loaded. |
|
|
|
How many socket instrument instances could not be created. |
|
|
|
How many stage instruments could not be loaded. |
|
|
|
How many statement instruments could not be loaded. |
|
|
|
How many table instrument instances could not be opened. |
|
|
|
How many table instrument instances could not be created. |
|
|
|
The number of tables for which lock statistics were lost. |
|
|
|
How many thread instruments could not be loaded. |
|
|
|
The number of thread instances that could not be
instrumented in the
|
|
|
|
The number of times a row could not be added to the
|
The mysql.stats.handler
metrics correspond
to the
Handler_
status variables.
XXX
Table 35.6 mysql.perf_schema Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of internal COMMIT statements. |
|
|
|
The number of times that rows have been deleted from tables |
|
|
|
The number of times that tables have been discovered. |
|
|
|
The server increments this variable for each call to its external_lock() function, which generally occurs at the beginning and end of access to a table instance. |
|
|
|
The number of times the server uses a storage engine's own Multi-Range Read implementation for table access. |
|
|
|
A counter for the prepare phase of two-phase commit operations. |
|
|
|
The number of times the first entry in an index was read. |
|
|
|
The number of requests to read a row based on a key. |
|
|
|
The number of requests to read the last key in an index. |
|
|
|
The number of requests to read the next row in key order. |
|
|
|
The number of requests to read the previous row in key order. |
|
|
|
The number of requests to read a row based on a fixed position. |
|
|
|
The number of requests to read the next row in the data file. |
|
|
|
The number of requests for a storage engine to perform a rollback operation. |
|
|
|
The number of requests for a storage engine to place a savepoint. |
|
|
|
The number of requests for a storage engine to roll back to a savepoint. |
|
|
|
The number of requests to update a row in a table. |
|
|
|
The number of requests to insert a row in a table. |
Table 35.7 mysql.perf_schema Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of key blocks in the MyISAM key cache that have changed but have not yet been flushed to disk. |
|
|
|
The number of unused blocks in the MyISAM key cache. |
|
|
|
The number of used blocks in the MyISAM key cache. |
|
|
|
The number of requests to read a key block from the MyISAM key cache. |
|
|
|
The number of physical reads of a key block from disk into the MyISAM key cache. |
|
|
|
The number of requests to write a key block to the MyISAM key cache. |
|
|
|
The number of physical writes of a key block from the MyISAM key cache to disk. |
Table 35.8 mysql.stats.ssl Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of SSL connection attempts to an SSL-enabled replication source server. |
|
|
|
The number of negotiates needed to establish the connection to an SSL-enabled replication source server. |
|
|
|
The number of successful SSL connections to the server. |
|
|
|
The number of successful replica connections to an SSL-enabled replication source server. |
|
|
|
The number of SSL session cache hits. |
|
|
|
The number of SSL session cache misses. |
|
|
|
The number of SSL session cache overflows. |
|
|
|
The SSL session cache size. |
|
|
|
The number of SSL session cache timeouts. |
|
|
|
How many SSL session cache entries were used. |
|
|
|
The number of negotiates needed to establish the connection. |
|
|
|
The number of accepted SSL connections. |
|
|
|
The number of callback cache hits. |
Table 35.9 mysql.inno Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
Number of pages that have been written for doublewrite operations |
|
|
|
Number of doublewrite operations that have been performed |
|
|
|
LSN range size in bytes containing in-use redo log data. |
|
|
|
Disk space in bytes currently consumed by all redo log files on disk, excluding spare redo log files |
|
|
|
Redo log capacity in bytes for all redo log files, after the last completed capacity resize operation |
|
|
|
Number of log waits due to small log buffer |
|
|
|
Number of log write requests |
|
|
|
The number of physical writes to the InnoDB redo log file |
|
|
|
Number of fsync log writes. |
|
|
|
Number of pending fsync writes. |
|
|
|
Number of pending log file writes. |
|
|
|
Bytes of log written. |
|
|
|
InnoDB page size in bytes. |
|
|
|
Number of pages created |
|
|
|
Number of pages read. |
|
|
|
Number of pages written. |
|
|
|
Number of row locks currently being waited for. |
|
|
|
Time spent in acquiring row locks, in milliseconds |
|
|
|
The average time to acquire a row lock, in milliseconds |
|
|
|
The maximum time to acquire a row lock, in milliseconds. |
|
|
|
Number of times a row lock had to be waited for. |
|
|
|
The number of rows inserted into InnoDB tables. |
|
|
|
The number of rows read from InnoDB tables |
|
|
|
The number of rows updated in InnoDB tables. |
|
|
|
Number of rows deleted from InnoDB tables belonging to system-created schemas. |
|
|
|
Number of rows inserted into InnoDB tables belonging to system-created schemas |
|
|
|
Number of rows read from InnoDB tables belonging to system-created schemas. |
|
|
|
Number of rows updated in InnoDB tables belonging to system-created schemas. |
|
|
|
Number of files currently open. |
|
|
|
Number of times output from the
|
|
|
|
Total number of undo tablespaces. |
|
|
|
Number of user-created undo tablespaces. |
|
|
|
Number of active undo tablespaces, including implicit and explicit tablespaces |
Table 35.10 mysql.inno.buffer_pool Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
Buffer pages containing data. |
|
|
|
Buffer bytes containing data. |
|
|
|
Buffer pages currently dirty. |
|
|
|
Buffer bytes currently dirty |
|
|
|
The number of requests to flush pages from the InnoDB buffer pool. |
|
|
|
Buffer pages currently free. |
|
|
|
Buffer pages for misc use such as row locks or the adaptive hash index. |
|
|
|
Total buffer pool size in pages. |
|
|
|
The number of 'random' read-aheads initiated by InnoDB. |
|
|
|
Number of pages read as read ahead. |
|
|
|
Read-ahead pages evicted without being accessed. |
|
|
|
Number of logical read requests. |
|
|
|
Number of reads directly from disk. |
|
|
|
Number of times waited for free buffer. |
|
|
|
Number of write requests. |
Table 35.11 mysql.inno.data Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
Number of |
|
|
|
Number of pending fsync operations. |
|
|
|
The current number of pending reads |
|
|
|
The current number of pending writes. |
|
|
|
Amount of data read in bytes. |
|
|
|
Number of reads initiated. |
|
|
|
Number of writes initiated. |
|
|
|
Amount of data written in bytes. |
Table 35.12 mysql.x Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of clients that were disconnected because of an input or output error. |
|
|
|
The total number of bytes received through the network, measured before decompression. |
|
|
|
The number of bytes received as compressed message payloads, measured before decompression. |
|
|
|
The number of bytes received as compressed message payloads, measured after decompression. |
|
|
|
The total number of bytes sent through the network. |
|
|
|
The number of bytes sent as compressed message payloads, measured after compression. |
|
|
|
The number of bytes sent as compressed message payloads, measured before compression. |
|
|
|
The number of connections which have caused accept errors. |
|
|
|
The number of connections which have caused errors. |
|
|
|
The number of connections which have been accepted. |
|
|
|
The number of connections which have been closed. |
|
|
|
The number of connections which have been rejected. |
|
|
|
The number of create view requests received. |
|
|
|
The number of delete requests received. |
|
|
|
The number of drop view requests received. |
|
|
|
The number of find requests received. |
|
|
|
The number of insert requests received. |
|
|
|
The number of modify view requests received. |
|
|
|
The number of update requests received. |
|
|
|
The number of cursor-close messages received. |
|
|
|
The number of cursor-fetch messages received. |
|
|
|
The number of cursor-open messages received. |
|
|
|
The number of errors sent to clients. |
|
|
|
The number of unknown message types that have been received. |
|
|
|
The number of expectation blocks closed. |
|
|
|
The number of expectation blocks opened. |
|
|
|
The number of errors during initialization. |
|
|
|
The total number of messages of all types sent to clients. |
|
|
|
The number of global notifications sent to clients. |
|
|
|
The number of other types of notices sent back to clients. |
|
|
|
The number of warning notices sent back to clients. |
|
|
|
Number of Group Replication notifications sent to clients. |
|
|
|
The number of prepared-statement-deallocate messages received. |
|
|
|
The number of prepared-statement-execute messages received. |
|
|
|
The number of prepared-statement messages received. |
|
|
|
The number of rows sent back to clients. |
|
|
|
The number of sessions that have been opened. |
|
|
|
The number of session attempts which have been accepted. |
|
|
|
The number of sessions that have been closed. |
|
|
|
The number of sessions that have closed with a fatal error. |
|
|
|
The number of sessions which have been killed. |
|
|
|
The number of session attempts which have been rejected. |
|
|
|
The number of accepted SSL connections. |
|
|
|
The number of successful SSL connections to the server. |
|
|
|
The number of worker threads available. |
|
|
|
The number of worker threads currently used. |
Table 35.13 mysql.x.stmt Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
The number of create collection statements received. |
|
|
|
The number of create collection index statements received. |
|
|
|
The number of disable notice statements received. |
|
|
|
The number of drop collection statements received. |
|
|
|
The number of drop collection index statements received. |
|
|
|
The number of enable notice statements received. |
|
|
|
The number of ensure collection statements received. |
|
|
|
The number of StmtExecute messages received with namespace set to mysqlx. |
|
|
|
The number of StmtExecute requests received for the SQL namespace. |
|
|
|
The number of get collection object statements received. |
|
|
|
The number of kill client statements received. |
|
|
|
The number of list client statements received. |
|
|
|
The number of list notice statements received. |
|
|
|
The number of list object statements received. |
|
|
|
The number of modify collection options statements received. |
|
|
|
The number of ping statements received. |
Table 35.14 mysql.mle Metrics
Name | Source Variable | OTEL Type | Description |
---|---|---|---|
|
|
Number of currently active MLE sessions. |
|
|
|
Heap memory used, in percentage of maximum available memory. |
|
|
|
Maximum number of simultaneously active MLE sessions. |
|
|
|
Number of calls to
|
|
|
|
Number of times MLE session hit out of memory error. |
|
|
|
Number of cached MLE stored programs across all sessions. |
|
|
|
Number of cached MLE stored functions across all sessions. |
|
|
|
Number of cached MLE stored procedures across all sessions. |
|
|
|
Code size of the largest MLE stored programs (in bytes). |
|
|
|
Highest number of executed SQL statements in a single MLE stored program. |
|
|
|
Number of currently attached MLE threads. |
|
|
|
Maximum number of simultaneously attached MLE threads over time. |