---
title: Google Cloud Loadbalancing
description: >-
  Distributes compute resources in single or multiple regions for high
  availability, scaling, and efficient autoscaling.
breadcrumbs: Docs > Integrations > Google Cloud Loadbalancing
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Google Cloud Loadbalancing

{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

Google Cloud Load Balancing gives you the ability to distribute load-balanced compute resources in single or multiple regions, to meet your high availability requirements, to put your resources behind a single anycast IP and to scale your resources up or down with intelligent Autoscaling.

Use the Datadog Google Cloud Platform integration to collect metrics from Google Cloud Load Balancing.

## Setup{% #setup %}

### Metric collection{% #metric-collection %}

#### Installation{% #installation %}

If you haven't already, set up the [Google Cloud Platform integration](https://docs.datadoghq.com/integrations/google-cloud-platform.md) first. There are no other installation steps.

### Log collection{% #log-collection %}

Google Cloud HTTP Loadbalancer logs are collected with Google Cloud Logging and sent to a Dataflow job through a Cloud Pub/Sub topic. If you haven't already, [set up logging with the Datadog Dataflow template](https://docs.datadoghq.com/integrations/google-cloud-platform.md#log-collection).

Once this is done, export your Google Cloud HTTP Loadbalancer logs from Google Cloud Logging to the Pub/Sub topic:

1. Go to the [Google Cloud Logging page](https://console.cloud.google.com/logs/viewer) and filter the Google Cloud HTTP Loadbalancer logs.
1. Click **Create Sink** and name the sink accordingly.
1. Choose "Cloud Pub/Sub" as the destination and select the Pub/Sub topic that was created for that purpose. **Note**: The Pub/Sub topic can be located in a different project.
1. Click **Create** and wait for the confirmation message to show up.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **gcp.loadbalancing.https.backend_latencies.avg**(gauge)                            | A distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.*Shown as millisecond*                                    |
| **gcp.loadbalancing.https.backend_latencies.p95**(gauge)                            | 95th percentile of latency of request sent by the proxy to backend until proxy receives last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                                           |
| **gcp.loadbalancing.https.backend_latencies.p99**(gauge)                            | 99th percentile of latency of request sent by the proxy to backend until proxy receives last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                                           |
| **gcp.loadbalancing.https.backend_latencies.samplecount**(count)                    | A distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.                                                          |
| **gcp.loadbalancing.https.backend_latencies.sumsqdev**(gauge)                       | Sum of squared deviation for latency of request sent by the proxy to backend until proxy receives last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                                 |
| **gcp.loadbalancing.https.backend_request_bytes_count**(count)                    | The number of bytes sent as requests from external HTTP(S) load balancer to backends. For Service Extensions, this value represents the total number of bytes sent from the load balancer to the extension backend.*Shown as byte*                                                                                                                                                                          |
| **gcp.loadbalancing.https.backend_request_count**(count)                           | The number of requests served by backends of external HTTP(S) load balancer. For Service Extensions, this value represents the total number of gRPC streams between the load balancer to the extension backend.                                                                                                                                                                                             |
| **gcp.loadbalancing.https.backend_response_bytes_count**(count)                   | The number of bytes sent as responses from backends (or cache) to external HTTP(S) load balancer. For Service Extensions, this value represents the total number of bytes received by the load balancer from the extension backend.*Shown as byte*                                                                                                                                                          |
| **gcp.loadbalancing.https.external.regional.backend_latencies.avg**(count)          | The average of a distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each `ProcessingRequest` and `ProcessingResponse` pair between the load balancer and the extension backend.*Shown as millisecond*             |
| **gcp.loadbalancing.https.external.regional.backend_latencies.samplecount**(count)  | A distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.                                                          |
| **gcp.loadbalancing.https.external.regional.backend_latencies.sumsqdev**(count)     | A distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.                                                          |
| **gcp.loadbalancing.https.external.regional.backend_request_bytes_count**(count)  | The number of bytes sent as requests from Regional External HTTP(S) load balancer to backends. For Service Extensions, this value represents the total number of bytes sent from the load balancer to the extension backend.*Shown as byte*                                                                                                                                                                 |
| **gcp.loadbalancing.https.external.regional.backend_request_count**(count)         | The number of requests served by backends of Regional External HTTP(S) load balancer. For Service Extensions, this value represents the total number of gRPC streams between the load balancer to the extension backend.                                                                                                                                                                                    |
| **gcp.loadbalancing.https.external.regional.backend_response_bytes_count**(count) | The number of bytes sent as response from backends to Regional External HTTP(S) load balancer. For Service Extensions, this value represents the total number of bytes received by the load balancer from the extension backend.*Shown as byte*                                                                                                                                                             |
| **gcp.loadbalancing.https.external.regional.request_bytes_count**(count)           | The number of bytes sent as requests from clients to HTTP/S load balancer.*Shown as byte*                                                                                                                                                                                                                                                                                                                   |
| **gcp.loadbalancing.https.external.regional.request_count**(count)                  | The number of requests served by HTTP/S load balancer.                                                                                                                                                                                                                                                                                                                                                      |
| **gcp.loadbalancing.https.external.regional.response_bytes_count**(count)          | The number of bytes sent as responses from HTTP/S load balancer to clients.*Shown as byte*                                                                                                                                                                                                                                                                                                                  |
| **gcp.loadbalancing.https.external.regional.total_latencies.avg**(count)            | The average of a distribution of the latency calculated from when the request was received by the proxy until the proxy got ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                    |
| **gcp.loadbalancing.https.external.regional.total_latencies.samplecount**(count)    | A distribution of the latency calculated from when the request was received by the proxy until the proxy got ACK from client on last response byte.                                                                                                                                                                                                                                                         |
| **gcp.loadbalancing.https.external.regional.total_latencies.sumsqdev**(count)       | A distribution of the latency calculated from when the request was received by the proxy until the proxy got ACK from client on last response byte.                                                                                                                                                                                                                                                         |
| **gcp.loadbalancing.https.frontend_tcp_rtt.avg**(gauge)                            | A distribution of the RTT measured for each connection between client and proxy.*Shown as millisecond*                                                                                                                                                                                                                                                                                                      |
| **gcp.loadbalancing.https.frontend_tcp_rtt.p95**(gauge)                            | 95th percentile of RTT for each connection between client and proxy.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                  |
| **gcp.loadbalancing.https.frontend_tcp_rtt.p99**(gauge)                            | 99th percentile RTT for each connection between client and proxy.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                     |
| **gcp.loadbalancing.https.frontend_tcp_rtt.samplecount**(count)                    | A distribution of the RTT measured for each connection between client and proxy.                                                                                                                                                                                                                                                                                                                            |
| **gcp.loadbalancing.https.frontend_tcp_rtt.sumsqdev**(gauge)                       | Sum of squared deviation of RTT for each connection between client and proxy.*Shown as millisecond*                                                                                                                                                                                                                                                                                                         |
| **gcp.loadbalancing.https.internal.backend_latencies.avg**(gauge)                   | A distribution of the latency calculated from when the request was sent by the internal Application Load Balancer proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.*Shown as millisecond* |
| **gcp.loadbalancing.https.internal.backend_latencies.p95**(gauge)                   | 95th percentile of latency calculated from request sent by proxy to the backend until proxy received last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                              |
| **gcp.loadbalancing.https.internal.backend_latencies.p99**(gauge)                   | 99th percentile of latency calculated from request sent by proxy to the backend until proxy received last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                              |
| **gcp.loadbalancing.https.internal.backend_latencies.samplecount**(count)           | A distribution of the latency calculated from when the request was sent by the internal Application Load Balancer proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.                       |
| **gcp.loadbalancing.https.internal.backend_latencies.sumsqdev**(gauge)              | Sum of squared deviation of latency calculated from request sent by proxy to the backend until proxy received last byte of response from backend.*Shown as millisecond*                                                                                                                                                                                                                                     |
| **gcp.loadbalancing.https.internal.backend_request_bytes_count**(count)           | The number of bytes sent as requests from Internal HTTP(S) load balancer to backends. For Service Extensions, this value represents the total number of bytes sent from the load balancer to the extension backend.*Shown as byte*                                                                                                                                                                          |
| **gcp.loadbalancing.https.internal.backend_request_count**(count)                  | The number of requests served by backends of Internal HTTP(S) load balancer. For Service Extensions, this value represents the number of gRPC streams between the load balancer and the extension backend.                                                                                                                                                                                                  |
| **gcp.loadbalancing.https.internal.backend_response_bytes_count**(count)          | The number of bytes sent as response from backends to Internal HTTP(S) load balancer. For Service Extensions, this value represents the total number of bytes received by the load balancer from the extension backend.*Shown as byte*                                                                                                                                                                      |
| **gcp.loadbalancing.https.internal.request_bytes_count**(count)                    | The number of bytes sent as requests from clients to internal Application Load Balancer.*Shown as byte*                                                                                                                                                                                                                                                                                                     |
| **gcp.loadbalancing.https.internal.request_count**(count)                           | The number of requests served by internal Application Load Balancer.                                                                                                                                                                                                                                                                                                                                        |
| **gcp.loadbalancing.https.internal.response_bytes_count**(count)                   | The number of bytes sent as responses from internal Application Load Balancer to clients.*Shown as byte*                                                                                                                                                                                                                                                                                                    |
| **gcp.loadbalancing.https.internal.total_latencies.avg**(gauge)                     | A distribution of the latency calculated from when the request was received by the internal Application Load Balancer proxy until the proxy got ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                |
| **gcp.loadbalancing.https.internal.total_latencies.p95**(gauge)                     | 95th percentile of the latency calculated from when request received by proxy until the proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                             |
| **gcp.loadbalancing.https.internal.total_latencies.p99**(gauge)                     | 99th percentile of the latency calculated from when request received by proxy until the proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                             |
| **gcp.loadbalancing.https.internal.total_latencies.samplecount**(count)             | A distribution of the latency calculated from when the request was received by the internal Application Load Balancer proxy until the proxy got ACK from client on last response byte.                                                                                                                                                                                                                      |
| **gcp.loadbalancing.https.internal.total_latencies.sumsqdev**(gauge)                | Sum of squared deviation of the latency calculated from when request received by proxy until the proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                    |
| **gcp.loadbalancing.https.request_bytes_count**(count)                             | The number of bytes sent as requests from clients to external HTTP(S) load balancer.*Shown as byte*                                                                                                                                                                                                                                                                                                         |
| **gcp.loadbalancing.https.request_count**(count)                                    | The number of requests served by external HTTP(S) load balancer.                                                                                                                                                                                                                                                                                                                                            |
| **gcp.loadbalancing.https.response_bytes_count**(count)                            | The number of bytes sent as responses from external HTTP(S) load balancer to clients.*Shown as byte*                                                                                                                                                                                                                                                                                                        |
| **gcp.loadbalancing.https.total_latencies.avg**(gauge)                              | A distribution of the latency calculated from when the request was received by the external HTTP(S) load balancer proxy until the proxy got ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                    |
| **gcp.loadbalancing.https.total_latencies.p95**(gauge)                              | 95th percentile of latency calculated from request received by proxy until proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.https.total_latencies.p99**(gauge)                              | 99th percentile of latency calculated from request received by proxy until proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.https.total_latencies.samplecount**(count)                      | A distribution of the latency calculated from when the request was received by the external HTTP(S) load balancer proxy until the proxy got ACK from client on last response byte.                                                                                                                                                                                                                          |
| **gcp.loadbalancing.https.total_latencies.sumsqdev**(gauge)                         | Sum of squared deviation of latency calculated from request received by proxy until proxy sees ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                                 |
| **gcp.loadbalancing.l3.external.egress_bytes_count**(count)                        | The number of bytes sent from the backend of the external network load balancer to the client. For TCP flows, this metric counts the bytes on the application stream only.*Shown as byte*                                                                                                                                                                                                                   |
| **gcp.loadbalancing.l3.external.egress_packets_count**(count)                      | The number of packets sent from the backend of the external network load balancer to the client.                                                                                                                                                                                                                                                                                                            |
| **gcp.loadbalancing.l3.external.ingress_bytes_count**(count)                       | The number of bytes sent from the client to the backend of the external network load balancer. For TCP flows, this metric counts the bytes on the application stream only.*Shown as byte*                                                                                                                                                                                                                   |
| **gcp.loadbalancing.l3.external.ingress_packets_count**(count)                     | The number of packets sent from the client to the backend of the external network load balancer.                                                                                                                                                                                                                                                                                                            |
| **gcp.loadbalancing.l3.external.rtt_latencies.avg**(gauge)                          | A distribution of the round trip time latency, measured over TCP connections for the external network load balancer.*Shown as millisecond*                                                                                                                                                                                                                                                                  |
| **gcp.loadbalancing.l3.external.rtt_latencies.p95**(gauge)                          | 95th percentile of RTT measured over TCP connections for NetLB flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                 |
| **gcp.loadbalancing.l3.external.rtt_latencies.p99**(gauge)                          | 99th percentile of RTT measured over TCP connections for NetLB flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                 |
| **gcp.loadbalancing.l3.external.rtt_latencies.samplecount**(count)                  | A distribution of the round trip time latency, measured over TCP connections for the external network load balancer.                                                                                                                                                                                                                                                                                        |
| **gcp.loadbalancing.l3.external.rtt_latencies.sumsqdev**(gauge)                     | Sum of squared deviation for RTT measured over TCP connections for NetLB flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                                       |
| **gcp.loadbalancing.l3.internal.egress_bytes_count**(count)                        | The number of bytes sent from the internal TCP/UDP load balancer backend to the client (for TCP flows it's counting bytes on application stream only).*Shown as byte*                                                                                                                                                                                                                                       |
| **gcp.loadbalancing.l3.internal.egress_packets_count**(count)                      | The number of packets sent from the internal TCP/UDP load balancer to the client.                                                                                                                                                                                                                                                                                                                           |
| **gcp.loadbalancing.l3.internal.ingress_bytes_count**(count)                       | The number of bytes sent from the client to the internal TCP/UDP load balancer backend (for TCP flows it's counting bytes on application stream only).*Shown as byte*                                                                                                                                                                                                                                       |
| **gcp.loadbalancing.l3.internal.ingress_packets_count**(count)                     | The number of packets sent from the client to the internal TCP/UDP load balancer backend.                                                                                                                                                                                                                                                                                                                   |
| **gcp.loadbalancing.l3.internal.rtt_latencies.avg**(gauge)                          | A distribution of RTT measured over TCP connections for internal TCP/UDP load balancer flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                         |
| **gcp.loadbalancing.l3.internal.rtt_latencies.p95**(gauge)                          | 95th percentile of RTT measured over TCP connections for ILB flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                   |
| **gcp.loadbalancing.l3.internal.rtt_latencies.p99**(gauge)                          | 99th percentile of RTT measured over TCP connections for ILB flows.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                   |
| **gcp.loadbalancing.l3.internal.rtt_latencies.samplecount**(count)                  | A distribution of RTT measured over TCP connections for internal TCP/UDP load balancer flows.                                                                                                                                                                                                                                                                                                               |
| **gcp.loadbalancing.l3.internal.rtt_latencies.sumsqdev**(gauge)                     | Sum of squared deviation for RTT latencies.*Shown as millisecond*                                                                                                                                                                                                                                                                                                                                           |
| **gcp.loadbalancing.l4_proxy.egress_bytes_count**(count)                          | Number of bytes sent from VM to client using proxy.*Shown as byte*                                                                                                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.l4_proxy.ingress_bytes_count**(count)                         | Number of bytes sent from client to VM using proxy.*Shown as byte*                                                                                                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.l4_proxy.tcp.closed_connections_count**(count)                | Number of connections that were terminated over TCP proxy or SSL proxy load balancer.                                                                                                                                                                                                                                                                                                                       |
| **gcp.loadbalancing.l4_proxy.tcp.new_connections_count**(count)                   | Number of connections that were opened over TCP proxy or SSL proxy load balancer.                                                                                                                                                                                                                                                                                                                           |
| **gcp.loadbalancing.subnet.proxy_only.addresses**(gauge)                            | The current number of proxy-only addresses by state.                                                                                                                                                                                                                                                                                                                                                        |
| **gcp.loadbalancing.tcp_ssl_proxy.closed_connections**(count)                     | Number of connections that were terminated over TCP proxy or SSL proxy load balancer.                                                                                                                                                                                                                                                                                                                       |
| **gcp.loadbalancing.tcp_ssl_proxy.egress_bytes_count**(count)                    | Number of bytes sent from VM to client using proxy.*Shown as byte*                                                                                                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt.avg**(gauge)                  | A distribution of the smoothed RTT (in ms) measured by the proxy's TCP stack, each minute application layer bytes pass from proxy to client.*Shown as millisecond*                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt.p95**(gauge)                  | 95th percentile of smoothed RTT measured by the proxy's TCP stack. Each minute application layer bytes pass from proxy to client.*Shown as millisecond*                                                                                                                                                                                                                                                     |
| **gcp.loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt.p99**(gauge)                  | 99th percentile of smoothed RTT measured by the proxy's TCP stack. Each minute application layer bytes pass from proxy to client.*Shown as millisecond*                                                                                                                                                                                                                                                     |
| **gcp.loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt.samplecount**(count)          | A distribution of the smoothed RTT (in ms) measured by the proxy's TCP stack, each minute application layer bytes pass from proxy to client.                                                                                                                                                                                                                                                                |
| **gcp.loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt.sumsqdev**(gauge)             | Sum of squared deviation of smoothed RTT measured by the proxy's TCP stack. Each minute application layer bytes pass from proxy to client.*Shown as millisecond*                                                                                                                                                                                                                                            |
| **gcp.loadbalancing.tcp_ssl_proxy.ingress_bytes_count**(count)                   | Number of bytes sent from client to VM using proxy.*Shown as byte*                                                                                                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.tcp_ssl_proxy.new_connections**(count)                        | Number of connections that were created over TCP proxy or SSL proxy load balancer.                                                                                                                                                                                                                                                                                                                          |
| **gcp.loadbalancing.tcp_ssl_proxy.open_connections**(count)                       | Current number of outstanding connections through the TCP/SSL proxy.*Shown as connection*                                                                                                                                                                                                                                                                                                                   |
| **gcp.loadbalancing.application_lb.backend_latencies.avg**(gauge)                  | A distribution of the latency calculated from when the request was sent by the Application Load Balancer proxy to the backend until the proxy received from the backend the last byte of response. For Service Extensions, this value represents the sum of latencies of each ProcessingRequest/ProcessingResponse pair between the load balancer and the extension backend.*Shown as millisecond*          |
| **gcp.loadbalancing.application_lb.total_latencies.avg**(gauge)                    | A distribution of the latency calculated from when the request was received by the proxy until the proxy got ACK from client on last response byte.*Shown as millisecond*                                                                                                                                                                                                                                   |

### Events{% #events %}

The Google Cloud Load Balancing integration does not include any events.

### Service Checks{% #service-checks %}

The Google Cloud Load Balancing integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
