Skip to content

MySQL

Monitor MySQL 5.1.x and above with SQL queries from the Component Agent.

6 min read Updated SS

Supported Components and Versions#

LAYER COMPONENT VERSION
DB Server MySQL 5.1.x and above

Monitoring Strategies for Components#

Monitoring of these DB servers is using database specific SQL queries triggered from HEAL’s Component Agent. The component agent can reside on the same host, or it can trigger these queries remotely.

KPIs collected#

Component Name kpi_name kpi_identifier KpiDescription Units
MySQL Open Tables Open_tables The number of currently open tables. Count
MySQL Threads Connected Threads_connected The number of currently open connections. Count
MySQL Threads Running Threads_running The current number of threads that are not sleeping. Count
MySQL Innodb BufferPool Pages Total Innodb_buffer_pool_pages_total The total size of buffer pool in pages. Added in MySQL 5.0.2 Count
MySQL Innodb BufferPool Wait Free Innodb_buffer_pool_wait_free Total number of waiting instances before writing to the InnoDB buffer pool. Count
MySQL Table Locks Waited Table_locks_waited Number of times the table locks could not be acquired immediately and a wait was needed since the last collection. Count
MySQL Bytes Received Client Bytes_received Number of bytes received from all clients since the last collection. Bytes
MySQL Bytes Sent Client Bytes_sent Total number of bytes sent to the client from the foreground processes Bytes
MySQL Com Statement Execute Com_stmt_execute Number of Execute queries issued per interval. This includes both successful and unsuccessful queries. The Com_stmt_xxx status variables were added in 5.0.8: Count
MySQL Com Statement Prepare Com_stmt_prepare Number of Prepare queries issued per interval. This includes both successful and unsuccessful queries. The Com_stmt_xxx status variables were added in 5.0.8: Count
MySQL Com Statement Fetch Com_stmt_fetch Number of Fetch queries issued per interval. This includes both successful and unsuccessful queries. The Com_stmt_xxx status variables were added in 5.0.8: Count
MySQL Connections Connections Number of connection attempts (successful or not) to the MySQL server since the last collection. Count
MySQL Created tmp Files Created_tmp_files Number of temporary files MySQL has created since the last collection. Count
MySQL Created tmp Tables Created_tmp_tables Number of in-memory temporary tables created automatically by the server while executing statements since the last collection. Count
MySQL Handler Commit Handler_commit Number of internal COMMIT statements since the last collection. Count
MySQL Handler Rollback Handler_rollback Number of requests for a storage engine to perform a rollback operation since the last collection. Count
MySQL Innodb Log Writes Innodb_log_writes Number of physical writes to the log file since last collection. Added in MySQL 5.0.2 Count
MySQL Innodb Rows Deleted Innodb_rows_deleted Number of rows deleted from InnoDB tables since the last collection. Added in MySQL 5.0.2. Count
MySQL Innodb Rows Inserted Innodb_rows_inserted Number of rows inserted into InnoDB tables since the last collection. Added in MySQL 5.0.2 Count
MySQL Innodb Rows Read Innodb_rows_read Number of rows read from InnoDB tables since the last collection. Added in MySQL 5.0.2. Count
MySQL Innodb Rows Updated Innodb_rows_updated Number of rows updated in InnoDB tables since the last collection. Added in MySQL 5.0.2. Count
MySQL Questions Questions Number of statements that clients have sent to the server since the last collection. Count
MySQL Slow Queries Slow_queries Number of queries that have taken more than long query time seconds since the last collection. Count
MySQL Query Key Value QUERY_KEY_VALUE KPI shows query data in key value pair Text
MySQL Communication Status COMM_STATUS The status of communication between nodes in a cluster. Count
MySQL Modified Status MODIFIED_STATUS File modified status in last interval Count
MySQL Exists EXISTS indicates whether a particular object exists or not. Count
MySQL Pattern Found PATTERN_FOUND Pattern availability in the given file Count
MySQL Process Running PROCESS_RUNNING The number of processes currently running in the system. Count
MySQL Cluster Status CLUSTER_STATUS the current state of the cluster (e.g. up down syncing). Count
MySQL Key Value KEY_VALUE Modification status of the Key Value pairs in the configured file Text
MySQL File Watch FILE_WATCH Monitors file changes in a directory or a specific file. Text
MySQL Established ESTABLISHED Number of established connections for a given port Count
MySQL Close Wait CLOSE_WAIT Number of close_wait connections for a given port Count
MySQL Sync Sent SYN_SENT Number of sync sent connections for a given port Count
MySQL Time Wait TIME_WAIT Number of time_wait connections for a given port Count
MySQL Fin Wait FIN_WAIT Number of fin_wait connections for a given port Count
MySQL Sync Receive SYN_RCVD Number of synchronously received messages. Count
MySQL Ping Status PING_STATUS IP availability based on ping Count
MySQL Established Status ESTABLISHED_STATUS It indicates the current status of established connections. Count
MySQL Listen Status LISTEN_STATUS Listen status of a port Count
MySQL Slave IO Running SLAVE_SYNC_STATUS Whether the I/O thread is started and has connected successfully to the source Count
MySQL Seconds Behind Master SECONDS_BEHIND_MASTER The number of seconds that the replication SQL thread is behind processing the sources binary log. A high number (or an increasing one) can indicate that the replica is unable to handle events from the source in a timely fashion Count
MySQL Last Ack LAST_ACK Total number of TCP connections in the LAST_ACK state Count
MySQL Queries mysql_query_count Number of queries executed. Count
MySQL Avg Runtime myql_average_runtime the average time it takes for a backup or recovery operation to complete. Count
MySQL Mysql Errors mysql_errors Number of errors in schema. Count
MySQL Digest Text MYSQL_DIGEST_TEXT The unique identifier for a digest of a resource or object. Text
MySQL Count Star MYSQL_COUNT_STAR The total number of rows returned by a query. Count
MySQL Sum Timer Wait MYSQL_SUM_TIMER_WAIT The total wait time of the summarized timed wait events. Milliseconds
MySQL Min Timer Wait MYSQL_MIN_TIMER_WAIT The minimum wait time of the summarized timed wait events. Milliseconds
MySQL Avg Timer Wait MYSQL_AVG_TIMER_WAIT The average time spent waiting for a timer event to be triggered. Milliseconds
MySQL Max Timer Wait MYSQL_MAX_TIMER_WAIT The maximum wait time of the summarized timed wait events. Milliseconds
MySQL Sum Lock Time MYSQL_SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. Milliseconds
MySQL Sum Errors MYSQL_SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. Count
MySQL Sum Warnings MYSQL_SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. Count
MySQL Sum Rows Affected MYSQL_SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. Count
MySQL Sum Rows Sent MYSQL_SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. Count
MySQL Sum Rows Examined MYSQL_SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. Count
MySQL Sum Created Temp Disk Tables MYSQL_SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. Count
MySQL Sum Created Temp Tables MYSQL_SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. Count
MySQL Sum Select Full Join MYSQL_SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. Count
MySQL Sum Select Full Range Join MYSQL_SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. Count
MySQL Sum Select Range MYSQL_SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. Count
MySQL Sum Select Range Check MYSQL_SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. Count
MySQL Sum select Scan MYSQL_SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. Count
MySQL Sum Sort Merge Passes MYSQL_SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. Count
MySQL Sum Sort Range MYSQL_SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. Count
MySQL Sum Sort Rows MYSQL_SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. Count
MySQL Sum Sort Scan MYSQL_SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. Count
MySQL Sum No Index Used MYSQL_SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. Count
MySQL Sum No Good Index Used MYSQL_SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. Count
MySQL First Seen MYSQL_FIRST_SEEN Tracks the first time an event or data is seen by the system. timestamp
MySQL Last Seen MYSQL_LAST_SEEN Time at which the digest was most recently seen. timestamp
MySQL Quantile 95 MYSQL_QUANTILE_95 'The 95th percentile of the statement latency, in picoseconds. This percentile is a high estimate, computed from the histogram data collected. In other words, for a given digest, 95% of the statements measured have a latency lower than QUANTILE_95.' Count
MySQL Quantile 99 MYSQL_QUANTILE_99 'The 99th percentile of the statement latency, in picoseconds. This percentile is a high estimate, computed from the histogram data collected. In other words, for a given digest, 99% of the statements measured have a latency lower than QUANTILE_90.' Count
MySQL Quantile 999 MYSQL_QUANTILE_999 'The 99.9th percentile of the statement latency, in picoseconds. This percentile is a high estimate, computed from the histogram data collected. In other words, for a given digest, 99.9% of the statements measured have a latency lower than QUANTILE_99.9.' Count
MySQL Query Sample Text MYSQL_QUERY_SAMPLE_TEXT 'A sample SQL statement that produces the digest value in the row. This column enables applications to access, for a given digest value, a statement actually seen by the server that produces that digest. One use for this might be to run EXPLAIN on the statement to examine the execution plan for a representative statement associated with a frequently occurring digest.' Text
MySQL Sample Seen MYSQL_QUERY_SAMPLE_SEEN A timestamp indicating when the statement in the QUERY_SAMPLE_TEXT column was seen. timestamp
MySQL Query Sample Timer Wait MYSQL_QUERY_SAMPLE_TIMER_WAIT The wait time for the sample statement in the QUERY_SAMPLE_TEXT column. Count
MySQL Schema Name MYSQL_SCHEMA_NAME Database name.Records are summarised together with DIGEST. Text
MySQL DIGEST MYSQL_DIGEST Performance Schema digest. Records are summarised together with SCHEMA NAME. Text
MySQL DB Availability MySQL_Availability Availability of the MySQL database Count
MySQL Threads connected MySQL_Connections_Threads_connected Number of currently open connections Count
MySQL Aborted clients MySQL_Connections_Aborted_clients Connections aborted due to client error Count
MySQL Aborted connects MySQL_Connections_Aborted_connects Failed connection attempts Count
MySQL Connections MySQL_Connections_Total Total number of MySQL connections (includes all states) Count
MySQL Calls per Minute MySQL_Performance_Calls_per_minute Number of SQL calls per minute Count
MySQL Time Spent in Executions (s) MySQL_Performance_Execution_Time Time spent on SQL executions Seconds
MySQL Questions MySQL_Performance_Questions Number of SQL statements executed Count
MySQL Com select MySQL_Query_Com_select SELECT statements executed Count
MySQL Com insert MySQL_Query_Com_insert INSERT statements executed Count
MySQL Com update MySQL_Query_Com_update UPDATE statements executed Count
MySQL Com delete MySQL_Query_Com_delete DELETE statements executed Count
MySQL Innodb rows inserted MySQL_Query_Innodb_rows_inserted Rows inserted into InnoDB tables Count
MySQL Innodb buffer pool read requests MySQL_Buffer_Innodb_buffer_pool_read_requests Logical read requests from buffer pool Count
MySQL Innodb buffer pool reads MySQL_Buffer_Innodb_buffer_pool_reads Physical reads from disk (misses) Count
MySQL Innodb buffer pool wait free MySQL_Buffer_Innodb_buffer_pool_wait_free Waits for free pages in buffer pool Count
MySQL Innodb row lock waits MySQL_Lock_Innodb_row_lock_waits Times row locks had to wait Count
MySQL Innodb row lock time MySQL_Lock_Innodb_row_lock_time Total time waiting for row locks Milliseconds
MySQL Innodb row lock current waits MySQL_Lock_Innodb_row_lock_current_waits Current row lock waits Count
MySQL Innodb log writes MySQL_IO_Innodb_log_writes Number of log writes Count
MySQL Innodb log waits MySQL_IO_Innodb_log_waits Log write waits Count
MySQL Innodb data writes MySQL_IO_Innodb_data_writes Number of data writes Count
MySQL Innodb data reads MySQL_IO_Innodb_data_reads Number of data reads Count
MySQL Innodb log write requests MySQL_IO_Innodb_log_write_requests Log write requests issued Count