Volcengine MySQL¶
Volcengine MySQL Metrics Display, including CPU Usage, Memory Usage, IOPS, Network Bandwidth, InnoDB, TPS, QPS, etc.
Configuration¶
Install Func¶
It is recommended to enable Guance Integration - Extension - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with script installation.
If you deploy Func manually, refer to Manual Func Deployment
Install Script¶
Note: Please prepare the Volcengine AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess
)
To synchronize the monitoring data of MySQL cloud resources, we install the corresponding collection script: "Guance Integration (Volcengine-MySQL Collection)" (ID: integration_volcengine_mysql
)
Click 【Install】, then enter the corresponding parameters: Volcengine AK, Volcengine Account Name.
Click 【Deploy Startup Script】, the system will automatically create the Startup
script set and configure the corresponding startup script.
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. Wait a moment, you can view the execution task records and corresponding logs.
If you want to collect corresponding logs, you also need to enable the corresponding log collection script. If you want to collect bills, you need to enable the cloud bill collection script.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and you can also check the corresponding task records and logs to see if there are any abnormalities.
- In Guance, 「Infrastructure / Custom」, check if there is asset information.
- In Guance, 「Metrics」, check if there is corresponding monitoring data.
Metrics¶
After configuring Volcengine-MySQL, the default Measurement is as follows, you can collect more metrics through configuration Volcengine Cloud Monitoring Metrics Details
MetricName |
Subnamespace |
Metric Chinese Name | MetricUnit | Dimension |
---|---|---|---|---|
ReplicationDelay |
deploy_monitor_new |
Slave Replication Delay | Second | ResourceID,Node |
SlowQueries |
engine_monitor_new |
Slow Queries | Count/Second | ResourceID,Node |
ThreadsConnected |
engine_monitor_new |
Current Open Connections | Count | ResourceID,Node |
ThreadsCreated |
engine_monitor_new |
Created Threads | Count | ResourceID,Node |
ThreadsRunning |
engine_monitor_new |
Running Threads | Count | ResourceID,Node |
SelectScan |
engine_monitor_new |
Full Table Scans | Count/Second | ResourceID,Node |
OperationUpdate |
engine_monitor_new |
Updates | Count/Second | ResourceID,Node |
OperationDelete |
engine_monitor_new |
Deletes | Count/Second | ResourceID,Node |
OperationInsert |
engine_monitor_new |
Inserts | Count/Second | ResourceID,Node |
OperationReplace |
engine_monitor_new |
Replaces | Count/Second | ResourceID,Node |
OperationCommit |
engine_monitor_new |
Commits | Count/Second | ResourceID,Node |
OperationRollback |
engine_monitor_new |
Rollbacks | Count/Second | ResourceID,Node |
CreatedTmpTables |
engine_monitor_new |
Temporary Tables | Count/Second | ResourceID,Node |
TableLocksWaited |
engine_monitor_new |
Table Lock Waits | Count/Second | ResourceID,Node |
OpenedTables |
engine_monitor_new |
Opened Tables | Count | ResourceID,Node |
InnodbCacheHitRate |
engine_monitor_new |
Innodb Cache Hit Rate | Percent | ResourceID,Node |
InnodbCacheUtil |
engine_monitor_new |
Innodb Cache Utilization | Percent | ResourceID,Node |
InnodbNumOpenFiles |
engine_monitor_new |
Innodb Current Open Tables | Count | ResourceID,Node |
InnodbDataRead |
engine_monitor_new |
Innodb Read Volume | Bytes/Second(SI) | ResourceID,Node |
InnodbDataWritten |
engine_monitor_new |
Innodb Write Volume | Bytes/Second(SI) | ResourceID,Node |
InnodbRowsDeleted |
engine_monitor_new |
Innodb Row Deletes | Count/Second | ResourceID,Node |
InnodbRowsUpdated |
engine_monitor_new |
Innodb Row Updates | Count/Second | ResourceID,Node |
InnodbRowsInserted |
engine_monitor_new |
Innodb Row Inserts | Count/Second | ResourceID,Node |
InnodbDataReadBytes |
engine_monitor_new |
Innodb Row Read Volume | Count/Second | ResourceID,Node |
InnodbRowsLockTimeAvg |
engine_monitor_new |
Innodb Average Row Lock Wait Time | Millisecond | ResourceID,Node |
InnodbRowLockWaits |
engine_monitor_new |
Innodb Row Lock Waits | Count/Second | ResourceID,Node |
CreatedTmpFiles |
engine_monitor_new |
Temporary Files | Count/Second | ResourceID,Node |
HandlerReadRndNext |
engine_monitor_new |
Read Next Row Requests | Count/Second | ResourceID,Node |
HandlerRollback |
engine_monitor_new |
Internal Rollbacks | Count/Second | ResourceID,Node |
HandlerCommit |
engine_monitor_new |
Internal Commits | Count/Second | ResourceID,Node |
InnodbBufferPoolPagesFree |
engine_monitor_new |
Innodb Free Pages | Count | ResourceID,Node |
TotalInnodbBufferPoolPages |
engine_monitor_new |
Innodb Total Pages | Count | ResourceID,Node |
InnodbBufferPoolReadRequests |
engine_monitor_new |
Innodb Logical Reads | Count/Second | ResourceID,Node |
InnodbBufferPoolReads |
engine_monitor_new |
Innodb Physical Reads | Count/Second | ResourceID,Node |
InnodbDataReadCounts |
engine_monitor_new |
Innodb Read Counts | Count/Second | ResourceID,Node |
InnodbDataWriteCounts |
engine_monitor_new |
Innodb Write Counts | Count/Second | ResourceID,Node |
CreatedTmpDiskTables |
engine_monitor_new |
Disk Temporary Tables | Count/Second | ResourceID,Node |
InnodbBpDirtyPct |
engine_monitor_new |
InnoDB Buffer Pool Dirty Page Ratio | Percent | ResourceID,Node |
InnodbLogWrites |
engine_monitor_new |
Innodb Average Physical Writes to Redo Log File per Second | Count/Second | ResourceID,Node |
InnodbRowLockTimeMax |
engine_monitor_new |
InnoDB Table Maximum Row Lock Wait Time | Millisecond | ResourceID,Node |
InnodbOsLogFsyncs |
engine_monitor_new |
Average fsync Writes to Log File per Second | Count/Second | ResourceID,Node |
InnodbBufferPoolPagesFlushed |
engine_monitor_new |
InnoDB Buffer Pool Flush Page Requests | Count/Second | ResourceID,Node |
RedologSize |
engine_monitor_new |
Redolog Usage |
Bytes(IEC) | ResourceID,Node |
InnodbDataFsyncs |
engine_monitor_new |
InnoDB Average fsync Operations per Second | Count/Second | ResourceID,Node |
SlowLogSize |
engine_monitor_new |
Slow Log Usage | Bytes(IEC) | ResourceID,Node |
QPS |
engine_monitor_new |
MySQL Queries per Second | Count/Second | ResourceID,Node |
TPS |
engine_monitor_new |
Transactions per Second | Count/Second | ResourceID,Node |
InsertSelect |
engine_monitor_new |
Average Insert Select Executions per Second | Count/Second | ResourceID,Node |
OpenFiles |
engine_monitor_new |
Open Files | Count | ResourceID,Node |
ConnUsage |
engine_monitor_new |
MySQL Connection Utilization | Percent | ResourceID,Node |
CpuUtil |
resource_monitor_new |
CPU Usage | Percent | ResourceID,Node |
MemUtil |
resource_monitor_new |
Memory Usage | Percent | ResourceID,Node |
DiskUtil |
resource_monitor_new |
Disk Utilization | Percent | ResourceID,Node |
NetworkReceiveThroughput |
resource_monitor_new |
Network Input Throughput | Bytes/Second(SI) | ResourceID,Node |
NetworkTransmitThroughput |
resource_monitor_new |
Network Output Throughput | Bytes/Second(SI) | ResourceID,Node |
IOPS |
resource_monitor_new |
IOPS | Count/Second | ResourceID,Node |
DiskUsageBytes |
resource_monitor_new |
Disk Usage | Bytes(SI) | ResourceID,Node |
Object¶
The collected Volcengine MySQL object data structure, you can see the object data in 「Infrastructure-Custom」
{
"category": "custom_object",
"fields": {
"NodeSpec": "rds.mysql.d1.n.1c1g",
"TimeZone": "UTC +08:00",
...
},
"measurement": "volcengine_mysql",
"tags": {
"AllowListVersion": "initial",
"DBEngineVersion": "MySQL_5_7",
"InstanceId": "mysql-xxx",
"InstanceName": "mysql-xxx",
"InstanceStatus": "Running",
"InstanceType": "DoubleNode",
"LowerCaseTableNames": "1",
"NodeNumber": "2",
"ProjectName": "default",
"RegionId": "cn-beijing",
"StorageSpace": "20",
"StorageType": "LocalSSD",
"SubnetId": "subnet-xxx",
"VpcId": "vpc-xxx",
"ZoneId": "cn-beijing-a",
"name": "mysql-xxx"
}
}