Skip to main content

Overview

Google BigQuery is a fully managed, serverless data warehouse that enables scalable analysis over large datasets. In Zenskar, you can use BigQuery as a data source for billable metrics and dashboards.

Prerequisites

We highly recommend that you create a Service Account exclusive to Zenskar for ease of permission and auditing. However, you can use a pre-existing Service Account that has the correct permissions.

Create and manage a Service Account key in Google Cloud Project

  • Service Account keys are used to authenticate as Google Service Accounts. Zenskar requires the Service Account keys to leverage the role-based permissions you granted to the Service Account in the previous section.
  • Create and manage a Service Account key. Ensure the following:
    • Create your key in JSON format.
    • Download the key immediately.
  • Google will not allow you to see the contents of the key once you navigate away.
Delete the downloaded key file after setup for security.

Set up a BigQuery data-source connector via Zenskar dashboard

  1. Log into your Zenskar dashboard.
  2. In the left side bar, click Usage > Data Sources.
  3. In the top-right corner, click + ADD DATA SOURCE.
  4. On the Add New Data Source page, configure the BigQuery connector.
  5. Click on the SAVE SOURCE button.

Connector configuration

General configuration

Connector configuration

Data source access mode (read-only)

Zenskar queries data directly from BigQuery without syncing it to Zenskar’s data infrastructure. This option is:
  • Ideal for large databases (more than 30 GB)
  • Suitable for real-time data access
  • No sync waiting time
You will be able to browse and query tables from this BigQuery source in the Data Navigator while creating aggregates.

Set up a BigQuery data-source connector via API

Refer to the create data-source connector API reference.

The connector_config object is the only part of the request that differs across connector types (such as BigQuery, Snowflake, or Redshift). The create data-source connector API reference provides a generic overview, while this document explains the BigQuery-specific structure of connector_config.

Request example

BigQuery-specific connector configuration

The connector_config object contains configuration fields specific to the BigQuery data source.
  • Some users may specify dataset_id in the format <project_id>.<dataset_id> (for example, my-test-project-84030.abc123), which is valid in BigQuery but not supported in Zenskar. Pass only the dataset name (abc123), as project_id is already handled separately.
  • Ensure that the Service Account used has the BigQuery User and BigQuery Data Editor roles.
  • Zenskar supports only JSON-format Service Account keys.

Notes

Zenskar does not modify your existing BigQuery data or schema.
Queries are executed using your service account’s permissions.
For best performance, use partitioned or clustered tables when working with large datasets.