Tencent Cloud CLB Private¶
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 TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.
If you deploy Func yourself, refer to Self-deploy Func
Install Script¶
Note: Please prepare the Tencent Cloud AK with the required permissions in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess
).
To synchronize Tencent Cloud CLB monitoring data, we install the corresponding collection script: "TrueWatch Integration (Tencent Cloud-CLB Collection)" (ID: integration_tencentcloud_clb
).
Click 【Install】, then 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 configure the corresponding startup scripts.
Additionally, 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. Wait a moment, and you can view the execution task records and corresponding logs.
Verification¶
- In "Management / Automatic Trigger Configuration", confirm whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions.
- In TrueWatch, check whether the asset information exists in "Infrastructure / Custom".
- In TrueWatch, check whether the corresponding monitoring data exists in "Metrics".
Metrics¶
After configuring Tencent Cloud Cloud Monitoring, the default measurement sets are as follows. You can collect more metrics through configuration. Tencent Cloud Cloud Monitoring Metrics Details
Metric Name | Metric Chinese Name | Metric Description | Unit | Statistical Granularity |
---|---|---|---|---|
ClientConnum |
Active connections from client to LB | At a certain moment within the statistical granularity, the number of active connections from the client to the load balancer or listener. | Count | 10s、60s、300s |
ClientInactiveConn |
Inactive connections from client to LB | At a certain moment within the statistical granularity, the number of inactive connections from the client to the load balancer or listener. | Count | 10s、60s、300s |
ClientConcurConn |
Concurrent connections from client to LB | At a certain moment within the statistical granularity, the number of concurrent connections from the client to the load balancer or listener. | Count | 10s、60s、300s |
ClientNewConn |
New connections from client to LB | Within the statistical granularity, the number of new connections from the client to the load balancer or listener. | Count/s | 10s、60s、300s |
ClientInpkg |
Inbound packets from client to LB | Within the statistical granularity, the number of data packets sent by the client to the load balancer per second. | Packets/s | 10s、60s、300s |
ClientOutpkg |
Outbound packets from client to LB | Within the statistical granularity, the number of data packets sent by the load balancer to the client per second. | Packets/s | 10s、60s、300s |
ClientAccIntraffic |
Inbound traffic from client to LB | Within the statistical granularity, the traffic flowing from the client to the load balancer. | MB | 10s、60s、300s |
ClientAccOuttraffic |
Outbound traffic from client to LB | Within the statistical granularity, the traffic flowing from the load balancer to the client. | MB | 10s、60s、300s |
ClientOuttraffic |
Outbound bandwidth from client to LB | Within the statistical granularity, the bandwidth used by the load balancer to send data to the client. | Mbps | 10s、60s、300s |
ClientIntraffic |
Inbound bandwidth from client to LB | Within the statistical granularity, the bandwidth used by the client to send data to the load balancer. | Mbps | 10s、60s、300s |
OutTraffic |
Outbound bandwidth from LB to backend | Within the statistical granularity, the bandwidth used by the backend RS to send data to the load balancer. | Mbps | 60s、300s |
InTraffic |
Inbound bandwidth from LB to backend | Within the statistical granularity, the bandwidth used by the load balancer to send data to the backend RS. | Mbps | 60s、300s |
OutPkg |
Outbound packets from LB to backend | Within the statistical granularity, the number of data packets sent by the backend RS to the load balancer per second. | Packets/s | 60s、300s |
InPkg |
Inbound packets from LB to backend | Within the statistical granularity, the number of data packets sent by the load balancer to the backend RS per second. | Packets/s | 60s、300s |
ConNum |
Connections from LB to backend | Within the statistical granularity, the number of connections from the load balancer to the backend RS. | Count | 60s、300s |
NewConn |
New connections from LB to backend | Within the statistical granularity, the number of new connections from the load balancer to the backend RS. | Count/min | 60s、300s |
DropTotalConns |
Dropped connections | Within the statistical granularity, the number of connections dropped by the load balancer or listener. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Count | 10s、60s、300s |
InDropBits |
Dropped inbound bandwidth | Within the statistical granularity, the bandwidth dropped when the client accesses the load balancer through the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Bytes | 10s、60s、300s |
OutDropBits |
Dropped outbound bandwidth | Within the statistical granularity, the bandwidth dropped when the load balancer accesses the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Bytes | 10s、60s、300s |
InDropPkts |
Dropped inbound packets | Within the statistical granularity, the packets dropped when the client accesses the load balancer through the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Packets/s | 10s、60s、300s |
OutDropPkts |
Dropped outbound packets | Within the statistical granularity, the packets dropped when the load balancer accesses the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Packets/s | 10s、60s、300s |
DropQps |
Dropped QPS | Within the statistical granularity, the number of requests dropped by the load balancer or listener. This metric is unique to Layer 7 listeners. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. | Count | 60s、300s |
IntrafficVipRatio |
Inbound bandwidth utilization | Within the statistical granularity, the bandwidth utilization when the client accesses the load balancer through the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. This metric is in the beta stage. If you need to use it, please submit a Work Order Application. | % | 10s、60s、300s |
OuttrafficVipRatio |
Outbound bandwidth utilization | Within the statistical granularity, the bandwidth utilization when the load balancer accesses the internal network. This metric is only supported for standard account types, not for traditional account types. For account type judgment, please refer to Judge Account Type. This metric is in the beta stage. If you need to use it, please submit a Work Order Application. | % | 10s、60s、300s |
ReqAvg |
Average request time | Within the statistical granularity, the average request time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s、300s |
ReqMax |
Maximum request time | Within the statistical granularity, the maximum request time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s、300s |
RspAvg |
Average response time | Within the statistical granularity, the average response time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s、300s |
RspMax |
Maximum response time | Within the statistical granularity, the maximum response time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s、300s |
RspTimeout |
Response timeout count | Within the statistical granularity, the number of response timeouts of the load balancer. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
SuccReq |
Successful requests per minute | Within the statistical granularity, the number of successful requests per minute of the load balancer. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
TotalReq |
Requests per second | Within the statistical granularity, the number of requests per second of the load balancer. This metric is unique to Layer 7 listeners. | Count | 60s、300s |
ClbHttp3xx |
3xx status codes returned by CLB | Within the statistical granularity, the number of 3xx status codes returned by the load balancer (sum of status codes returned by the load balancer and backend server). This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
ClbHttp4xx |
4xx status codes returned by CLB | Within the statistical granularity, the number of 4xx status codes returned by the load balancer (sum of status codes returned by the load balancer and backend server). This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
ClbHttp5xx |
5xx status codes returned by CLB | Within the statistical granularity, the number of 5xx status codes returned by the load balancer (sum of status codes returned by the load balancer and backend server). This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
Http2xx |
2xx status codes | Within the statistical granularity, the number of 2xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
Http3xx |
3xx status codes | Within the statistical granularity, the number of 3xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
Http4xx |
4xx status codes | Within the statistical granularity, the number of 4xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
Http5xx |
5xx status codes | Within the statistical granularity, the number of 5xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | Count/min | 60s、300s |
UnhealthRsCount |
Health check exceptions | Within the statistical period, the number of health check exceptions of the load balancer. | Count | 60s、300s |
Object¶
The collected Tencent Cloud CLB Private object data structure can be viewed in "Infrastructure - Custom".
{
"measurement": "tencentcloud_clb",
"tags": {
"name" : "lb-xxxx",
"RegionId" : "ap-shanghai",
"LoadBalancerId" : "lb-xxxx",
"LoadBalancerName": "lb-xxxx",
"Address" : "81.xxxx",
"LoadBalancerType": "Private",
"Status" : "1",
"VpcId" : "vpc-xxxx",
"Zone" : "ap-shanghai-3",
"ChargeType" : "POSTPAID_BY_HOUR"
},
"fields": {
"CreateTime": "2022-04-27 15:19:49",
"listeners" : "{Listener JSON data}",
"message" : "{Instance JSON data}"
}
}