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 shown in bold below are the key metrics selected from the default metrics provided by MySQL(DBaaS). Key metrics are used to configure service dashboards that are automatically built for each service in ServiceWatch.

Each metric provides guidance in the user guide on which statistical value is meaningful to view 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 (bytes/second) on block device
  • Total
  • Average
  • Maximum
  • Minimum
DiskDisk Read BytesBytes/SecondRead throughput (bytes/second) from block device
  • 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 UtilizationPercentProportion 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 of data transferred from memory to swap space (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/SecondData read from swap area into memory (bytes/second)
  • Total
  • Average
  • Maximum
  • Minimum
MemorySwap UsagePercentCurrent usage ratio of 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 swap space that remains unused
  • 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/SecondThe total number of TCP connections currently established correctly
  • 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 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
ActivesessionAborted ConnectionsCount/MinuteNumber of abnormal terminations
  • 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 filesCountNumber 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 usagePercentDB file maximum count usage rate
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBInnoDB buffer pool hit ratioPercentThe proportion 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/MinuteDeadlock occurrence count
  • Total
  • Average
  • Maximum
  • Minimum
InnoDBTable lock waitsCount/MinuteNumber of times a wait 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 stateNoneCheck MySQL DB process status up/down
  • 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 that exceed the long_query_time set 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