---
title: Google Cloud VPN
description: >-
  Google Cloud VPN securely connects your existing network to your Google Cloud
  Platform (GCP) network
breadcrumbs: Docs > Integrations > Google Cloud VPN
---

# Google Cloud VPN

## Overview{% #overview %}

Google Cloud VPN securely connects your existing network to your Google Cloud Platform network.

Get metrics from Google VPN to:

- Visualize the performance of your VPNs.
- Correlate the performance of your VPNs with your applications.

## Setup{% #setup %}

### Installation{% #installation %}

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

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

Google Cloud VPN 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 VPN 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 VPN logs.
1. Click **Create Export** and name the sink.
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.vpn.gateway.connections**(gauge)                       | Indicates the number of HA connections per VPN gateway.               |
| **gcp.vpn.network.dropped\_received\_packets\_count**(count) | Ingress packets dropped for tunnel.*Shown as packet*                  |
| **gcp.vpn.network.dropped\_sent\_packets\_count**(count)     | Egress packets dropped for tunnel.*Shown as packet*                   |
| **gcp.vpn.network.received\_bytes\_count**(count)            | Ingress bytes for tunnel.*Shown as byte*                              |
| **gcp.vpn.network.received\_packets\_count**(count)          | Ingress (received from peer VPN) packets for tunnel.*Shown as packet* |
| **gcp.vpn.network.sent\_bytes\_count**(count)                | Egress bytes for tunnel.*Shown as byte*                               |
| **gcp.vpn.network.sent\_packets\_count**(count)              | Egress (directed to peer VPN) packets for tunnel.*Shown as packet*    |
| **gcp.vpn.tunnel\_established**(gauge)                       | Indicates successful tunnel establishment if greater than 0.          |
| **gcp.vpn.vpn\_tunnel.gateway\_ip\_version**(gauge)          | The IP version of the HA VPN gateway.                                 |

### Events{% #events %}

The Google Cloud VPN integration does not include any events.

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

The Google Cloud VPN integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

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