Tencent Cloud Memcached¶
Use the "Cloud Sync" series of script packages in the script market to synchronize cloud monitoring and cloud asset data to TrueWatch
Configuration¶
Install Func¶
It is recommended to activate the TrueWatch Integration - Extension - DataFlux Func (Automata): all preconditions are automatically installed, please proceed with the script installation.
If you want to deploy Func yourself, refer to Self-deploy Func
Install Script¶
Note: Please prepare the Tencent Cloud AK in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess
)
To synchronize the monitoring data of Memcached cloud resources, we install the corresponding collection script: "TrueWatch Integration (Tencent Cloud-Memcached Collection)" (ID: integration_tencentcloud_memcached
)
After clicking 【Install】, enter the corresponding parameters: Tencent Cloud AK, Tencent Cloud account name.
Click 【Deploy Startup Script】, the system will automatically create the Startup
script set and automatically configure the corresponding startup script.
After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to see if there are 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 Tencent Cloud Cloud Monitoring, the default measurement is as follows. More metrics can be collected through configuration. Tencent Cloud Cloud Monitoring Metrics Details
Metric Name | Meaning | Unit | Dimension |
---|---|---|---|
allocsize |
Allocated capacity space | MBytes | InstanceName(Instance Name) |
usedsize |
Used capacity space | MBytes | InstanceName(Instance Name) |
get |
GET commands executed per second | Count/s | InstanceName(Instance Name) |
set |
SET commands executed per second | Count/s | InstanceName(Instance Name) |
delete |
DELETE commands executed per second | Count/s | InstanceName(Instance Name) |
error |
Error commands | Count/s | InstanceName(Instance Name) |
latency |
Average access latency | ms | InstanceName(Instance Name) |
qps |
Total requests | Count/s | InstanceName(Instance Name) |
Object¶
The collected Tencent Cloud Memcached object data structure can be seen in 「Infrastructure - Custom」
{
"measurement": "tencentcloud_memcached",
"tags": {
"account_name": "Tencent",
"class": "tencentcloud_memcached",
"cloud_provider": "tencentcloud",
"InstanceId": "cmem-xxxxx",
"InstanceName": "0829-mh-xxxxx",
"name": "cmem-xxxxxxx",
"RegionId": "ap-shanghai"
}
}
Note: The fields in
tags
may change with subsequent updates ```