Tencent Cloud CLB Public¶
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 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 sync monitoring data of CLB_Public cloud resources, we install the corresponding collection script: "Guance Integration (Tencent Cloud CLB Collection)" (ID: integration_tencentcloud_clb).
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 configure the corresponding startup script.
Additionally, in "Management / Auto-trigger Configuration", you can see the corresponding auto-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 / Auto-trigger Configuration", confirm whether the corresponding task has the auto-trigger configuration, and check the task records and logs for any exceptions.
- In Guance, check if asset information exists in "Infrastructure / Custom".
- In Guance, check if there is corresponding monitoring data in "Metrics".
Metrics¶
After configuring Tencent Cloud Cloud Monitor, the default measurement sets are as follows. You can collect more metrics by configuration Tencent Cloud Cloud Monitor Metrics Details
| Metric Name | Metric Chinese Name | Description | Unit | Statistics Granularity |
|---|---|---|---|---|
ClientConnum |
Active connections from client to LB | At a certain moment within the statistics 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 statistics 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 statistics 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 statistics granularity, the number of new connections from the client to the load balancer or listener. | count/sec | 10s, 60s, 300s |
ClientInpkg |
Inbound packets from client to LB | Within the statistics granularity, the number of data packets sent by the client to the load balancer per second. | count/sec | 10s, 60s, 300s |
ClientOutpkg |
Outbound packets from client to LB | Within the statistics granularity, the number of data packets sent by the load balancer to the client per second. | count/sec | 10s, 60s, 300s |
ClientAccIntraffic |
Inbound traffic from client to LB | Within the statistics granularity, the traffic flowing from the client to the load balancer. | MB | 10s, 60s, 300s |
ClientAccOuttraffic |
Outbound traffic from client to LB | Within the statistics granularity, the traffic flowing from the load balancer to the client. | MB | 10s, 60s, 300s |
ClientIntraffic |
Inbound bandwidth from client to LB | Within the statistics granularity, the bandwidth used by the client to flow to the load balancer. | Mbps | 10s, 60s, 300s |
ClientOuttraffic |
Outbound bandwidth from client to LB | Within the statistics granularity, the bandwidth used by the load balancer to flow to the client. | Mbps | 10s, 60s, 300s |
InTraffic |
Inbound bandwidth from LB to backend | Within the statistics granularity, the bandwidth used by the load balancer to flow to the backend RS. | Mbps | 10s, 60s, 300s, 3600 |
OutTraffic |
Outbound bandwidth from LB to backend | Within the statistics granularity, the bandwidth used by the backend RS to flow to the load balancer. | Mbps | 10s, 60s, 300s, 3600 |
InPkg |
Inbound packets from LB to backend | Within the statistics granularity, the number of data packets sent by the load balancer to the backend RS per second. | count/sec | 10s, 60s, 300s, 3600 |
OutPkg |
Outbound packets from LB to backend | Within the statistics granularity, the number of data packets sent by the backend RS to the load balancer per second. | count/sec | 10s, 60s, 300s, 3600 |
ConNum |
Connections from LB to backend | Within the statistics granularity, the number of connections from the load balancer to the backend RS. | count | 60s, 300s, 3600s |
NewConn |
New connections from LB to backend | Within the statistics granularity, the number of new connections from the load balancer to the backend RS. | count/minute | 60s, 300s, 3600s |
DropTotalConns |
Dropped connections | Within the statistics 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 | 60s, 300s, 3600s |
IntrafficVipRatio |
Inbound bandwidth utilization | Within the statistics granularity, the bandwidth utilization used by the client to access the load balancer through the external 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. | % | 60s, 300s, 3600s |
OuttrafficVipRatio |
Outbound bandwidth utilization | Within the statistics granularity, the bandwidth utilization used by the load balancer to access the external 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. | % | 60s, 300s, 3600s |
ReqAvg |
Average request time | Within the statistics granularity, the average request time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s, 300s, 3600s |
ReqMax |
Maximum request time | Within the statistics granularity, the maximum request time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s, 300s, 3600s |
RspAvg |
Average response time | Within the statistics granularity, the average response time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s, 300s, 3600s |
RspMax |
Maximum response time | Within the statistics granularity, the maximum response time of the load balancer. This metric is unique to Layer 7 listeners. | ms | 60s, 300s, 3600s |
RspTimeout |
Response timeout count | Within the statistics granularity, the number of response timeouts of the load balancer. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
SuccReq |
Successful requests per minute | Within the statistics granularity, the number of successful requests per minute of the load balancer. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
TotalReq |
Requests per second | Within the statistics granularity, the number of requests per second of the load balancer. This metric is unique to Layer 7 listeners. | count | 60s, 300s, 3600s |
ClbHttp3xx |
3xx status codes returned by CLB | Within the statistics granularity, the number of 3xx status codes returned by the load balancer (sum of load balancer and backend server return codes). This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
ClbHttp4xx |
4xx status codes returned by CLB | Within the statistics granularity, the number of 4xx status codes returned by the load balancer (sum of load balancer and backend server return codes). This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
ClbHttp5xx |
5xx status codes returned by CLB | Within the statistics granularity, the number of 5xx status codes returned by the load balancer (sum of load balancer and backend server return codes). This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
Http2xx |
2xx status codes | Within the statistics granularity, the number of 2xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
Http3xx |
3xx status codes | Within the statistics granularity, the number of 3xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
Http4xx |
4xx status codes | Within the statistics granularity, the number of 4xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
Http5xx |
5xx status codes | Within the statistics granularity, the number of 5xx status codes returned by the backend server. This metric is unique to Layer 7 listeners. | count/minute | 60s, 300s, 3600s |
UnhealthRsCount |
Health check exceptions | Within the statistics cycle, the number of health check exceptions of the load balancer. | count | 60s, 300s |
InDropBits |
Dropped inbound bandwidth | Within the statistics 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. | bytes | 60s, 300s, 3600s |
OutDropBits |
Dropped outbound bandwidth | Within the statistics 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. | bytes | 60s, 300s, 3600s |
InDropPkts |
Dropped inbound packets | Within the statistics 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/sec | 60s, 300s, 3600s |
OutDropPkts |
Dropped outbound packets | Within the statistics 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/sec | 60s, 300s, 3600s |
DropQps |
Dropped QPS | Within the statistics 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 |
Object¶
The data structure of the collected Tencent Cloud CLB Public object 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": "Public",
"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}"
}
}