This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project,
feel free to reach out to us!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 Google Cloud Logging and sent to a Dataflow job through a Cloud Pub/Sub topic. If you haven’t already, set up logging with the Datadog Dataflow template.
Once this is done, export your Google Cloud Function logs from Google Cloud Logging to the Pub/Sub topic:
- Go to the Google Cloud Logging page and filter the Google Cloud Function logs.
- Click Create Sink and name the sink accordingly.
- Choose “Cloud Pub/Sub” as the destination and select the Pub/Sub topic that was created for that purpose. Note: The Pub/Sub topic can be located in a different project.
- Click Create and wait for the confirmation message to show up.
Data Collected
Metrics
gcp.cloudfunctions.function.active_instances (gauge) | The number of active function instances Shown as instance |
gcp.cloudfunctions.function.execution_count (count) | The number of function executions. Shown as occurrence |
gcp.cloudfunctions.function.execution_times.avg (gauge) | Average of functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.execution_times.p95 (gauge) | 95th percentile of functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.execution_times.p99 (gauge) | 99th percentile 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.instance_count (gauge) | The number of function instances broken down by state Shown as instance |
gcp.cloudfunctions.function.network_egress (gauge) | The outgoing network traffic of a function Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.avg (gauge) | The average function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.p95 (gauge) | The 95th percentile of function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.p99 (gauge) | The 99th percentile of function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.samplecount (count) | The sample count for a function's memory usage. Shown as occurrence |
gcp.cloudfunctions.function.user_memory_bytes.sumsqdev (gauge) | The sum of squared deviation for function's memory usage. 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.