---
title: Google Cloud Functions monitoring integration
source: https://docs.newrelic.com/docs/infrastructure/google-cloud-platform-integrations/gcp-integrations-list/google-cloud-functions-monitoring-integration
---

[New Relic integrations](https://docs.newrelic.com/docs/infrastructure/introduction-infra-monitoring) with the [Google Cloud Platform (GCP)](https://cloud.google.com/) include one that reports [Google Cloud Functions](https://cloud.google.com/functions/) data to New Relic. This document explains how to activate the GCP Cloud Functions integration and describes the data it reports.

## Features

Cloud Functions is Google Cloud's serverless compute service for event-driven functions. New Relic Cloud Functions integration collects execution count, execution time, memory usage, and error rate metrics for each function.

## Activate integration [#activate]

To enable the integration, follow standard procedures to [connect your GCP service to New Relic](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure):

-   [Connect with Workload Identity Federation (recommended)](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)
-   [Connect with service account or user account](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)

## Polling frequency [#polling]

New Relic integrations query your GCP services according to a polling interval that varies by integration. The polling frequency for Google Cloud Functions is 5 minutes. The resolution is 1 data point every minute.

## Workload Identity Federation [#wif]

### Find and use data [#find-data-wif]

After you enable the integration, your Cloud Functions resources appear as entities in the New Relic entity explorer. To see dashboards and manage services, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP.

All Cloud Functions metrics available in GCP Cloud Monitoring are collected as dimensional metrics in the `Metric` event type. Additional metrics beyond this table are collected automatically. See [Google's Cloud Functions metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-cloudfunctions) for the complete list.

#### Entities

**Cloud Functions entities**

| Entity   | Entity type        | Resource type    |
| -------- | ------------------ | ---------------- |
| Function | `GCPCLOUDFUNCTION` | `cloud_function` |

### Metric data [#metrics-wif]

#### Key metrics — Function

| Metric name                                     | Unit        | Description                                         |
| ----------------------------------------------- | ----------- | --------------------------------------------------- |
| `gcp.cloudfunctions.function.execution_count`   | Count       | Number of function executions, faceted by `status`. |
| `gcp.cloudfunctions.function.execution_times`   | Nanoseconds | Function execution time distribution.               |
| `gcp.cloudfunctions.function.user_memory_bytes` | Bytes       | Memory used by function invocations.                |
| `gcp.cloudfunctions.function.active_instances`  | Count       | Number of function instances currently active.      |
| `gcp.cloudfunctions.function.network_egress`    | Bytes       | Outgoing network bytes from the function.           |

For the complete list of Cloud Functions metrics, see [Google's Cloud Functions metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-cloudfunctions).

## Service account or user account [#service-account]

### Find and use data [#find-data]

After activating the integration and then waiting a few minutes (based on the [polling frequency](#polling)), data will appear in the UI. To [view and use your data](https://docs.newrelic.com/docs/infrastructure/integrations/find-use-infrastructure-integration-data), including links to your dashboards and alert settings, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP, then select an integration.

## Metric data [#metrics]

[Metric data](https://docs.newrelic.com/docs/infrastructure/introduction-infra-monitoring#data-types) we receive from your GCP Cloud Functions integration includes:

| Attribute                     | Description                                        |
| ----------------------------- | -------------------------------------------------- |
| `function.Executions`         | Count of functions that executed, by status.       |
| `function.ExecutionTimeNanos` | Time for each function to execute, in nanoseconds. |
| `function.UserMemoryBytes`    | Memory used for each function, in bytes.           |
