Skip to main content
DrDroid connects to Google BigQuery using a GCP service account. DroidAgent can list datasets, read table metadata, and run SQL queries when investigating alerts. This is a separate connector from Google Cloud Platform (GCP) and Google Cloud Metrics & Logs. Add BigQuery only if you want the agent to query warehouse tables directly.

Connection via dashboard

Open Agent Setup → Integrations → BigQuery, or go to aiops.drdroid.io/integrations/big_query. On Big Query Integration Setup, fill in: Click Test connection, then Save.
Test connection checks that DrDroid can authenticate and list at least one dataset in the project. If the project has no datasets, or the service account cannot see any, the test fails even when the JSON is valid.

Create a service account

  1. In Google Cloud Console, go to IAM & Admin → Service Accounts.
  2. Create a service account (e.g. drdroid-bigquery-reader).
  3. Create a JSON key: Keys → Add key → Create new key → JSON. Download and store it securely.

Required IAM roles

Grant these on the GCP project (or tighter, as described below): Example (project-wide, simplest setup):
For least privilege, keep BigQuery Job User on the project, and grant BigQuery Data Viewer only on datasets the agent should use:
Replace PROJECT_ID and DATASET_ID with your values. Repeat for each dataset. The service account must still be able to see at least one dataset for the connection test to pass.

Enable the BigQuery API

Querying

After the connector is saved, DroidAgent can run BigQuery SQL during investigations (read-only SELECT queries against datasets you granted access to).