
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
- In Google Cloud Console, go to IAM & Admin → Service Accounts.
- Create a service account (e.g.
drdroid-bigquery-reader). - 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):
Restrict access to specific datasets (recommended)
For least privilege, keep BigQuery Job User on the project, and grant BigQuery Data Viewer only on datasets the agent should use: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-onlySELECT queries against datasets you granted access to).
