The page has been translated by Gen AI.

ServiceWatch metric

MySQL sends metrics to ServiceWatch. The metrics provided by basic monitoring are data collected at 1‑minute intervals.

Reference
For how to view metrics in ServiceWatch, refer to the ServiceWatch guide.

Basic Metrics

The following are the basic metrics for the MySQL(DBaaS) namespace.

The indicators whose names are displayed in bold below are the key indicators selected from the basic metrics provided by MySQL(DBaaS). The key metrics are used to build service dashboards that are automatically created for each service in ServiceWatch.

Each metric provides guidance in the user guide on which statistical values are meaningful when querying that metric, and among the meaningful statistics, the values displayed in bold are the primary statistics. In the service dashboard, you can view key metrics through primary statistical values.

OS Basic Metrics

Classification
Performance itemsunitDetailed descriptionmeaningful statistics
CPUCPU UsagePercentCPU usage
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk UsagePercentDisk usage
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk Write BytesBytes/SecondWrite throughput on block device (bytes/second)
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk Read BytesBytes/SecondRead throughput from block device (bytes/second)
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk Write RequestsCount/SecondNumber of write requests on block device (requests per second)
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk Read RequestsCount/SecondNumber of read requests on block device (requests per second)
  • Total
  • Average
  • Maximum
  • Minimum
DiskAverage Disk I/O Queue SizeNoneAverage queue length of requests issued to the block device
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk I/O UtilizationPercentThe proportion of time the block device actually performed I/O operations
  • Total
  • Average
  • Maximum
  • Minimum
MemoryMemory UsagePercentMemory usage
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Out BytesBytes/SecondAmount exported from memory to swap area (bytes/second)
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Used BytesBytesSize of the currently used swap space
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Cached UsagePercentCached swap usage rate
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Total BytesBytesTotal swap space size configured on the system
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap In BytesBytes/SecondAmount read from swap area to memory (bytes per second)
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap UsagePercentCurrent usage ratio relative to total swap space
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Cached BytesBytesSize of pages that have been restored to memory but still have a copy in the swap area
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap Free BytesBytesSize of unused remaining swap space
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork In BytesBytes/SecondReceived capacity (bytes/second) on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork Out BytesBytes/SecondTransmitted capacity (bytes/second) on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkTCP ConnectionsCount/SecondTotal number of TCP connections currently properly established
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork In PacketsCountNumber of packets received on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork Out PacketsCountNumber of packets transmitted on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork In DroppedCountNumber of packet drops received on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork Out DroppedCountNumber of packet drops transmitted from the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork In ErrorsCountNumber of packet errors received on the network interface
  • Total
  • Average
  • Maximum
  • Minimum
NetworkNetwork Out ErrorsCountNumber of packet errors transmitted from the network interface
  • Total
  • Average
  • Maximum
  • Minimum
OSOS UptimeSecondsTime elapsed (seconds) since the system was last booted
  • Total
  • Average
  • Maximum
  • Minimum
Table. OS basic metrics

MySQL Basic Metrics

Classification
Performance itemsunit
Detailed description
meaningful statistics
ActivelockActive locksCountNumber of transactions in lock wait (Lock Wait) state for 1 minute (60 seconds) or longer in the InnoDB storage engine
  • Total
  • Average
  • Maximum
  • Minimum
ActivesessionActive sessionsCountNumber of active sessions
  • Total
  • Average
  • Maximum
  • Minimum
ActivesessionConnection usagePercentDB connection session usage rate
  • Total
  • Average
  • Maximum
  • Minimum
ActivesessionConnectionsCountDB connection session
  • Total
  • Average
  • Maximum
  • Minimum
DatafileBinary log usedBytesTotal size (Bytes) occupied by the Binary Log file
  • Total
  • Average
  • Maximum
  • Minimum
DatafileRelay log usedBytesTotal size (Bytes) occupied by the Relay Log file
  • Total
  • Average
  • Maximum
  • Minimum
DatafileCurrent open filesCountThe number of file descriptors opened by the DB
  • Total
  • Average
  • Maximum
  • Minimum
DatafileMax open filesCountMaximum number of file descriptors the DB can open
  • Total
  • Average
  • Maximum
  • Minimum
DatafileOpen files usagePercentMaximum utilization rate of DB files
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnoDB buffer pool hit ratioPercentThe ratio of data read directly from memory without accessing the disk
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnodb row lock wait transactionsCountCurrent number of InnoDB transactions waiting for a row lock
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnoDB row lock timeMillisecondsTotal time waited due to InnoDB row locks (in milliseconds)
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnoDB deadlocksCount/MinuteNumber of deadlock occurrences
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBTable lock waitsCount/MinuteNumber of times waiting occurred to acquire a table lock
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBTemp disk tablesCountNumber of Temp Tables created on disk
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnodb log waitsCountNumber of times waited to write the redo log to disk
  • Total
  • Average
  • Maximum
  • Minimum
StateInstance stateNoneMySQL DB Process status up/down check
  • 1 - Up
  • 0 - Down
  • Total
  • Average
  • Maximum
  • Minimum
StateSlave behind master seconds(8.0)
(Replica Only)
SecondsReplica latency (unit: seconds)
  • Total
  • Average
  • Maximum
  • Minimum
StateSlave io thread running(8.0)
(Replica Only)
NoneI/O Thread status
  • 1 - Running
  • 0 - Down
  • Total
  • Average
  • Maximum
  • Minimum
StateSlave SQL thread running(8.0)
(Replica Only)
NoneSQL Thread status
  • 1 - Running
  • 0 - Down
  • Total
  • Average
  • Maximum
  • Minimum
StateReplica behind master seconds(8.4+)
(Replica Only)
SecondsReplica latency (unit: seconds)
  • Total
  • Average
  • Maximum
  • Minimum
StateReplica io thread running(8.4+)
(Replica Only)
NoneI/O Thread status
  • 1 - Running
  • 0 - Down
  • Total
  • Average
  • Maximum
  • Minimum
StateReplica SQL thread running(8.4+)
(Replica Only)
NoneSQL Thread status
  • 1 - Running
  • 0 - Down
  • Total
  • Average
  • Maximum
  • Minimum
TablespaceTablespace usedMegabytesTablespace usage
  • Total
  • Average
  • Maximum
  • Minimum
TablespaceTablespace used(TOTAL)MegabytesTablespace usage (total)
  • Total
  • Average
  • Maximum
  • Minimum
TransactionsSlow queriesCountNumber of queries exceeding the long_query_time configured in the DB
  • Total
  • Average
  • Maximum
  • Minimum
TransactionsLong transaction timeSecondsLong Transaction time
  • Total
  • Average
  • Maximum
  • Minimum
TransactionsWait locksCountNumber of sessions waiting for lock
  • Total
  • Average
  • Maximum
  • Minimum
TransactionsSQL Queries/MinuteCount/MinuteQueries executed per minute
  • Total
  • Average
  • Maximum
  • Minimum
Table. MySQL basic metrics
Monitoring metrics
How-to guides