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

Google Cloud Run

Crawler Crawler

Overview

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests.

Enable this integration to see all of your Cloud Run metrics, traces, and logs in Datadog.

Setup

Metric Collection

Installation

If you use the fully managed version of Cloud Run, just set up the Google Cloud Platform integration.

If you set up Cloud Run on GKE, deploy the Datadog Agent on your clusters with the Kubernetes DaemonSet setup after having enabled the Google Cloud Platform integration.

Note: When deploying the Datadog Agent DaemonSet, make sure hostNetwork: true is set within the pod specifications.

Log collection

Google Cloud Run also exposes audit logs. Google Cloud Run logs are collected with Stackdriver and sent to a Cloud Pub/Sub with a HTTP Push forwarder. If you haven’t already, set up the Cloud Pub/sub with a HTTP push forwarder.

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

  1. Go to the Stackdriver page and filter Google Cloud Run 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.
  1. Click Create and wait for the confirmation message to show up.

Data Collected

Metrics

gcp.run.request_count
(gauge)
The number of service requests.
Shown as request
gcp.run.request_latencies.avg
(gauge)
Average distribution of service request times in milliseconds.
Shown as millisecond
gcp.run.request_latencies.samplecount
(count)
Sample count of the distribution of service request times in milliseconds.
Shown as millisecond
gcp.run.request_latencies.sumsqdev
(gauge)
Sum of squared deviation of the distribution of service request times in milliseconds.
Shown as millisecond
gcp.run.container.memory.allocation_time
(gauge)
The total memory allocation of running container instances in Gigabytes-seconds. Measure usage only when the container image is actively processing requests.
gcp.run.container.cpu.allocation_time
(gauge)
The CPU allocated of the revision in seconds.
Shown as second

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.

Further Reading

Additional helpful documentation, links, and articles: