Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

MySQL Database

Updated on 2023-08-21 GMT+08:00

This section describes the types, names, and meanings of MySQL database metrics collected by APM.

Table 1 MySQL database collection parameters

Parameter

Data Type

Application Type

Default

Supported Start Agent Version

Supported End Agent Version

Description

Collect Original SQL Statement or Not

radio

JAVA

false

2.0.0

-

Whether to collect and report original SQL statements

Table Name for Aggregation

array

JAVA

-

2.2.2

-

Table name specified for SQL statement aggregation. Tables starting with this name will be aggregated into the same table.

Table 2 MySQL database metrics

Category

Metric

Name

Description

Unit

Data Type

Default Aggregation Mode

Database connection (connection: APM counts SQL call statistics by database.)

db

Database

Database name

-

ENUM

LAST

createdCount

Created Connections

Number of connections created by the database

-

INT

SUM

currentCount

Current Connections

Current number of connections of the database

-

INT

SUM

destroyedCount

Destroyed Connections

Number of the database's connections that have been destroyed

-

INT

SUM

errorCount

Errors

Number of errors that the database encounters

-

INT

SUM

invokeCount

Calls

Number of times that the database is called

-

INT

SUM

maxTime

Max. RT

Maximum response time of the database

ms

INT

MAX

range1

0–10 ms

Number of requests with 0–10 ms response time

-

INT

SUM

range2

10–100 ms

Number of requests with 10–100 ms response time

-

INT

SUM

range3

100–200 ms

Number of requests with 100–200 ms response time

-

INT

SUM

range4

200–1000 ms

Number of requests with 200–1000 ms response time

-

INT

SUM

range5

1–10s

Number of requests with 1–10s response time

-

INT

SUM

range6

> 10s

Number of requests with response time longer than 10s

-

INT

SUM

readRowCount

Read Rows

Number of rows read from the database

-

INT

SUM

updatedRowCount

Updated Rows

Number of rows updated in the database

-

INT

SUM

totalTime

Total RT

Total response time of the database

ms

INT

SUM

slowestSql

Slowest SQL

Slowest SQL statement of the database in the collection period

-

STRING

LAST

Exception (exception: exception statistics about SQL calls)

causeType

Class

Exception class

-

ENUM

LAST

exceptionType

Exception Type

Exception type

-

ENUM

LAST

count

Count

Number of exceptions

-

INT

SUM

message

Message

Exception message

-

STRING

LAST

sql

Exception SQL

SQL statement that encounters an exception

-

STRING

LAST

stackTrace

Exception Stack

Exception stack information

-

CLOB

LAST

Version (version: MySQL package version)

version

Version

Driver package version

-

STRING

LAST

SQL monitoring (sql: APM counts call statistics by SQL.)

sql

SQL ID

Unique ID of the SQL statement, which is used for alarm configuration

-

ENUM

LAST

concurrentMax

Max. Concurrency

Maximum concurrency of the SQL statement

-

INT

MAX

errorCount

Errors

Number of errors that the SQL statement encounters

-

INT

SUM

errorTraceId

Error Trace ID

ID of the trace that encounters an error in a collection period

-

STRING

LAST

invokeCount

Calls

Number of times that the SQL statement is called

-

INT

SUM

lastError

Error Message

SQL error information

-

STRING

LAST

maxTime

Max. RT

Maximum response time of the SQL statement

ms

INT

MAX

readRowCount

Read Rows

Number of read rows of the SQL statement

-

INT

SUM

runningCount

Ongoing Executions

Number of SQL statements that are being executed at the time of collection

-

INT

SUM

slowTraceId

Slow Trace ID

ID of the slowest trace in a collection period

-

STRING

LAST

sqlString

SQL Statement

SQL statement

-

STRING

LAST

totalTime

Total RT

Total response time

ms

INT

SUM

updatedRowCount

Updated Rows

Number of updated rows of the SQL statement

-

INT

SUM

range1

0–10 ms

Number of requests with 0–10 ms response time

-

INT

SUM

range2

10–100 ms

Number of requests with 10–100 ms response time

-

INT

SUM

range3

100–200 ms

Number of requests with 100–200 ms response time

-

INT

SUM

range4

200–1000 ms

Number of requests with 200–1000 ms response time

-

INT

SUM

range5

1–10s

Number of requests with 1–10s response time

-

INT

SUM

range6

> 10s

Number of requests with response time longer than 10s

-

INT

SUM

lastTraceId

Latest Trace ID

ID of the latest trace in a collection period

-

STRING

LAST

Summary (total: summary about SQL statement call statistics)

invokeCount

Calls

Total number of calls

-

INT

SUM

errorCount

Errors

Total number of errors

-

INT

SUM

readRowCount

Read Rows

Total number of read rows

-

INT

SUM

totalTime

RT

Total response time

ms

INT

SUM

updatedRowCount

Updated Rows

Total number of updated rows

-

INT

SUM

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback