---
title: Google Gemini Enterprise monitoring integration
source: https://docs.newrelic.com/docs/infrastructure/google-cloud-platform-integrations/gcp-integrations-list/google-gemini-enterprise-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 [Gemini Enterprise](https://cloud.google.com/gemini-enterprise) data to New Relic. This document explains how to activate the GCP Gemini Enterprise integration and describes the data it reports.

## Features

Gemini Enterprise is Google Cloud's platform for building and running enterprise search and AI agent applications, built on Discovery Engine. New Relic's Gemini Enterprise integration collects request, latency, and session metrics for apps (engines), agents, the tools those agents invoke, and data connectors, along with resource counts and quota consumption per location and per user.

## Activate integration [#activate]

> #### ⚠️ IMPORTANT
>
> This integration is available only when you connect your GCP project with **Workload Identity Federation**. It isn't available for service account or user account connections.

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) with **Workload Identity Federation**.

## Polling frequency [#polling]

New Relic integrations query your GCP services according to a polling interval that varies by integration. The polling frequency for Gemini Enterprise 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 Gemini Enterprise 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.

New Relic collects Gemini Enterprise metrics available in GCP Cloud Monitoring as dimensional metrics in the `Metric` event type, for example:

```sql
FROM Metric SELECT count(*) WHERE metricName LIKE 'gcp.discoveryengine.%' FACET metricName
```

#### Entities

**Gemini Enterprise entities**

The integration reports the following entities.

| Entity                | Entity type                                    | Resource type                                        |
| --------------------- | ---------------------------------------------- | ---------------------------------------------------- |
| Engine                | `GCPGEMINIENTERPRISEENGINE`                    | `discoveryengine.googleapis.com/Engine`              |
| Agent                 | `GCPGEMINIENTERPRISEENGINEAGENT`               | `discoveryengine.googleapis.com/Agent`               |
| Agent tool invocation | `GCPGEMINIENTERPRISEENGINEAGENTTOOLINVOCATION` | `discoveryengine.googleapis.com/AgentToolInvocation` |
| Data connector        | `GCPGEMINIENTERPRISEENGINEDATACONNECTOR`       | `discoveryengine.googleapis.com/DataConnector`       |
| Location              | `GCPDISCOVERYENGINELOCATION`                   | `discoveryengine.googleapis.com/Location`            |
| Localized quota       | `GCPGEMINIENTERPRISELOCALIZEDQUOTA`            | `discoveryengine.googleapis.com/LocalizedUser`       |

### Metric data [#metrics-wif]

#### Engine metrics

The integration reports the following metrics for each Gemini Enterprise engine.

| Metric name                                               | Unit         | Description                                                                                                                                                                                                                                                                                                                                                   |
| --------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `gcp.discoveryengine.engine.request_count`                | Count        | Total number of requests received by a Gemini Enterprise app (engine). The metric breaks requests down by public API method, canonical gRPC response code, response code class, query type, and model. It spans all traffic an engine receives, including non-agent paths (search, answer, and assist).                                                       |
| `gcp.discoveryengine.engine.request_total_latency`        | Milliseconds | Distribution of end-to-end request latency for a Gemini Enterprise app (engine), measured at the assistant server request boundary. The metric breaks latency down by public API method, canonical gRPC response code, response code class, query type, and model.                                                                                            |
| `gcp.discoveryengine.engine.time_to_first_answer_latency` | Milliseconds | Distribution of latency from request receipt to the first streamed non-thought answer token, for a Gemini Enterprise app (engine). Google Cloud emits this metric only for requests that produce at least one answer token. The metric breaks latency down by public API method, canonical gRPC response code, response code class, query type, and model.    |
| `gcp.discoveryengine.engine.time_to_first_token_latency`  | Milliseconds | Distribution of latency from request receipt to the first streamed token (thought or answer), for a Gemini Enterprise app (engine). Google Cloud emits this metric only for requests that produce at least one streamed token. The metric breaks latency down by public API method, canonical gRPC response code, response code class, query type, and model. |

#### Agent metrics

The integration reports the following metrics for each Gemini Enterprise agent.

| Metric name                                         | Unit         | Description                                                                                  |
| --------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------- |
| `gcp.discoveryengine.agent_session_count`           | Count        | Number of sessions created for each Gemini Enterprise agent.                                 |
| `gcp.discoveryengine.agent_session_with_tool_count` | Count        | Number of sessions where at least one tool was invoked.                                      |
| `gcp.discoveryengine.agent_total_latencies`         | Milliseconds | Distribution of total latency of Gemini Enterprise agent invocations over a 1-minute window. |
| `gcp.discoveryengine.agent_turn_count`              | Count        | Number of session turns created for each Gemini Enterprise agent.                            |

