Set up BigQuery Intelligence
Before you begin
BigQuery Intelligence needs specific permissions at the organization level. See BigQuery Intelligence permissions for details.
Set up BigQuery Intelligence
To set up BigQuery Intelligence:
-
Connect your Google Cloud Organization to the DoiT platform. Make sure to allow service account impersonation when configuring identities for DoiT workloads.
-
Update your service account to grant the permissions required by BigQuery Intelligence. If you have workloads on BigQuery editions, also grant the permissions for BigQuery Intelligence Editions.
BigQuery Intelligence Insights permissions allow DoiT Insights to generate actionable recommendations about your BigQuery usage. They do not directly relate to the BigQuery Intelligence setup and can be enabled later.
NoteIn the current implementation, BigQuery Intelligence works with a single service account. If you grant permissions to multiple service accounts, BigQuery Intelligence works only for the first one.
Once set up, the BigQuery Intelligence will backfill historical data for the last 30 days and start gathering information about your Google Cloud BigQuery usage patterns. It can take up to 24 hours to fully populate the BigQuery Intelligence dashboard with statistics and recommendations.
VPC Service Controls
If you deploy VPC Service Controls in your environment, you need to configure it at organization level to allow context-aware access from the BigQuery Intelligence:
-
Create an access policy.
-
In the Google Cloud console, navigate to Access Context Manager. If prompted, select your organization.
-
Create a basic access level with the following settings:
-
In the Access level title field, enter
DoiT Console Access. -
Select Basic mode.
-
For the When condition is met, return option, select TRUE.
-
In the Conditions section, select Add attribute, IP Subnetworks, and then in the IP Subnetworks box, select Private IP.
-
Choose Select VPC networks, in the Import options list, select Manually enter VPC network address, and then enter
//compute.googleapis.com/projects/me-doit-intl-com/global/networks/doit-vpc-ca4b552. -
Save the configuration.
-
-
-
Create a service perimeter to allow access to the following APIs:
- BigQuery Reservation API
- BigQuery API
- BigQuery Data Policy API
- BigQuery Data Transfer API
- BigQuery Migration API
- Cloud Logging API
-
In the Access level pane, add the
DoiT Console Accessaccess policy created in step 1. -
In the Ingress policy pane, add a new rule for the log sink writer identity:
-
FROM: Select Identities & groups, and then select the identity of the org log sink writer (update the
ORG_ID):[email protected]. -
TO: Select Projects, and then select the project of your DoiT console serice account (
aeo-ipt-svc-accounts). -
For the Selected service BigQuery API, select all methods.
-