Acceldata
ADOC

Last updated: Dec 01, 2026 18:35 IST

Google Cloud Storage

Integrate Google Cloud Storage (GCS) with ADOC to continuously monitor data stored in your GCS buckets. Once configured, ADOC’s Data Reliability features enable you to crawl assets, detect schema drift, track file activity, and ensure end-to-end observability for your cloud storage.

Prerequisites

Ensure the following requirements are met before you connect GCS as a data source:

  • You have a service account with permissions to your GCP project.
  • The following permissions are granted to that service account on the buckets that you want to monitor:
    • storage.objects.list: Lists the files in the bucket during crawls.
    • storage.objects.get: Reads file contents for profiling and data quality checks.
    • storage.buckets.get: Reads bucket metadata when ADOC opens a gs:// path.
    • Results bucket: The Data Plane writes data quality results to a GCS bucket by using its own storage credentials, not the data source's JSON key file. Grant storage.objects.create, storage.objects.get, storage.objects.list, storage.objects.delete, and storage.buckets.get on the results bucket to the Data Plane's storage service account. With Google Workload Identity, this is the same GCP service account that you use for the data source. ADOC overwrites existing results, which requires storage.objects.delete.

Note

The predefined Storage Object Viewer role doesn't include storage.buckets.get, storage.objects.create, or storage.objects.delete. Create a custom role that contains the permissions that you need, or assign Storage Object Viewer together with a role that includes the missing permissions.

  • If using Pub/Sub channel monitoring: Set up Pub/Sub notifications for each bucket so that GCS publishes object change events to a Pub/Sub topic, and create a subscription to that topic. ADOC reads the events from this subscription. Grant the service account the Pub/Sub Subscriber role (roles/pubsub.subscriber), which includes the permissions that ADOC needs: pubsub.subscriptions.consume, pubsub.snapshots.seek, and pubsub.topics.attachSubscription.
  • Authentication: To use Google Workload Identity, your Data Plane must run on GKE (Google Kubernetes Engine), and the GCP service account must be bound to the Data Plane's Kubernetes service accounts (analysis-service, analysis-sql-service, analysis-standalone-service, default, spark-scheduler, and torch-monitors) in the Data Plane namespace. For each of these accounts, grant the GCP service account the Workload Identity User role (roles/iam.workloadIdentityUser), and annotate the Kubernetes service account with iam.gke.io/gcp-service-account. If an account is missed, the jobs that run under it fail with permission errors. With Workload Identity, this service account also writes data quality results, so it needs the results bucket permissions. If you don't use Workload Identity, you need a JSON key file for the service account.
  • Each bucket that you connect contains at least one object. Test Connection fails for an empty bucket.
  • A Data Plane in GCP is available (existing or new). The Data Plane is required for crawling and observability and must meet ADOC compatibility requirements (i.e. Kubernetes version ≥ 1.25)

Add GCS as a Data Source

Follow these steps to set up GCS in ADOC:

Step 1: Start setup

  • Navigate to the left main navigation menu, click Control Center -> Integrations.
  • From the Integrations page, click Add Data Source.
  • Select GCS from the list of data sources.
  • On the Data Source Details page:
    • Enter a name for this data source that is unique within your tenant.
    • Optionally, add a brief description to clarify its purpose.
    • Ensure the Data Reliability toggle is enabled and select your data plane from the drop-down list.
  • Select Next to proceed.

Step 2: Add connection details

  • Choose an authentication method based on your infrastructure setup:
    • Google Workload Identity: Enable this toggle if your Data Plane is running on GKE (Google Kubernetes Engine) and has been configured to use Workload Identity. This method allows ADOC to securely authenticate with GCS without needing to upload service account credentials.
    • Credentials File: If you're not using GKE with Workload Identity, upload a service account credentials JSON file.
  • ProjectName: Enter the GCP project that contains the GCS buckets.
  • You can optionally enable Use Secret Manager to store the credentials securely.
    • If enabled, select your Secret Manager provider and enter the Secret Name or Key.
  • Under Storage Buckets, add a row for each bucket that you want to monitor. To add another bucket, select + Add Row. For each bucket:
    • Bucket Name: Enter the name of the GCS bucket.
    • Monitoring Channel Type: Select one of the following options:
      • NONE: ADOC detects file changes only when the crawler runs. No other fields are required.
      • PUBSUB: ADOC detects file changes in real time through Google Pub/Sub. Also enter the following:
        • Subscription Name: The Pub/Sub subscription that receives the notifications for this bucket.
        • Project Name: The GCP project that contains the subscription.
  • Select Test Connection. On success, you’ll see “Connected”. Test Connection checks each bucket that you added. Make sure that each bucket contains at least one object; Test Connection fails for an empty bucket. If the test fails, check the error message:
    • “Either user is not authorized to view buckets or there are no GCS buckets”: Check that the service account has storage.buckets.get and storage.objects.list, and that the bucket name is correct.
    • “Buckets -> <bucket name> are empty”: Add at least one object to the bucket, and then test the connection again.
    • “User does not have sufficient permissions to read messages from … Pub-Sub Subscriptions”: Check the Pub/Sub permissions listed in Prerequisites.
  • Click Next to proceed.

