Google Cloud Functions monitoring integration

New Relic Infrastructure's integrations with the Google Cloud Platform (GCP) include an integration to report Google Cloud Functions data to New Relic products. This document explains how to activate the GCP Cloud Functions integration and describes the data that can be reported.

Access to this feature will depend on your subscription level. Requires Infrastructure Pro.

Features

Google Cloud Functions service allows running code in a serverless way. Using a Google UI, developers can create short pieces of code that are intended to do a specific function. The function can then respond to cloud events without the need to manage an application server or runtime environment.

Activate integration

Anyone can view and explore the GCP data reporting to your New Relic Infrastructure account.

Only Owner, Admins, or Infrastructure add-on managers can manage the GCP integrations.

To enable the integration follow standard procedures to connect your GCP service to New Relic Infrastructure.

Polling frequency

New Relic Infrastructure integrations query your GCP services according to a polling interval, which varies depending on the integration.

  • Polling frequency for GCP Cloud Functions: five minutes
  • Resolution: one data point every minute

View and use data

After activating the integration and waiting a few minutes (based on the polling frequency), data will appear in the New Relic UI. To view and use your data, including links to your dashboards and alert settings, go to infrastructure.newrelic.com > GCP > (select an integration).

Metric data

Metric data that New Relic receives from your GCP Cloud Functions integration include:

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.

Inventory data

Inventory data that New Relic receives from your GCP Cloud Functions integration include the following inventory.

Inventory indicated with * are fetched only when the GCP project is linked to New Relic through a service account.

Inventory Description
description * User-provided description of a function.
entryPoint * The name of the function (as defined in source code) that will be executed.
eventTriggerFailurePolicy * For functions that can be triggered by events, the policy for failed executions.
eventTriggerResource * For functions that can be triggered by events, the resource(s) from which to observe events.
eventTriggerService * For functions that can be triggered by events, the hostname of the service that should be observed.
eventTriggerType * For functions that can be triggered by events, the type of event to observe.
httpsTriggerUr * For functions that can be triggered via HTTPS endpoint, the deployed URL for the function.
label * Labels for the function.
memory * The amount of memory in MB available for a function.
name The name of the function.
project The Google Cloud project that the function belongs to.
runtime * The runtime in which the function is going to run.
status * Status of the function deployment.
timeout * The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period.
versionId * The version identifier of the Cloud Function.
zone The zone where the function is running.

For more help

Recommendations for learning more: