Skip to main content
Version: NG-2.13

MYSQL

Introduction

MySQL is an open-source relational database management system (RDBMS) known for its speed, reliability, and ease of use. It is widely used for storing and managing structured data in various applications, from small websites to large-scale enterprise systems.

Getting Started

Compatibility

The MySQL O11ySource is designed to work with all versions greater than or equal to 5.7, and it has been tested with MySQL 8.0.

Qcache queries will not work with version 8.x, as the feature has been revoked.

Data Collection Method

The MySQL O11ySource is configured to collect various kinds of metrics related to MySQL Performance & MySQL Engine Performance, Additionally, if MySQL is deployed in non-standalone mode, it also collects metrics for Group Replication, Master-Slave related metrics & Galera Cluster Metrics. Error logs and slow log details are also captured.

vuSmartMaps uses an internal agent to collect MySQL Performance Metrics, MySQL Engine Performance Metrics, MySQL Master-Slave Metrics, MySQL Group Replication, MySQL Galera Cluster Metrics Logbeat agent is used to collect MySQL Slow Logs, MySQL Error Logs

Prerequisites

Dependent Configuration

To configure this O11ySource, create a 'credential' of type 'user' under the 'Definition' tab.

Inputs for Configuring Data Source

  • Instance Name: Please enter the name of the MySQL instance. This should be a unique identifier for the specific MySQL deployment you want to monitor.
  • DB Details: Please provide the details of DB
  • IP Address: IP address needs to be a valid IP Address.
  • Port: Enter a valid port
  • Credential: This field is required
  • DB Instance Role: DB Instance Role to indetify whether it is master or slave
  • DB Name: Name of the database to be polled for metrics
  • Metrics Collection Queries: These queries are utilized for Mysql server's metrics. You have the flexibility to modify the queries, adjust the polling interval, or include additional queries to capture any additional metrics as needed.
  • Query: Choose the Queries
  • Polling Interval [seconds]: How frequently data is gathered. interval should be between 60 - 3000 seconds
  • Slow Log Path: Enter the valid MySQL slow logfile’s entire path
  • Error Log Path: Enter the valid MySQL error logfile’s entire path

Firewall Requirement

To collect data from this O11ySource, ensure the following ports are opened:

Source IPDestination IPDestination PortProtocolDirection
vuSmartMaps IPIP address of the MySQL server3306*TCPOutbound
IP address of the MySQL servervuSmartMaps Kafka Broker IP9092*TCPInbound

*Before providing the firewall requirements, please update the port based on the customer environment.

Configuring the Target

Configure Metrics Collection from MySQL Server

  • On each MySQL server, create a database user for the vuSmartMaps Agent.
  • *For MySQL 5.6 or MySQL 5.7 create the vunet user with the following command:
CREATE USER 'vunet'@'%' IDENTIFIED BY '<UNIQUEPASSWORD>';
  • *or MySQL 8.0 or greater, create the vunet user with the native password hashing method:
CREATE USER 'vunet'@'%' IDENTIFIED WITH mysql_native_password '<UNIQUEPASSWORD>';
  • The vuSmartMaps agent required the below permissions to collect the metrics from MySQL. Grant the vunet user only the following limited privileges:
  • *Grant replication client with the following command:
GRANT REPLICATION CLIENT ON *.* TO 'vunet'@'%';
  • *Grant replication client with the following command:
GRANT PROCESS ON *.* TO 'vunet'@'%';
  • *Grant replication client with the following command:
GRANT SELECT ON performance_schema.* TO 'vunet'@'%';
GRANT SELECT ON sys.schema_unused_indexes TO 'vunet'@'%';
GRANT SELECT ON sys.x$statements_with_full_table_scans TO 'vunet'@'%';

Configure Logs Collection from MySQL Server

By default, MySQL logs everything in /var/log/syslog. To make the logs more accessible, follow these steps:

  • Edit /etc/mysql/conf.d/mysqld_safe_syslog.cnf and remove or comment the lines.
  • Edit /etc/mysql/my.cnf and add the following lines to enable general, error, and slow query logs:
