Skip to main content

MySQL

Overview

MySQL, the popular and open-source relational database management system, seamlessly integrates with Motadata AIOps to provide comprehensive monitoring capabilities. With this integration, organizations gain real-time visibility into the performance and health of their MySQL databases. Monitor critical database metrics such as query execution times, transaction rates, and database size to ensure efficient data processing and retrieval.

Supported Versions

Versions
1.4.1
1.5.0
1.6.0
1.7.x
8.0

Prerequisites for MySQL Integration with Motadata AIOps:

  • Ensure that the MySQL port (default: 3306) is open for the Motadata AIOps server.

  • Ensure you have the necessary credentials, including the username and password, for Motadata AIOps to connect to the MySQL database.

  • Ensure that JDBC is supported on the server where MySQL is configured.

  • For agentless monitoring, ensure that the user has the required access for remote access to the MySQL server. For agent-based monitoring, this is not required.

  • Ensure that the MySQL service is active and running on the server.

  • Ensure you have the name of the MySQL database that you want to monitor.

  • Confirm that the MySQL process and service are listed in the process and service monitor settings of Motadata AIOps. While these may be listed by default, verify that the names of the service and process match the specific MySQL version that you intend to monitor.

List of Supported KPIs

NameDescriptionType
mysql.query.cache.size.bytesThe size of the MySQL query cache in bytes.Count
mysql.query.cache.hitsThe number of hits in the MySQL query cache.Count
mysql.query.cache.insertsThe number of inserts in the MySQL query cache.Count
system.tagsThe tags associated with the MySQL system.String
mysql.installation.directoryThe installation directory of MySQL.String
mysql.data.directoryThe data directory of MySQL.String
started.timeThe uptime of the MySQL system.String
started.time.secThe uptime of the MySQL system in seconds.Count
mysql.versionThe version of MySQL.String
mysql.aborted.clientsThe number of aborted client connections in MySQL.Count
mysql.aborted.connectionsThe number of aborted connections in MySQL.Count
mysql.received.bytes.rateThe rate of received bytes in MySQL.Count
mysql.sent.bytes.rateThe rate of sent bytes in MySQL.Count
mysql.connectionsThe current number of connections in MySQL.Count
mysql.questionsThe number of queries executed in MySQL.Count
mysql.opened.connectionsThe total number of opened connections in MySQL.Count
mysql.delayed.errorsThe number of delayed errors in MySQL.Count
mysql.delayed.writesThe number of delayed writes in MySQL.Count
mysql.flushes.rateThe rate of flushes in MySQL.Count
mysql.key.used.blocksThe number of used blocks for keys in MySQL.Count
mysql.key.read.requests.rateThe rate of key read requests in MySQL.Count
mysql.key.writes.rateThe rate of key writes in MySQL.Count
mysql.key.write.requests.rateThe rate of key write requests in MySQL.Count
mysql.not.flushed.delayed.rowsThe number of delayed rows not yet flushed in MySQL.Count
mysql.deleted.rows.rateThe rate of deleted rows in MySQL.Count
mysql.inserted.rows.rateThe rate of inserted rows in MySQL.Count
mysql.next.row.reads.rateThe rate of next row reads in MySQL.Count
mysql.read.keys.rateThe rate of key reads in MySQL.Count
mysql.updated.rows.rateThe rate of updated rows in MySQL.Count
mysql.delayed.insert.threadsThe number of threads for delayed inserts in MySQL.Count
mysql.slow.launch.threadsThe number of threads with slow launches in MySQL.Count
mysql.cached.threadsThe number of cached threads in MySQL.Count
mysql.connected.threadsThe number of currently connected threads in MySQL.Count
mysql.created.threadsThe number of threads created in MySQL.Count
mysql.running.threadsThe number of currently running threads in MySQL.Count
mysql.thread.cache.size.bytesThe size of the thread cache in MySQL (in bytes).Count
mysql.open.tablesThe number of currently open tables in MySQL.Count
mysql.open.filesThe number of currently open files in MySQL.Count
mysql.open.streamsThe number of currently open streams in MySQL.Count
mysql.select.full.joins.rateThe rate of full joins in MySQL SELECT statements.Count
mysql.select.ranges.rateThe rate of range queries in MySQL SELECT statements.Count
mysql.select.range.checks.rateThe rate of range checks in MySQL SELECT statements.Count
mysql.select.scans.rateThe rate of table scans in MySQL SELECT statements.Count
mysql.slave.opened.temp.tablesThe number of temporary tables opened by MySQL replication slave.Count
mysql.slow.queriesThe number of slow queries detected in MySQL.Count
mysql.sort.merge.passes.rateThe rate of merge passes during sorting in MySQL.Count
mysql.sort.ranges.rateThe rate of range queries requiring sorting in MySQL.Count
mysql.table.lock.waitsThe number of table lock waits in MySQL.Count
mysql.table.immediate.locksThe number of immediate table locks in MySQL.Count
mysql.created.temp.disk.tables.rateThe rate at which temporary disk tables are created in MySQL.Count
mysql.created.temp.files.rateThe rate at which temporary files are created in MySQL.Count
mysql.created.temp.tables.rateThe rate at which temporary tables are created in MySQL.Count
mysql.query.cache.hit.ratio.percentThe percentage of query cache hits in MySQL.Count
mysql.key.buffer.size.bytesThe size of the key buffer in MySQL (in bytes).Count
mysql.key.hit.ratio.percentThe percentage of key cache hits in MySQL.Count
mysql.delete.multi.commands.rateThe rate of multi-delete commands in MySQL.Count
mysql.select.commands.rateThe rate of SELECT commands in MySQL.Count
mysql.delete.commands.rateThe rate of DELETE commands in MySQL.Count
mysql.insert.commands.rateThe rate of INSERT commands in MySQL.Count
mysql.key.reads.rateThe rate of key reads in MySQL.Count
mysql.update.commands.rateThe rate of UPDATE commands in MySQL.Count
mysql.process.userThe user associated with the MySQL process.String
mysql.process.stateThe state of the MySQL process.String
mysql.process.commandThe command executed by the MySQL process.String
mysql.process.dbThe number of databases associated with the MySQL process.Count
mysql.process.infoAdditional information about the MySQL process.Count
mysql.processThe count of MySQL processes.Count
mysql.process.hostThe host name of the machine where the MySQL process is running.String
mysql.process.time.msThe execution time of the MySQL process in milliseconds.Count
mysql.innodb.buffer.pool.sequential.reads.rateThe rate of sequential reads from the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.pages.dataThe number of data pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.dirty.pagesThe number of dirty pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.flush.pages.rateThe rate at which pages are flushed from the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.free.pagesThe number of free pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.misc.pagesThe number of miscellaneous pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.pagesThe total number of pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.random.ahead.readsThe number of random ahead reads from the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.read.requests.rateThe rate of read requests from the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.reads.rateThe rate of reads from the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.free.waitsThe number of waits for free pages in the InnoDB buffer pool.Count
mysql.innodb.buffer.pool.write.requests.rateThe rate of write requests to the InnoDB buffer pool.Count
mysql.innodb.data.fsyncs.rateThe rate of data file fsyncs performed by InnoDB.Count
mysql.innodb.data.pending.fsyncsThe number of pending data file fsyncs in InnoDB.Count
mysql.innodb.data.pending.readsThe number of pending data reads in InnoDB.Count
mysql.innodb.data.pending.writesThe number of pending data writes in InnoDB.Count
mysql.innodb.data.reads.rateThe rate of data reads from InnoDB.Count
mysql.innodb.data.writes.rateThe rate of data writes to InnoDB.Count
mysql.innodb.double.write.written.pages.rateThe rate of doublewrite buffer written pages.Count
mysql.innodb.double.write.writes.rateThe rate of writes to the doublewrite buffer.Count
mysql.innodb.log.waits.rateThe rate of waits for InnoDB log flushes.Count
mysql.innodb.log.write.requests.rateThe rate of log write requests in InnoDB.Count
mysql.innodb.log.writes.rateThe rate of log writes in InnoDB.Count
mysql.innodb.os.log.fsyncs.rateThe rate of operating system log file fsyncs in InnoDB.Count
mysql.innodb.os.log.pending.fsyncsThe number of pending operating system log file fsyncs in InnoDB.Count
mysql.innodb.os.log.pending.writesThe number of pending operating system log file writes in InnoDB.Count
mysql.innodb.os.log.written.rateThe rate at which the MySQL InnoDB engine writes to the operating system log.Count
mysql.innodb.page.size.bytesThe size of a page in the MySQL InnoDB storage engine.Count
mysql.innodb.created.pages.rateThe rate at which pages are created in the MySQL InnoDB storage engine.Count
mysql.innodb.read.pages.rateThe rate at which pages are read from the MySQL InnoDB storage engine.Count
mysql.innodb.written.pages.rateThe rate at which pages are written to the MySQL InnoDB storage engine.Count
mysql.innodb.row.lock.current.waitsThe number of current row lock waits in the MySQL InnoDB storage engine.Count
mysql.innodb.row.lock.time.msThe time spent waiting for row locks in the MySQL InnoDB storage engine.Count
mysql.innodb.average.row.lock.time.msThe average time spent waiting for row locks in the MySQL InnoDB storage engine.Count
mysql.innodb.row.lock.waitsThe number of row lock waits in the MySQL InnoDB storage engine.Count
mysql.innodb.deleted.rows.rateThe rate at which rows are deleted in the MySQL InnoDB storage engine.Count
mysql.innodb.inserted.rows.rateThe rate at which rows are inserted in the MySQL InnoDB storage engine.Count
mysql.innodb.read.rows.rateThe rate at which rows are read from the MySQL InnoDB storage engine.Count
mysql.innodb.update.rows.rateThe rate at which rows are updated in the MySQL InnoDB storage engine.Count
mysql.used.index.size.bytesThe size of the used index in bytes for the MySQL database.Count
mysql.index.read.rows.rateThe rate at which rows are read from the index in the MySQL database.String
mysql.index.fetches.rateThe rate at which index fetches occur in the MySQL database.String
mysql.index.table.nameThe name of the table associated with the index in the MySQL database.String
mysql.index.database.nameThe name of the database associated with the index in the MySQL database.String
mysql.index.nameThe name of the index in the MySQL database.String
mysql.unused.indexThe details of the unused index in the MySQL database.String
mysql.unused.index.table.nameThe name of the table associated with the unused index in the MySQL database.String
mysql.unused.index.database.nameThe name of the database associated with the unused index in the MySQL database.String
mysql.unused.index.size.bytesThe size of the unused index in bytes for the MySQL database.Count
mysql.missing.index.table.nameThe name of the table associated with the missing index in the MySQL database.String
mysql.missing.index.table.schema.nameThe schema name of the table associated with the missing index in the MySQL database.String
mssql.missing.index.column.nameThe name of the column associated with the missing index in the MSSQL database.String
mysql.missing.indexThe details of the missing index in the MySQL database.String
mysql.backup.table.commandsThe number of backup table commands in MySQL.Count
mysql.show.new.master.commandsThe number of show new master commands in MySQL.Count
mysql.load.master.table.commandsThe number of load master table commands in MySQL.Count
mysql.restore.table.commandsThe number of restore table commands in MySQL.Count
mysql.master.data.commandsThe number of master data commands in MySQL.Count
mysql.admin.commandsThe number of admin commands in MySQL.Count
mysql.analyze.commandsThe number of analyze commands in MySQL.Count
mysql.change.database.commandsThe number of change database commands in MySQL.Count
mysql.change.master.commandsThe number of change master commands in MySQL.Count
mysql.check.commandsThe number of check commands in MySQL.Count
mysql.create.database.commandsThe number of create database commands in MySQL.Count
mysql.drop.database.commandsThe number of drop database commands in MySQL.Count
mysql.flush.commands.rateThe rate at which flush commands occur in MySQL.Count
mysql.grant.commandsThe number of grant commands in MySQL.Count
mysql.kill.commandsThe number of kill commands in MySQL.Count
mysql.optimize.commandsThe number of optimize commands in MySQL.Count
mysql.repair.commandsThe number of repair commands in MySQL.Count
mysql.reset.commandsThe number of reset commands in MySQL.Count
mysql.revoke.commandsThe number of revoke commands in MySQL.Count
mysql.alter.table.commandsThe number of alter table commands in MySQL.Count
mysql.create.function.commandsThe number of create function commands in MySQL.Count
mysql.create.index.commandsThe number of create index commands in MySQL.Count
mysql.create.table.commandsThe number of create table commands in MySQL.Count
mysql.drop.function.commandsThe number of drop function commands in MySQL.Count
mysql.drop.index.commandsThe number of drop index commands in MySQL.Count
mysql.drop.table.commandsThe number of drop table commands in MySQL.Count
mysql.rename.table.commandsThe number of rename table commands in MySQL.Count
mysql.handler.close.commandsThe number of handler close commands in MySQL.Count
mysql.handler.open.commandsThe number of handler open commands in MySQL.Count
mysql.handler.read.commandsThe number of handler read commands in MySQL.Count
mysql.set.option.commandsThe number of set option commands in MySQL.Count
mysql.slave.start.commandsThe number of slave start commands in MySQL.Count
mysql.slave.stop.commandsThe number of slave stop commands in MySQL.Count
mysql.insert.select.commandsThe number of insert select commands in MySQL.Count
mysql.load.commandsThe number of load commands in MySQL.Count
mysql.purge.commandsThe number of purge commands in MySQL.Count
mysql.replace.commandsThe number of replace commands in MySQL.Count
mysql.replace.select.commandsThe number of replace select commands in MySQL.Count
mysql.truncate.commandsThe number of truncate commands in MySQL.Count
mysql.show.binary.log.commandsThe number of show binary log commands in MySQL.Count
mysql.show.binary.log.event.commandsThe number of show binary log event commands in MySQL.Count
mysql.show.database.commandsThe number of show database commands in MySQL.Count
mysql.show.field.commandsThe number of show field commands in MySQL.Count
mysql.show.grant.commandsThe number of show grant commands in MySQL.Count
mysql.show.key.commandsThe number of show key commands in MySQL.Count
mysql.show.master.status.commandsThe number of show master status commands in MySQL.Count
mysql.show.open.table.commandsThe number of show open table commands in MySQL.Count
mysql.show.processlist.commandsThe number of show processlist commands in MySQL.Count
mysql.show.slave.host.commandsThe number of show slave host commands in MySQL.Count
mysql.show.slave.status.commandsThe number of show slave status commands in MySQL.Count
mysql.show.table.commandsThe number of show table commands in MySQL.Count
mysql.show.variable.commandsThe number of show variable commands in MySQL.Count
mysql.show.status.commandsThe number of show status commands in MySQL.Count
mysql.begin.transaction.commands.rateThe rate of begin transaction commands in MySQL.Count
mysql.commit.transaction.commands.rateThe rate of commit transaction commands in MySQL.Count
mysql.lock.table.commandsThe number of lock table commands in MySQL.Count
mysql.rollback.transaction.commands.rateThe rate of rollback transaction commands in MySQL.Count
mysql.unlock.table.commandsThe number of unlock table commands in MySQL.Count
mysql.show.engine.log.commandsThe number of show engine log commands in MySQL. (Random Metric)Count