This page describes how to create a data store and connect Cloudflare Observability to Gemini Enterprise.
Before you begin
Before you set up your Cloudflare Observability connection, follow these steps:
Grant the Discovery Engine Editor role (
roles/discoveryengine.editor). This role is required for the user to create the data store. To grant this role, do the following:- In the Google Cloud console, go to the IAM page.
- Locate the user account and click edit Edit.
- Grant the
Discovery Engine Editorrole to the user. For more information, see IAM roles and permissions.
Obtain an OAuth 2.0 client ID for your Cloudflare Observability integration. Cloudflare's MCP server issues PKCE client IDs through dynamic client registration at
https://observability.mcp.cloudflare.com/registerusing the following OAuth settings:- Redirect URI:
https://vertexaisearch.cloud.google.com/oauth-redirect token_endpoint_auth_method:none(registers a public PKCE client without a client secret)grant_types:authorization_code,refresh_token- Scopes:
user:read,offline_access,account:read,workers:read,workers_observability:read
Cloudflare Observability uses OAuth 2.0 with PKCE, so you don't need a client secret. The refresh token is generated for you during authorization.
- Redirect URI:
Create the Cloudflare Observability data store
To create the Cloudflare Observability data store, follow these steps:
In the Google Cloud console, go to the Gemini Enterprise page.
Select or create a Google Cloud project.
In the navigation menu, click Data stores.
Click Create data store.
In the Source section, search for Cloudflare Observability, and click Select.
In the Data section:
In the Authentication settings section, enter the following authentication details:
- Client ID: The OAuth client ID for your Cloudflare Observability integration.
Click Verify Auth, sign in to Cloudflare, and authorize access. Gemini Enterprise generates and stores the required refresh token for the connection. You must complete this step before continuing, or creating the data store fails with a missing refresh token error.
If the create data store flow shows an Advanced options section, you can select the Enable Static IP Addresses checkbox within it. This ensures the data store uses a fixed set of IP addresses for outbound traffic, suitable for allowlisting on the source system. For more information, see Configure static IP egress.
In the Entities to search section, choose which entities Gemini Enterprise should scan. For Cloudflare Observability, select Workers.
Click Continue.
In the Actions section, for Select Cloudflare Observability actions to enable, choose the actions from the category to enable them for the data store.
Click Continue.
In the Configuration section:
- From the Multi-region list, select the location for your data connector.
- In the Your data connector name field, enter a name for your connector.
- If you selected
usoreuas the location, configure the Encryption settings:- Optional: If you haven't configured single-region keys, click Go to settings page to do so. For more information, see Register a single-region key for third-party connectors.
- Select Google-managed encryption key or Cloud KMS key.
- If you selected Cloud KMS key:
- In the Key management type list, select the appropriate type.
- In the Cloud KMS key list, select the key.
Click Continue.
In the Billing section, select General pricing or Configurable pricing. For more information, see Verify the billing status of your projects and Licenses.
Click Create. Gemini Enterprise creates your data store and displays your data stores on the Data Stores page.
On the Data Stores page, click your data store name to see the status. After the data store state changes from Creating to Active, the Cloudflare Observability data store is ready to be used.
After creating the data store, connect the data store you just created to an existing app or create a new app and connect it to the new app, and authorize Gemini Enterprise to access Cloudflare Observability before executing any queries.
Data handling and query execution
This section describes how Gemini Enterprise manages your query and the privacy implications of using the federated data store.
Query execution
After you authorize Cloudflare Observability and send a search query to Gemini Enterprise:
- Gemini Enterprise sends your search query directly to the Cloudflare Observability API.
- Gemini Enterprise blends the results with those from other connected data sources and displays a comprehensive search result.
Data handling
When using third-party federated search, the following data handling rules apply:
- Your query string is sent to the third-party search backend (Cloudflare Observability API).
- These third parties may associate queries with your identity.
- If multiple federated search data sources are enabled, the query might be sent to all of them.
- After the data reaches the third-party system, it is governed by that system's terms of service and privacy policies.
What's next
- To provide a user interface for querying your Cloudflare Observability data, create an app and connect it to the Cloudflare Observability data store.
- To preview how your search results appear after your app is set up, see Get search results.
- To enable alerts for the data store, see Configure alerts for third-party data stores.