New announcements for Serverless, Network, RUM, and more from Dash! New announcements from Dash!

Google Cloud Functions

Crawler Crawler

Overview

Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions.

Get metrics from Google Functions to:

  • Visualize the performance of your Functions
  • Correlate the performance of your Functions with your applications

Setup

Metric collection

Installation

If you haven’t already, set up the Google Cloud Platform integration first. There are no other installation steps.

Log collection

Google Cloud Function logs are collected with Stackdriver and sent to a Cloud pub/sub with an HTTP push forwarder. If you haven’t already, set up a Cloud pub/sub with an HTTP push forwarder.

Once this is done, export your Google Cloud Function logs from Stackdriver to the pub/sub:

  1. Go to the Stackdriver page and filter the Google Cloud Function logs.
  2. Click Create Export and name the sink accordingly.
  3. Choose “Cloud Pub/Sub” as the destination and select the pub/sub that was created for that purpose. Note: The pub/sub can be located in a different project.

  4. Click Create and wait for the confirmation message to show up.

Data Collected

Metrics

gcp.cloudfunctions.function.execution_times.avg
(gauge)
Average of functions execution times.
Shown as nanosecond
gcp.cloudfunctions.function.execution_times.samplecount
(count)
Sample Count for functions execution times.
Shown as occurrence
gcp.cloudfunctions.function.execution_times.sumsqdev
(gauge)
Sum of Squared Deviation for functions execution times.
Shown as nanosecond
gcp.cloudfunctions.function.execution_count
(count)
Number of function executions.
Shown as occurrence
gcp.cloudfunctions.function.network_egress
(gauge)
Outgoing network traffic of function
Shown as byte
gcp.cloudfunctions.function.user_memory_bytes.avg
(gauge)
Average function memory usage during execution
Shown as byte
gcp.cloudfunctions.function.user_memory_bytes.samplecount
(count)
Sample Count for functions memory usages.
Shown as occurrence
gcp.cloudfunctions.function.user_memory_bytes.sumsqdev
(gauge)
Sum of Squared Deviation for functions memory usages.
Shown as byte

Events

The Google Cloud Functions integration does not include any events.

Service Checks

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

Troubleshooting

Need help? Contact Datadog support.