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 activate TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please continue with the script installation.
For self-deployed Func, refer to Self-deployed Func
Install Script¶
Note: Please prepare the Volcengine AK 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: "TrueWatch Integration (Volcengine-MySQL Collection)" (ID: integration_volcengine_mysql
)
After clicking 【Install】, 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 scripts.
After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute it once without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
To collect corresponding logs, you also need to enable the corresponding log collection script. To collect bills, you need to enable the cloud bill collection script.
We have collected some configurations by default, see the Metrics section for details.
Configure Custom Cloud Object Metrics
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and check the corresponding task records and logs for any exceptions
- In TrueWatch, check if there is asset information in 「Infrastructure / Custom」
- In TrueWatch, check if there is corresponding monitoring data in 「Metrics」
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 Name | MetricUnit | Dimension |
---|---|---|---|---|
ReplicationDelay |
deploy_monitor_new |
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 Currently Opened Tables | Count | ResourceID,Node |
InnodbDataRead |
engine_monitor_new |
Innodb Data Read | Bytes/Second(SI) | ResourceID,Node |
InnodbDataWritten |
engine_monitor_new |
Innodb Data Written | Bytes/Second(SI) | ResourceID,Node |
InnodbRowsDeleted |
engine_monitor_new |
Innodb Rows Deleted | Count/Second | ResourceID,Node |
InnodbRowsUpdated |
engine_monitor_new |
Innodb Rows Updated | Count/Second | ResourceID,Node |
InnodbRowsInserted |
engine_monitor_new |
Innodb Rows Inserted | Count/Second | ResourceID,Node |
InnodbDataReadBytes |
engine_monitor_new |
Innodb Rows Read | 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 |
Opened Files | Count | ResourceID,Node |
ConnUsage |
engine_monitor_new |
MySQL Connection Utilization | Percent | ResourceID,Node |
CpuUtil |
resource_monitor_new |
CPU Utilization | Percent | ResourceID,Node |
MemUtil |
resource_monitor_new |
Memory Utilization | 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 |
Objects¶
The collected Volcengine MySQL object data structure can be seen 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"
}
}