Google Cloud APIs

Overview

Google Cloud APIs allow you to access Google Cloud Platform products from your code.

Use the Datadog Google Cloud Platform integration to collect metrics from Google Cloud APIs.

Setup

Installation

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

Log collection

Google Cloud API logs are collected with Google Cloud Logging 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 API logs from Google Cloud Logging to the pub/sub:

  1. Go to the Google Cloud Logging page and filter the Google Cloud API logs.
  2. Click Create Export and name the sink.
  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.serviceruntime.api.request_count
(count)
The count of completed requests.
Shown as request
gcp.serviceruntime.api.request_latencies.avg
(gauge)
Distribution of latencies in seconds for non-streaming requests.
Shown as second
gcp.serviceruntime.api.request_latencies.samplecount
(count)
Sample count for API request latencies
Shown as second
gcp.serviceruntime.api.request_latencies.sumsqdev
(gauge)
Sum of squared deviation for API request latencies
Shown as second
gcp.serviceruntime.api.request_latencies_backend.avg
(gauge)
Distribution of backend latencies in seconds for non-streaming requests.
Shown as second
gcp.serviceruntime.api.request_latencies_backend.samplecount
(count)
Sample count for API backend request latencies
Shown as second
gcp.serviceruntime.api.request_latencies_backend.sumsqdev
(gauge)
Sum of squared deviation for API backend request latencies
Shown as second
gcp.serviceruntime.api.request_latencies_overhead.avg
(gauge)
Distribution of request latencies in seconds for non-streaming requests excluding the backend.
Shown as second
gcp.serviceruntime.api.request_latencies_overhead.samplecount
(count)
Sample count for API overhead request latencies
Shown as second
gcp.serviceruntime.api.request_latencies_overhead.sumsqdev
(gauge)
Sum of squared deviation for API overhead request latencies
Shown as second
gcp.serviceruntime.api.request_sizes.avg
(gauge)
Distribution of request sizes in bytes recorded at request completion.
Shown as byte
gcp.serviceruntime.api.request_sizes.samplecount
(count)
Sample count for API request sizes
Shown as byte
gcp.serviceruntime.api.request_sizes.sumsqdev
(gauge)
Sum of squared deviation for API request sizes
Shown as byte
gcp.serviceruntime.api.response_sizes.avg
(gauge)
Distribution of response sizes in bytes recorded at request completion.
Shown as byte
gcp.serviceruntime.api.response_sizes.samplecount
(count)
Sample count for response sizes
Shown as byte
gcp.serviceruntime.api.response_sizes.sumsqdev
(gauge)
Sum of squared deviation for response sizes
Shown as byte
gcp.serviceruntime.quota.allocation.usage
(gauge)
The total consumed allocation quota.
gcp.serviceruntime.quota.exceeded
(gauge)
The error happened when the quota limit was exceeded.
gcp.serviceruntime.quota.limit
(gauge)
The limit for the quota.
gcp.serviceruntime.quota.rate.net_usage
(count)
The total consumed rate quota.

Events

The Google Cloud APIs integration does not include any events.

Service Checks

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

Troubleshooting

Need help? Contact Datadog support.