Distribution metrics report the mean. For `gcp.discoveryengine.agent_total_latencies`, New Relic also reports the 50th, 95th, and 99th percentiles as separate metrics with the `.p50`, `.p95`, and `.p99` suffixes.

#### Agent tool invocation metrics

The integration reports the following metrics for agent tool invocations.

| Metric name                                | Unit         | Description                                                                                 |
| ------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------- |
| `gcp.discoveryengine.tool_total_latencies` | Milliseconds | Distribution of total latency of Gemini Enterprise Tool invocations over a 1-minute window. |

Distribution metrics report the mean. For `gcp.discoveryengine.tool_total_latencies`, New Relic also reports the 50th, 95th, and 99th percentiles as separate metrics with the `.p50`, `.p95`, and `.p99` suffixes.

#### Data connector metrics

The integration reports the following metrics for data connectors.

| Metric name                                           | Unit         | Description                                                                                                                                                                                    |
| ----------------------------------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `gcp.discoveryengine.dataconnector.request_count`     | Count        | Total number of requests made to the datastore. The metric breaks requests down by request status, gRPC canonical response code, connector tool, engine, and whether the tool reads or writes. |
| `gcp.discoveryengine.dataconnector.request_latencies` | Milliseconds | Distribution of wall-clock latency (ms) of DataConnector tool invocations that Google Cloud measures at the ADK tool callback boundary.                                                        |

Distribution metrics report the mean. For `gcp.discoveryengine.dataconnector.request_latencies`, New Relic also reports the 50th, 95th, and 99th percentiles as separate metrics with the `.p50`, `.p95`, and `.p99` suffixes.

#### Location metrics

Location metrics are per-location aggregates for your project. They include resource counts, such as the number of engines, data stores, documents, and user events, and search request volume. They also include usage, limits, and limit-exceeded counts for more than 140 Gemini Enterprise quotas, covering areas such as agents, image and video generation, web grounding, and search requests.

Most Location metrics are quota metrics. Each quota is reported as up to three metrics, named by adding a `usage`, `limit`, or `exceeded` suffix, for example `gcp.discoveryengine.quota.search_requests_regional.usage`. Quota metrics carry the `metric.limit_name` and `metric.regional_location` labels.

Location also defines non-quota metrics, such as `gcp.discoveryengine.engines_regional`. Google Cloud doesn't report data for these in every project, and when it doesn't, they don't appear in New Relic. The same counts are also reported as quota metrics, for example `gcp.discoveryengine.quota.engines_regional.usage`.

For the full list of Location metrics, see the `discoveryengine` section of [Google's Cloud Monitoring metrics reference](https://docs.cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-discoveryengine). New Relic collects the GA and beta metrics listed there.

#### Localized quota metrics

The integration reports per-user quotas for each user (`gcp.ge_user`) and location.

| Metric name                                                                                          | Unit  | Description                                                                                                       |
| ---------------------------------------------------------------------------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------------- |
| `gcp.discoveryengine.quota.ratev2.agentic_wtu_tier_enterprise_plus_ppu_weekly_regional.exceeded`     | Count | Number of attempts to exceed the weekly limit for agentic services WTUs per user in the enterprise plus tier.     |
| `gcp.discoveryengine.quota.ratev2.agentic_wtu_tier_enterprise_plus_ppu_weekly_regional.limit`        | Count | Current weekly limit for agentic services WTUs per user in the enterprise plus tier.                              |
| `gcp.discoveryengine.quota.ratev2.agentic_wtu_tier_enterprise_standard_ppu_weekly_regional.exceeded` | Count | Number of attempts to exceed the weekly limit for agentic services WTUs per user in the enterprise standard tier. |
| `gcp.discoveryengine.quota.ratev2.agentic_wtu_tier_enterprise_standard_ppu_weekly_regional.limit`    | Count | Current weekly limit for agentic services WTUs per user in the enterprise standard tier.                          |

For more on Gemini Enterprise metrics, see [Access metrics](https://docs.cloud.google.com/gemini/enterprise/docs/access-metrics) in Google's Gemini Enterprise documentation, and the `discoveryengine` section of [Google's Cloud Monitoring metrics reference](https://docs.cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-discoveryengine) for the full list of metrics.