[mysqld_safe]
log_error = /var/log/mysql/mysql_error.log
[mysqld]
general_log = on
general_log_file = /var/log/mysql/mysql.log
log_error = /var/log/mysql/mysql_error.log
slow_query_log = on
slow_query_log_file = /var/log/mysql/mysql_slow.log
long_query_time = 2
  • Save the file and restart MySQL using the following command:
service mysql restart

Configuration Steps

  • Enable the O11ySource.
  • Select the Sources tab and press the + button to add MySQL instance details that has to be monitored.
  • Set up metrics and log collection configurations.The O11ysource already provides predefined metric collection queries. You have the flexibility to adjust query intervals, modify existing queries, and introduce new queries as needed. Afterwards, select Save and Continue to proceed with downloading the Logbeat agent.
  • The following packages will be available for download based on the OS <Logbeat full install package> - Downloads the full Logbeat agent package with required configurations for a fresh installation <Logbeat config update package> - Downloads the agent configuration package to update an existing Logbeat installation
  • Download the agent installation or update package, then click Finish to close the data source window.

Metrics Collected

NameDescriptionData Type
timestampThe timestamp when the metrics were recordedDateTime64
tenant_idThe tenant IDLowCardinality(String)
bu_idThe business unit IDLowCardinality(String)
hostThe host name where the metrics are collectedLowCardinality(String)
typeThe type of the entity being monitoredLowCardinality(String)
ClusterIDName of the culster for which the metrics are collectedLowCardinality(String)
DBNameName of the database for which the metrics are collectedLowCardinality(String)
ThreadIdUnique identifier for the thread where the log was generated.String
LogLevelSeverity level of the log messageString
LogmessageContent of the log entry detailing an event or issue.String
tagsMetadata or labels associated with the log for easier categorization.Array(String)
messageThe actual text or content of the log entry.String
timestampThe timestamp when the metrics were recordedDateTime64
tenant_idThe tenant IDLowCardinality(String)
bu_idThe business unit IDLowCardinality(String)
hostThe host name where the metrics are collectedLowCardinality(String)
typeThe type of the entity being monitoredLowCardinality(String)
ClusterIDName of the culster for which the metrics are collectedLowCardinality(String)
DBNameName of the database for which the metrics are collectedLowCardinality(String)
uniqueIdUnique identifier for the recordLowCardinality(String)
Com_deleteTotal number of DELETE commands executed.UInt64
Com_selectTotal number of SELECT commands executed.UInt64
Com_insertTotal number of INSERT commands executed.UInt64
Com_updateTotal number of UPDATE commands executed.UInt64
Com_delete_multiTotal number of multi-row DELETE commands executed.UInt64
Com_insert_selectTotal number of INSERT...SELECT commands executed.UInt64
Com_replace_selectTotal number of REPLACE...SELECT commands executed.UInt64
Com_update_multiTotal number of multi-row UPDATE commands executed.UInt64
Com_replaceTotal number of REPLACE commands executed.UInt64
Com_loadTotal number of LOAD commands executed.UInt64
Com_delete_diffDifference in the number of DELETE commands executed over a time interval.UInt64
Com_insert_diffDifference in the number of INSERT commands executed over a time interval.UInt64
Com_select_diffDifference in the number of SELECT commands executed over a time interval.UInt64
Com_update_diffDifference in the number of UPDATE commands executed over a time interval.UInt64
Com_delete_multi_diffDifference in the number of multi-row DELETE commands over a time interval.UInt64
Com_insert_select_diffDifference in the number of INSERT...SELECT commands over a time interval.UInt64
Com_replace_select_diffDifference in the number of REPLACE...SELECT commands over a time interval.UInt64
Com_update_multi_diffDifference in the number of multi-row UPDATE commands over a time interval.UInt64
Com_replace_diffDifference in the number of REPLACE commands over a time interval.UInt64
Com_load_diffDifference in the number of LOAD commands over a time interval.UInt64
cluster_sizeThe current size of the Galera cluster (number of nodes).UInt64
wsrep_local_recv_queue_avgAverage size of the local receive queue.Float64
wsrep_flow_control_pausedFraction of time replication is paused due to flow control.Float64
wsrep_flow_control_paused_nsFlow control pause time in nanoseconds.Float64
wsrep_flow_control_recvNumber of flow control messages received.UInt64
wsrep_flow_control_sentNumber of flow control messages sent.UInt64
wsrep_cert_deps_distanceAverage distance between certifying transactions.Float64
wsrep_local_send_queue_avgAverage size of the local send queue.Float64
wsrep_received_bytesTotal number of bytes received from the cluster.UInt64
wsrep_replicated_bytesTotal number of bytes replicated to the cluster.UInt64
wsrep_receivedNumber of replication messages received from the cluster.UInt64
wsrep_local_stateLocal node's current state in the Galera cluster.UInt64
wsrep_local_cert_failuresNumber of certification failures on the local node.UInt64
wsrep_local_state_commentHuman-readable description of the local node's current state.String
total_size_mbTotal size in mbFloat64
object_schemaThe schema name of the database objectString
object_nameThe name of the database objectString
index_nameThe name of the index on the objectString
Auto_PositionAuto position settingString
Channel_NameReplication channel nameString
Connect_RetryRetry interval in secondsUInt64
Exec_Master_Log_PosExec master log positionUInt64
Executed_Gtid_SetExecuted GTID setString
Get_master_public_keyMaster public key requestString
Last_ErrnoLast error numberUInt64
Last_ErrorLast error descriptionString
Last_IO_ErrnoLast I/O error numberUInt64
Last_IO_ErrorLast I/O error descriptionString
Last_IO_Error_TimestampLast I/O error timestampString
Last_SQL_ErrnoLast SQL error numberUInt64
Last_SQL_ErrorLast SQL error descriptionString
Last_SQL_Error_TimestampLast SQL error timestampString
Master_BindMaster binding addressString
Master_HostMaster host nameString
Master_Info_FileMaster info file pathString
Master_Log_FileMaster log file nameString
Master_PortMaster server portString
Master_Retry_CountNumber of master retriesString
Master_SSL_AllowedMaster SSL allowed statusString
Master_SSL_CA_FileMaster SSL CA fileString
Master_SSL_CA_PathMaster SSL CA pathString
Master_SSL_CertMaster SSL certificateString
Master_SSL_CipherMaster SSL cipherString
Master_SSL_CrlMaster SSL CRL fileString
Master_SSL_CrlpathMaster SSL CRL pathString
Master_SSL_KeyMaster SSL key fileString
Master_SSL_Verify_Server_CertSSL server certificate verifyString
Master_Server_IdMaster server identifierString
Master_TLS_VersionMaster TLS versionString
Master_UUIDMaster UUIDString
Master_UserMaster usernameString
Master_public_key_pathMaster public key pathString
Network_NamespaceNetwork namespaceString
Read_Master_Log_PosRead master log positionUInt64
Relay_Log_FileRelay log file nameString
Relay_Log_PosRelay log positionUInt64
Relay_Log_SpaceRelay log space usedUInt64
Relay_Master_Log_FileRelay master log fileString
Replicate_Do_DBDatabase replication inclusionString
Replicate_Do_Domain_IdsDomain IDs to replicateString
Replicate_Do_TableTable replication inclusionString
Replicate_Ignore_DBDatabase replication exclusionString
Replicate_Ignore_Server_IdsServer IDs to ignoreString
Replicate_Ignore_TableTable replication exclusionString
Replicate_Rewrite_DBDatabase rewrite ruleString
Replicate_Wild_Do_TableWildcard table replication inclusionString
Replicate_Wild_Ignore_TableWildcard table replication exclusionString
Retrieved_Gtid_SetRetrieved GTID setString
SQL_DelaySQL delay in secondsUInt64
Seconds_Behind_MasterSeconds behind masterUInt64
Skip_CounterSkip counter valueUInt64
Slave_IO_RunningSlave I/O running statusString
Slave_IO_StateSlave I/O stateString
Slave_SQL_RunningSlave SQL running statusString
Slave_SQL_Running_StateSlave SQL running stateString
Slave_Transactional_GroupsTransactional group countUInt64
Until_ConditionReplication until conditionString
Until_Log_FileReplication until log fileString
Until_Log_PosReplication until log positionUInt64
Last_Errno_diffLast error number differenceUInt64
Last_IO_Errno_diffLast I/O error number differenceUInt64
Last_SQL_Errno_diffLast SQL error number differenceUInt64
IDUnique identifier for the processUInt64
USERThe user executing the commandString
HOSTThe host from which the command is executedString
DBThe DB usedString
COMMANDThe command being executedString
TIMETime in seconds the command has been runningUInt64
STATECurrent state of the commandString
INFOCurrent InfoString
EXECUTION_ENGINEExecution engineString
UserThe name of the user who executed the queryString
IPAddressIP address of the user or clientLowCardinality(String)
ThreadIdIdentifier of the thread processing the queryString
QueryTimeTime taken to execute the queryFloat64
LockTimeTime spent waiting for locks during query executionFloat64
RowsSentNumber of rows sent to the clientUInt64
RowsExaminedNumber of rows examined while executing the queryUInt64
QueryThe actual query executed by the userString
tagsArray of tags associated with the query logArray(String)
messageLog message associated with the queryString
table_scan_queryQuery that involved a table scanString
table_scan_dbDatabase where the table scan occurredString
table_scan_exec_countNumber of times the table scan was executedUInt64
table_scan_total_latencyTotal latency of the table scan executionUInt64
table_scan_no_index_used_pctPercentage of table scans without index usageString
table_scan_row_sent_avgAverage number of rows sent during table scansString
table_scan_rows_examinedNumber of rows examined during table scansString
table_scan_first_seenTimestamp when the table scan was first observedDateTime64
table_scan_last_seenTimestamp when the table scan was last observedDateTime64
MEMBER_HOSTHostname of the memberString
MEMBER_STATECurrent state of the memberString
COUNT_TRANSACTIONS_LOCAL_PROPOSEDCount of locally proposed transactionsUInt64
COUNT_TRANSACTIONS_LOCAL_ROLLBACKCount of locally rolled-back transactionsUInt64
COUNT_TRANSACTIONS_ROWS_VALIDATINGCount of rows being validated during transactionsUInt64
COUNT_CONFLICTS_DETECTEDCount of conflicts detected during transactionsUInt64
Count_transactions_checkedCount of transactions that were checkedUInt64
TRANSACTIONS_COMMITTED_ALL_MEMBERSTransactions committed across all membersString
COUNT_TRANSACTIONS_IN_QUEUECount of transactions waiting in the queueUInt64
uniqueIdUnique identifier for the recordLowCardinality(String)
Innodb_ibuf_merges_delete_markCount of delete mark merges in the InnoDB insert bufferUInt64
Innodb_ibuf_merges_deleteCount of delete merges in the InnoDB insert bufferUInt64
Innodb_ibuf_merges_insertCount of insert merges in the InnoDB insert bufferUInt64
Innodb_ibuf_mergesTotal count of merges in the InnoDB insert bufferUInt64
Innodb_os_log_pending_fsyncsCount of pending fsync operations for the InnoDB logUInt64
Innodb_os_log_pending_writesCount of pending write operations for the InnoDB logUInt64
Innodb_rwlock_s_spin_waitsCount of spin waits for shared read locksUInt64
Innodb_rwlock_x_spin_waitsCount of spin waits for exclusive write locksUInt64
Innodb_rwlock_s_spin_roundsCount of spin rounds for shared read locksUInt64
Innodb_rwlock_x_spin_roundsCount of spin rounds for exclusive write locksUInt64
Innodb_rwlock_s_os_waitsCount of operating system waits for shared read locksUInt64
Innodb_rwlock_x_os_waitsCount of operating system waits for exclusive write locksUInt64
Innodb_buffer_pool_pages_totalTotal number of pages in the InnoDB buffer poolUInt64
Innodb_buffer_pool_pages_dataNumber of data pages in the InnoDB buffer poolUInt64
Innodb_page_sizeSize of InnoDB pagesUInt64
Innodb_buffer_pool_pages_dirtyCount of dirty pages in the InnoDB buffer poolUInt64
Innodb_row_lock_current_waitsCurrent count of row lock waitsUInt64
Innodb_data_writesCount of data writes to the InnoDB storageUInt64
Innodb_data_readsCount of data reads from the InnoDB storageUInt64
Innodb_os_log_fsyncsCount of fsync operations on the InnoDB logUInt64
Innodb_row_lock_timeTotal time spent on row locksUInt64
Innodb_row_lock_waitsTotal number of row lock waitsUInt64
Innodb_data_fsyncsCount of data fsync operationsUInt64
Innodb_data_pending_fsyncsCount of pending fsync operations for dataUInt64
Innodb_data_pending_readsCount of pending read operations for dataUInt64
Innodb_data_pending_writesCount of pending write operations for dataUInt64
Innodb_data_readTotal bytes of data readUInt64
Innodb_data_writtenTotal bytes of data writtenUInt64
Innodb_dblwr_pages_writtenCount of pages written by double writeUInt64
Innodb_dblwr_writesCount of double write operationsUInt64
Innodb_buffer_pool_pages_flushedCount of pages flushed from the InnoDB buffer poolUInt64
Innodb_buffer_pool_pages_freeNumber of free pages in the InnoDB buffer poolUInt64
Innodb_buffer_pool_read_aheadCount of read-ahead requests in the InnoDB buffer poolUInt64
Innodb_buffer_pool_read_ahead_evictedCount of evicted pages during read-ahead operationsUInt64
Innodb_buffer_pool_read_ahead_rndCount of random read-ahead requests in the InnoDB buffer poolUInt64
Innodb_buffer_pool_wait_freeCount of waits for free pages in the InnoDB buffer poolUInt64
Innodb_buffer_pool_write_requestsCount of write requests to the InnoDB buffer poolUInt64
Innodb_log_waitsCount of waits for log operationsUInt64
Innodb_log_write_requestsCount of log write requestsUInt64
Innodb_log_writesCount of log writesUInt64
Innodb_os_log_writtenTotal bytes written to the InnoDB logUInt64
Innodb_pages_createdCount of pages created in InnoDBUInt64
Innodb_pages_readCount of pages read in InnoDBUInt64
Innodb_pages_writtenCount of pages written in InnoDBUInt64
Innodb_rows_deletedCount of rows deleted in InnoDBUInt64
Innodb_rows_insertedCount of rows inserted in InnoDBUInt64
Innodb_rows_readCount of rows read in InnoDBUInt64
Innodb_rows_updatedCount of rows updated in InnoDBUInt64
Innodb_buffer_pool_readsCount of reads from the InnoDB buffer poolUInt64
Innodb_buffer_pool_read_requestsCount of read requests in the InnoDB buffer poolUInt64
Innodb_buffer_pool_bytes_dataTotal bytes of data in the InnoDB buffer poolUInt64
Innodb_buffer_pool_bytes_dirtyTotal bytes of dirty data in the InnoDB buffer poolUInt64
Innodb_buffer_pool_sizeTotal size of the InnoDB buffer poolUInt64
Innodb_ibuf_merges_delete_mark_diffDifference in delete mark merges in the InnoDB insert bufferUInt64
Innodb_ibuf_merges_delete_diffDifference in delete merges in the InnoDB insert bufferUInt64
Innodb_ibuf_merges_insert_diffDifference in insert merges in the InnoDB insert bufferUInt64
Innodb_ibuf_merges_diffDifference in total merges in the InnoDB insert bufferUInt64
Innodb_os_log_pending_fsyncs_diffDifference in pending fsync operations for the InnoDB logUInt64
Innodb_os_log_pending_writes_diffDifference in pending write operations for the InnoDB logUInt64
Innodb_rwlock_s_spin_waits_diffDifference in spin waits for shared read locksUInt64
Innodb_rwlock_x_spin_waits_diffDifference in spin waits for exclusive write locksUInt64
Innodb_rwlock_s_spin_rounds_diffDifference in spin rounds for shared read locksUInt64
Innodb_rwlock_x_spin_rounds_diffDifference in spin rounds for exclusive write locksUInt64
Innodb_rwlock_s_os_waits_diffDifference in operating system waits for shared read locksUInt64
Innodb_rwlock_x_os_waits_diffDifference in operating system waits for exclusive write locksUInt64
Innodb_buffer_pool_read_requests_diffDifference in read requests in the InnoDB buffer poolUInt64
Innodb_buffer_pool_reads_diffDifference in reads from the InnoDB buffer poolUInt64
Innodb_page_size_diffDifference in page size for InnoDBUInt64
Innodb_pages_created_diffDifference in pages created in InnoDBUInt64
Innodb_pages_read_diffDifference in pages read in InnoDBUInt64
Innodb_pages_written_diffDifference in pages written in InnoDBUInt64
Innodb_data_writes_diffDifference in data writes to the InnoDB storageUInt64
Innodb_data_reads_diffDifference in data reads from the InnoDB storageUInt64
Innodb_data_fsyncs_diffDifference in data fsync operationsUInt64
Innodb_data_read_diffDifference in bytes read from dataUInt64
Innodb_data_written_diffDifference in bytes written to dataUInt64
Innodb_buffer_pool_pages_flushed_diffDifference in pages flushed from the InnoDB buffer poolUInt64
Innodb_buffer_pool_wait_free_diffDifference in waits for free pages in the InnoDB buffer poolUInt64
Innodb_buffer_pool_write_requests_diffDifference in write requests to the InnoDB buffer poolUInt64
Innodb_log_waits_diffDifference in waits for log operationsUInt64
Innodb_log_write_requests_diffDifference in log write requestsUInt64
Innodb_log_writes_diffDifference in log writesUInt64
uniqueIdUnique identifier for the recordLowCardinality(String)
Max_connectionsMaximum permitted number of simultaneous client connectionsUInt64
Key_buffer_sizeSize of the buffer used for caching index blocksUInt64
Max_prepared_stmt_countMaximum number of prepared statements allowedUInt64
Table_open_cacheNumber of open tables cacheUInt64
Thread_cache_sizeNumber of threads to cacheUInt64
Aborted_clientsCount of aborted client connectionsUInt64
Aborted_connectsCount of failed connection attemptsUInt64
Binlog_cache_disk_useAmount of disk space used for binary log cacheUInt64
Binlog_cache_useAmount of binary log cache usedUInt64
Bytes_receivedTotal number of bytes receivedUInt64
Bytes_sentTotal number of bytes sentUInt64
Threads_cachedNumber of cached threadsUInt64
Threads_connectedCurrent number of open connectionsUInt64
Threads_createdTotal number of threads createdUInt64
Threads_runningNumber of threads currently executingUInt64
ConnectionsTotal number of connection attemptsUInt64
Created_tmp_disk_tablesCount of temporary tables created on diskUInt64
Created_tmp_filesCount of temporary files createdUInt64
Created_tmp_tablesCount of temporary tables createdUInt64
Flush_commandsCount of flush commands executedUInt64
Max_used_connectionsMaximum number of connections used since the server startedUInt64
Open_filesNumber of files currently openUInt64
Open_streamsNumber of open streamsUInt64
Opened_tablesCount of tables openedUInt64
Open_tablesNumber of currently open tablesUInt64
Table_locks_waitedCount of times a table lock was waited onUInt64
UptimeServer uptime in secondsUInt64
QueriesTotal number of queries executedUInt64
QuestionsTotal number of questions askedUInt64
Connection_errors_max_connectionsCount of errors for max connections exceededUInt64
Connection_errors_internalCount of internal connection errorsUInt64
Max_used_connections_timestampTimestamp when the maximum connections were usedString
Key_readsCount of key readsUInt64
Key_read_requestsCount of key read requestsUInt64
Prepared_stmt_countCount of prepared statements currently in useUInt64
Slow_queriesCount of queries that have taken longer than the defined thresholdUInt64
Key_write_requestsCount of key write requestsUInt64
Key_writesCount of key writesUInt64
Handler_commitCount of commit operations handledUInt64
Handler_deleteCount of delete operations handledUInt64
Handler_prepareCount of prepare operations handledUInt64
Handler_read_firstCount of read first operationsUInt64
Handler_read_keyCount of read key operationsUInt64
Handler_read_nextCount of read next operationsUInt64
Handler_read_prevCount of read previous operationsUInt64
Handler_read_rndCount of random read operationsUInt64
Handler_read_rnd_nextCount of random read next operationsUInt64
Handler_rollbackCount of rollback operations handledUInt64
Handler_updateCount of update operations handledUInt64
Handler_writeCount of write operations handledUInt64
SELECT_full_joinCount of full joins executed in SELECT statementsUInt64
SELECT_full_range_joinCount of full range joins executed in SELECT statementsUInt64
SELECT_rangeCount of range SELECT operationsUInt64
SELECT_range_checkCount of range checks in SELECT statementsUInt64
SELECT_scanCount of table scans executed in SELECT statementsUInt64
Sort_merge_passesCount of merge passes during sortingUInt64
Sort_rangeCount of range sorts executedUInt64
Sort_rowsTotal number of rows sortedUInt64
Sort_scanCount of scans executed during sortingUInt64
Table_locks_immediateCount of immediate table locks acquiredUInt64
Table_open_cache_hitsCount of cache hits for opened tablesUInt64
Table_open_cache_missesCount of misses in the opened table cacheUInt64
Aborted_clients_diffDifference in aborted client connectionsUInt64
Aborted_connects_diffDifference in aborted connection attemptsUInt64
Binlog_cache_use_diffDifference in binary log cache usageUInt64
Bytes_received_diffDifference in bytes receivedUInt64
Bytes_sent_diffDifference in bytes sentUInt64
Connections_diffDifference in connection attemptsUInt64
Created_tmp_disk_tables_diffDifference in temporary tables created on diskUInt64
Created_tmp_files_diffDifference in temporary files createdUInt64
Created_tmp_tables_diffDifference in temporary tables createdUInt64
Flush_commands_diffDifference in flush commands executedUInt64
Queries_diffDifference in queries executedUInt64
Table_locks_waited_diffDifference in table locks waited onUInt64
Questions_diffDifference in questions askedUInt64
Connection_errors_max_connections_diffDifference in max connection error countsUInt64
Connection_errors_internal_diffDifference in internal connection errorsUInt64
Slow_queries_diffDifference in slow queries executedUInt64
Handler_commit_diffDifference in commit operations handledUInt64
Handler_delete_diffDifference in delete operations handledUInt64
Handler_prepare_diffDifference in prepare operations handledUInt64
Handler_read_first_diffDifference in read first operationsUInt64
Handler_read_key_diffDifference in read key operationsUInt64
Handler_read_next_diffDifference in read next operationsUInt64
Handler_read_prev_diffDifference in read previous operationsUInt64
Handler_read_rnd_diffDifference in random read operationsUInt64
Handler_read_rnd_next_diffDifference in random read next operationsUInt64
Handler_rollback_diffDifference in rollback operations handledUInt64
Handler_update_diffDifference in update operations handledUInt64
Handler_write_diffDifference in write operations handledUInt64
SELECT_full_join_diffDifference in full joins executed in SELECT statementsUInt64
SELECT_full_range_join_diffDifference in full range joins executed in SELECT statementsUInt64
SELECT_range_diffDifference in range SELECT operationsUInt64
SELECT_range_check_diffDifference in range checks in SELECT statementsUInt64
SELECT_scan_diffDifference in table scans executed in SELECT statementsUInt64
Sort_merge_passes_diffDifference in merge passes during sortingUInt64
Sort_range_diffDifference in range sorts executedUInt64
Sort_rows_diffDifference in the number of rows sortedUInt64
Sort_scan_diffDifference in scans executed during sortingUInt64
Table_locks_immediate_diffDifference in immediate table locks acquiredUInt64
Table_open_cache_hits_diffDifference in cache hits for opened tablesUInt64
Table_open_cache_misses_diffDifference in misses in the opened table cacheUInt64
uniqueIdUnique identifier for the recordLowCardinality(String)
Query_cache_sizeSize of the query cache in bytesUInt64
Qcache_hitsNumber of query cache hitsUInt64
Qcache_insertsNumber of queries inserted into the cacheUInt64
Qcache_lowmem_prunesNumber of queries pruned from the cache due to low memoryUInt64
Qcache_total_blocksTotal number of blocks in the query cacheUInt64
Qcache_free_blocksNumber of free blocks available in the query cacheUInt64
Qcache_free_memoryAmount of free memory available in the query cacheUInt64
Qcache_not_cachedNumber of queries not cachedUInt64
Qcache_queries_in_cacheCurrent number of queries stored in the cacheUInt64
Qcache_not_cached_diffDifference in the number of queries not cachedUInt64
Qcache_queries_in_cache_diffDifference in the number of queries stored in the cacheUInt64