Docs » Integrations Guide » Integrations Reference » Google Cloud Functions

../../_images/integration_googlecloudfunctions.png Google Cloud Functions 🔗


To monitor Google Cloud Functions, integrate SignalFx with Google Cloud Platform.

Wrappers 🔗

You can monitor the health and performance of Google Cloud Functions through metrics on total invocations, errors, durations, and more. In addition, you can send custom application or business metrics from within Google Cloud Functions.

  • You can use a language-specific wrapper to monitor your functions. Using a wrapper lets you see invocations, errors, and durations for your functions in real time, and also provides insight into whether a given function is being impacted by cold starts.
  • The wrapper is also a way for you to send in custom application or business metrics from within a function, analogous to what you can do with client libraries for code running in non-Function environments. See installing wrappers for more information.


Built-in dashboards 🔗

  • Cloud Functions Overview: Overview of project-level metrics for Google Cloud Functions.


  • Cloud Function: Metrics for a single cloud function.



To access this integration, connect to Google Cloud Platform.

Prerequisites 🔗


Installing wrappers 🔗

Differences between the SignalFx Wrapper and Google Cloud Monitoring 🔗

Step 1: Review and select a deployment method 🔗

You can use both the SignalFx Wrapper and Google Cloud Monitoring methods to monitor functions at the same time, or you can choose to only use one method.

Before you select a method, consider the following statements:

  • Each method sends different metrics and uses different properties to uniquely identify a cloud function.
  • Google Cloud Monitoring data is reported with a delay. The time varies according to the monitored resource and other factors. The SignalFx Wrapper sends data immediately when it becomes available.
  • Google Cloud Monitoring data is sent automatically for all Google Cloud Functions, whereas the SignalFx Wrapper needs to be added to each function.
  • The SignalFx Wrapper is the only method that can send custom applications or business metrics from within Google Cloud Functions.
Step 2: Review set up documentation 🔗

Option 1: Use the SignalFx Wrapper

You can include the SignalFx Wrapper in your Google Cloud Functions to provide real-time monitoring, as well as the ability to send custom metrics from your applications to SignalFx.

To view the three installation methods for each Google Cloud Functions wrapper, review the following README files:

Option 2: Use Google Cloud Monitoring

By default, SignalFx imports all Google Cloud Monitoring metrics that are available in your account. To retrieve metrics for a subset of available services or regions, you need to modify the connection on the Integrations page.

For more information, see connect to Google Cloud Platform.


Interpreting Built-in dashboards 🔗

Cloud Function

  • Executions / min: Count of function executions per minute.


  • Executions / min Trend: Trend of function executions per minute.


  • Average Execution Time (ms): Average execution time for a function.


  • Average Execution Time (ms) Trend: Average execution time trend for a function.


Cloud Functions Overview

  • Executions / min: List of executions per minute for all functions.


  • Executions / min by Status: List of function executions per minute grouped by status.


  • Average Execution Time (ms): List of average execution times for all functions.


  • Execution Time (ms): Trend of average execution times for all functions.



The SignalFx Google Cloud Functions wrapper sends the following metrics to SignalFx:

Metric Name Type Description
function.invocations Counter Count of invocations
function.cold_starts Counter Count of cold starts
function.errors Counter Count of errors from underlying handler
function.duration Gauge Milliseconds in execution time of underlying handler

For more information about the metrics emitted by Google Cloud Functions, see Metrics list.