Google Cloud Tasks

Overview

Google Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch, and delivery of a large number of distributed tasks.

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

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 Tasks 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 Tasks logs from Google Cloud Logging to the Pub/Sub topic:

  1. Go to the Google Cloud Logging page and filter the Google Cloud Tasks logs.
  2. Click Create Export and name the sink.
  3. 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.
  4. Click Create and wait for the confirmation message to show up.

Data Collected

Metrics

gcp.cloudtasks.api.request_count
(count)
Count of Cloud Tasks API calls.
Shown as request
gcp.cloudtasks.queue.task_attempt_count
(count)
Count of task attempts broken down by response code.
gcp.cloudtasks.queue.task_attempt_delays.avg
(gauge)
Delay between each scheduled attempt time and actual attempt time.
Shown as millisecond
gcp.cloudtasks.queue.task_attempt_delays.samplecount
(count)
Sample count for task attempt delays
Shown as millisecond
gcp.cloudtasks.queue.task_attempt_delays.sumsqdev
(gauge)
Sum of squared deviation for task attempt delays
Shown as second

Events

The Google Cloud Tasks integration does not include any events.

Service Checks

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

Troubleshooting

Need help? Contact Datadog support.