New Relic integrations with the Google Cloud Platform (GCP) include one that reports Google Cloud 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
To enable the integration, follow standard procedures to connect your GCP service to New Relic:
Polling frequency
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
Find and use data
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 > 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 for the complete list.
Entities
Metric data
Key metrics — Function
Metric name | Unit | Description |
|---|---|---|
| Count | Number of function executions, faceted by |
| Nanoseconds | Function execution time distribution. |
| Bytes | Memory used by function invocations. |
| Count | Number of function instances currently active. |
| Bytes | Outgoing network bytes from the function. |
For the complete list of Cloud Functions metrics, see Google's Cloud Functions metrics documentation.
Service account or user account
Find and use data
After activating the integration and then waiting a few minutes (based on the polling frequency), data will appear in the UI. To view and use your data, including links to your and alert settings, go to one.newrelic.com > All capabilities > Infrastructure > GCP, then select an integration.
Metric data
Metric data we receive from your GCP Cloud Functions integration includes:
Attribute | Description |
|---|---|
| Count of functions that executed, by status. |
| Time for each function to execute, in nanoseconds. |
| Memory used for each function, in bytes. |