---
title: Google Cloud Datastore monitoring integration
source: https://docs.newrelic.com/docs/infrastructure/google-cloud-platform-integrations/gcp-integrations-list/google-datastore-monitoring-integration
---

[New Relic integrations](https://docs.newrelic.com/docs/infrastructure/introduction-infra-monitoring) with the [Google Cloud Platform (GCP)](https://cloud.google.com/) include one that reports [Google Cloud Datastore](https://cloud.google.com/datastore) data to New Relic. This document explains how to activate the GCP Datastore integration and describes the data it reports.

## Features

Cloud Datastore is Google Cloud's NoSQL document database for web and mobile applications. New Relic Datastore integration collects API request, entity read/write, and index-write metrics, with breakdowns by API method, response code, and entity type.

## Activate integration [#activate]

To enable the integration, follow standard procedures to [connect your GCP service to New Relic](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure):

-   [Connect with Workload Identity Federation (recommended)](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)
-   [Connect with service account or user account](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)

## Polling frequency [#polling]

New Relic integrations query your GCP services according to a polling interval that varies by integration. The polling frequency for Google Cloud Datastore is 5 minutes. The resolution is 1 data point every minute.

## Workload Identity Federation [#wif]

### Find and use data [#find-data-wif]

After you enable the integration, your Datastore resources appear as entities in the New Relic entity explorer. To see dashboards and manage services, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP.

All Datastore metrics available in GCP Cloud Monitoring are collected as dimensional metrics in the `Metric` event type. Additional metrics beyond this table are collected automatically. See [Google's Datastore metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-datastore) for the complete list.

#### Entities

**Datastore entities**

| Entity  | Entity type           | Resource type       |
| ------- | --------------------- | ------------------- |
| Request | `GCPDATASTOREREQUEST` | `datastore_request` |

### Metric data [#metrics-wif]

#### Key metrics — Request

| Metric name                                              | Unit    | Description                                                                    |
| -------------------------------------------------------- | ------- | ------------------------------------------------------------------------------ |
| `gcp.datastore.api.request_count`                        | Count   | Number of Datastore API requests, faceted by `api_method` and `response_code`. |
| `gcp.datastore.entity.read_sizes`                        | Bytes   | Distribution of read entity sizes, faceted by entity type.                     |
| `gcp.datastore.entity.write_sizes`                       | Bytes   | Distribution of written entity sizes, faceted by operation.                    |
| `gcp.datastore.entity.ttl_deletion_count`                | Count   | Number of entities deleted by TTL policies.                                    |
| `gcp.datastore.entity.ttl_expiration_to_deletion_delays` | Seconds | Delay between TTL expiration and the corresponding entity deletion.            |
| `gcp.datastore.index.write_count`                        | Count   | Number of Datastore index writes.                                              |

For the complete list of Datastore metrics, see [Google's Datastore metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-datastore).

## Service account or user account [#service-account]

### Find and use data [#find-data]

After activating the integration and waiting a few minutes (based on the [polling frequency](#polling)), data will appear in the New Relic UI. To [find and use your data](https://docs.newrelic.com/docs/infrastructure/integrations/find-use-infrastructure-integration-data), including links to your dashboards and alert settings, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP > (select an integration).

Data is attached to the following [event type](https://docs.newrelic.com/docs/data-apis/understand-data/new-relic-data-types/#event-data):

| Entity  | Event Type                  | Provider              |
| ------- | --------------------------- | --------------------- |
| Request | `GcpDatastoreRequestSample` | `GcpDatastoreRequest` |

For more on how to use your data, see [Understand and use integration data](https://docs.newrelic.com/docs/infrastructure/integrations/find-use-infrastructure-integration-data).

### Datastore Request data

| Metric              | Unit  | Description                                               |
| ------------------- | ----- | --------------------------------------------------------- |
| `api.Requests`      | Count | Count of Datastore API calls.                             |
| `entity.ReadSizes`  | Bytes | Distribution of sizes of read entities, grouped by type.  |
| `entity.WriteSizes` | Bytes | Distribution of sizes of written entities, grouped by op. |
| `index.Writes`      | Count | Count of Datastore index writes.                          |
