GCP Load Balancing¶
Collect GCP Load Balancing metrics.
Configuration¶
Install Func¶
We recommend enabling TrueWatch Integration - Extensions - Managed Func. All prerequisites are installed automatically; continue with the script installation.
If you deploy Func yourself, see Self-deploying Func.
Install Script¶
- Log in to the Func console, click [Script Market], open the TrueWatch Script Market, and search for
integration_gcp_loadbalancing. - Click [Install], then enter the required parameters: account file name, Target Principal, and account name.
- Click [Deploy Startup Script]. The system automatically creates a
Startupscript set and configures the corresponding startup script. - After enabling it, find the automatic trigger configuration under "Management / Automatic Trigger Configuration". Click [Execute] to run it immediately, then review the task record and logs.
Verification¶
- Under "Management / Automatic Trigger Configuration", confirm that the task exists and check its task records and logs for errors.
- In TrueWatch, check "Infrastructure / Custom" for the corresponding asset information.
- In TrueWatch, check "Metrics" for the corresponding measurement and monitoring data.
Metrics¶
GCP Load Balancing metrics are stored in the gcp_loadbalancing measurement. The original metrics come from the Cloud Monitoring loadbalancing.googleapis.com/ namespace. The table below lists key metrics; see GCP Load Balancing metrics for the complete metric catalog.
| Metric | Original Metric | Description | Unit |
|---|---|---|---|
| application_lb_backend_latencies | application_lb/backend_latencies |
Application load balancer backend latencies | ms |
| application_lb_backend_request_bytes_count | application_lb/backend_request_bytes_count |
Application load balancer backend request bytes count | Bytes |
| application_lb_backend_request_count | application_lb/backend_request_count |
Application load balancer backend request count | Count |
| application_lb_backend_response_bytes_count | application_lb/backend_response_bytes_count |
Application load balancer backend response bytes count | Bytes |
| application_lb_request_bytes_count | application_lb/request_bytes_count |
Application load balancer request bytes count | Bytes |
| application_lb_request_count | application_lb/request_count |
Application load balancer request count | Count |
| application_lb_response_bytes_count | application_lb/response_bytes_count |
Application load balancer response bytes count | Bytes |
| application_lb_total_latencies | application_lb/total_latencies |
Application load balancer total latencies | ms |
| https_backend_latencies | https/backend_latencies |
Https backend latencies | ms |
| https_backend_request_count | https/backend_request_count |
Https backend request count | Count |
| https_request_count | https/request_count |
Https request count | Count |
| https_total_latencies | https/total_latencies |
Https total latencies | ms |