Step 3: Set up observability

  • Enter values for the required fields:
    • Project Name
  • For each asset:
    • Asset Name
    • Path Expression (e.g. gs://bucket-name/observability.csv)
    • File Type (e.g., CSV, Parquet, JSON, ORC)
  • Depending on the file type, enter values for the following parameters:

File Type

Parameter

Description

CSV

Delimiter

The character that separates fields in a CSV file. Common delimiters include commas (,), tabs (\t), or semicolons (;).

ORC

No additional parameters are required for ORC files.

PARQUET

File Processing Strategy

Options include: Evolving Schema (no additional parameters required), Random Files, or Date Partitioned.

Base Path (Random Files)

The root directory or location in the storage system where the Parquet files are stored. This is used to locate the data for random file processing.

Base Path (Date Partitioned)

The root directory or location where the date-partitioned Parquet files are stored.

Pattern (Date Partitioned)

A file pattern that includes a date (e.g., "file-<yyyy-MM-dd>.parquet") to identify the specific files for processing.

LookBack Days (Date Partitioned)

The number of days to look back when crawling and processing date-partitioned Parquet files.

TimeZone (Date Partitioned)

The time zone in which the partitioned data is recorded.

JSON

Flattening Level

Defines how deeply nested JSON structures will be flattened. Nested JSON fields will be expanded based on the level specified.

MultiLine JSON

When enabled, this toggle allows for the processing of JSON data that spans multiple lines.

AVRO

Schema Store Type

Specifies where the AVRO schema is stored. Options could include local files, a schema registry, or other storage systems.

Delta

No additional parameters are required for Delta files.

  • Use the bucket root path (e.g. gs://bucket-name) to include all files in the bucket, or a wildcard path (e.g. gs://bucket-name/*.csv or gs://bucket-name/folder/*) to include only matching files.
  • To monitor multiple assets, click + and repeat.

Optional settings

  • Enable Schema Drift Monitoring to track structural changes in your GCS assets. Schema drift detection requires scheduled crawler to be enabled.
  • Enable Crawler Execution Schedule to set up scheduled scans of your GCS assets:
    • Choose how often the crawler runs (e.g., daily)
    • Set execution time and time zone
    • Add multiple execution times if needed
  • Set Notifications
    • Notify on Crawler Failure: Choose one or more channels to receive failure alerts via configured channels.
    • Notify on Success: Toggle this if you'd like to receive success notifications.
  • Click Submit to save your configuration to register and begin monitoring the GCS data source.

Once submitted, ADOC adds a GCS data source card on the Data Sources page showing crawling status, time of last run, and observability metrics.

What’s next

  • Run your first crawler immediately or wait for the scheduled crawl.
  • Access the Data Reliability section to review asset inventory, file-level trends, schema drift alerts, and data quality insights.
  • Configure custom monitoring policies or alerts for schema changes, late files, or ingestion failures.
  • To add more assets or file types later, edit the GCS data source configuration.

Glossary

Term

Definition

Channel Monitoring

A mechanism to detect file changes (uploads or modifications) in real time. In GCS by using Google Pub/Sub, this enables ADOC to start ingestion or profiling immediately when changes occur, rather than waiting for a scheduled crawler run.

Schema Drift Monitoring

Detects changes in file schema over time for assets being crawled.

Google Workload Identity

A Google Cloud feature that securely binds Kubernetes service accounts to Google Cloud service accounts, allowing applications to access Google Cloud resources without managing service account keys.

Additional reference