---
title: Google Cloud Datastore
description: >-
  Cloud Datastore is a highly-scalable NoSQL database for your web and mobile
  applications.
breadcrumbs: Docs > Integrations > Google Cloud Datastore
---

# Google Cloud Datastore

## Overview{% #overview %}

Cloud Datastore is a highly-scalable NoSQL database for your web and mobile applications.

Get metrics from Google Datastore to:

- Visualize the performance of your Datastores.
- Correlate the performance of your Datastores with your applications.

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Google Cloud Platform integration first](https://docs.datadoghq.com/integrations/google-cloud-platform/). There are no other installation steps that need to be performed.

### Log collection{% #log-collection %}

Google Cloud Datastore 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](https://docs.datadoghq.com/integrations/google-cloud-platform/#log-collection).

Once this is done, export your Google Cloud Datastore logs from Google Cloud Logging to the Pub/Sub topic:

1. Go to the [Google Cloud Logging page](https://console.cloud.google.com/logs/viewer) and filter the Google Cloud Datastore logs.
1. Click **Create Export** and name the sink.
1. 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.
1. Click **Create** and wait for the confirmation message to show up.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **gcp.datastore.api.request\_count**(count)                                       | Datastore API calls.*Shown as request*                                                                                                      |
| **gcp.datastore.entity.read\_sizes.avg**(gauge)                                   | Average of sizes of read entities.*Shown as byte*                                                                                           |
| **gcp.datastore.entity.read\_sizes.samplecount**(count)                           | Sample Count for sizes of read entities.*Shown as byte*                                                                                     |
| **gcp.datastore.entity.read\_sizes.sumsqdev**(gauge)                              | Sum of Squared Deviation for sizes of read entities.*Shown as byte*                                                                         |
| **gcp.datastore.entity.ttl\_deletion\_count**(count)                              | Total count of entities deleted by TTL services.                                                                                            |
| **gcp.datastore.entity.ttl\_expiration\_to\_deletion\_delays.avg**(count)         | The average time elapsed between when an entity with a TTL expired, and when it was actually deleted.*Shown as second*                      |
| **gcp.datastore.entity.ttl\_expiration\_to\_deletion\_delays.samplecount**(count) | The sample count for time elapsed between when an entity with a TTL expired, and when it was actually deleted.*Shown as second*             |
| **gcp.datastore.entity.ttl\_expiration\_to\_deletion\_delays.sumsqdev**(count)    | The sum of squared deviation for time elapsed between when an entity with a TTL expired, and when it was actually deleted.*Shown as second* |
| **gcp.datastore.entity.write\_sizes.avg**(gauge)                                  | Average of sizes of written entities.*Shown as byte*                                                                                        |
| **gcp.datastore.entity.write\_sizes.samplecount**(gauge)                          | Sample Count for sizes of written entities.*Shown as byte*                                                                                  |
| **gcp.datastore.entity.write\_sizes.sumsqdev**(gauge)                             | Sum of Squared Deviation for sizes of written entities.*Shown as byte*                                                                      |
| **gcp.datastore.index.write\_count**(count)                                       | Datastore index writes.*Shown as write*                                                                                                     |

### Events{% #events %}

The Google Cloud Datastore integration does not include any events.

### Service Checks{% #service-checks %}

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

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
