Tencent Cloud TDSQL_C_MySQL¶
Use the "Cloud Sync" series of script packages in the script market to sync cloud monitoring and cloud asset data to Guance
Configuration¶
Install Func¶
It is recommended to enable Guance Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.
If deploying Func manually, refer to Manual Func Deployment
Enable Script¶
Note: Please prepare a Tencent Cloud AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess)
Enable Script in Automata¶
- Log in to the Guance console
- Click the "Integration" menu, select "Cloud Account Management"
- Click "Add Cloud Account", select "Tencent Cloud", and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
- Click "Test", and if the test is successful, click "Save". If the test fails, please check if the relevant configuration information is correct and test again
- In the "Cloud Account Management" list, you can see the added cloud account. Click the corresponding cloud account to enter the details page
- Click the "Integration" button on the cloud account details page, find "Tencent Cloud TDSQL_C_MySQL" in the
Not Installedlist, and click the "Install" button to pop up the installation interface and install it.
Enable Script Manually¶
-
Log in to the Func console, click "Script Market", enter the Guance script market, and search for
integration_tencentcloud_tdsql_c_mysql -
After clicking "Install", enter the corresponding parameters: Tencent Cloud AK, SK, and account name
-
Click "Deploy Startup Script", the system will automatically create the
Startupscript set and automatically configure the corresponding startup scripts -
After enabling, you can see the corresponding automatic trigger configuration in "Management / Automatic Trigger Configuration". Click "Execute" to immediately execute it once without waiting for the scheduled time. After a while, you can view the execution task records and corresponding logs
Verification¶
- In "Management / Automatic Trigger Configuration", confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also view the corresponding task records and logs to check for any exceptions
- In Guance, check if there is asset information in "Infrastructure / Custom"
- In Guance, check if there is corresponding monitoring data in "Metrics"
Metrics¶
After configuring Tencent Cloud Cloud Monitoring, the default Measurement is as follows. More Metrics can be collected through configuration Tencent Cloud Cloud Monitoring Metrics Details
Monitoring Metrics¶
| Metric Name | Metric Chinese Name | Description | Unit | Dimensions |
|---|---|---|---|---|
BytesSent |
Client Traffic Sent Per Second | Client Traffic Sent Per Second | MB/s | InstanceId |
BytesReceived |
Client Traffic Received Per Second | Client Traffic Received Per Second | MB/s | InstanceId |
ComDelete |
Deletes | Deletes | times/sec | InstanceId |
ComInsert |
Inserts | Inserts | times/sec | InstanceId |
ComUpdate |
Updates | Updates | times/sec | InstanceId |
MemoryUse |
Memory Usage | Memory Usage | times/sec | InstanceId |
ComSelect |
Queries | Queries | times/sec | InstanceId |
MaxConnections |
Maximum Connections | Maximum Connections | times/sec | InstanceId |
SlowQueries |
Slow Queries | Slow Queries | times/sec | InstanceId |
ThreadsRunning |
Running Threads | Running Threads | times/sec | InstanceId |
Memoryuserate |
Memory Usage Rate | Memory Usage Rate | % | InstanceId |
Storageuserate |
Storage Usage Rate | Storage Usage Rate | % | InstanceId |
Storageuse |
Storage Usage | Storage Usage | GB | InstanceId |
Connectionuserate |
Connection Usage Rate | Connection Usage Rate | % | InstanceId |
Tps |
Transactions Per Second | Average number of successfully executed transactions per second (including rollbacks and commits) | times/sec | InstanceId |
Cpuuserate |
CPU Usage Rate | CPU Usage Rate | % | InstanceId |
Qps |
Operations Per Second | Operations Per Second | times/sec | InstanceId |
Queries |
Total Requests | Total requests within a statistical period | times/sec | InstanceId |
Object¶
The collected Tencent Cloud tdsql_c_mysql object data structure can be seen in "Infrastructure - Custom"
{
"measurement": "tencentcloud_tdsql_c_mysql",
"tags": {
"ClusterType" : "0",
"InstanceId" : "cmxxxx",
"InstanceName": "test_01",
"InstanceType": "1",
"MongoVersion": "MONxxxx",
"NetType" : "1",
"PayMode" : "0",
"ProjectId" : "0",
"RegionId" : "ap-nanjing",
"Status" : "2",
"VpcId" : "vpc-nf6xxxxx",
"Zone" : "ap-nanjing-1",
"name" : "cmxxxx"
},
"fields": {
"CloneInstances" : "[]",
"CreateTime" : "2022-08-24 13:54:00",
"DeadLine" : "2072-08-24 13:54:00",
"ReadonlyInstances": "[]",
"RelatedInstance" : "{Instance JSON Data}",
"ReplicaSets" : "{Instance JSON Data}",
"StandbyInstances" : "[]",
"message" : "{Instance JSON Data}",
}
}