Skip to main content

Vertex AI

Incubating

Important Capabilities

CapabilityStatusNotes
Asset ContainersEnabled by default: Experiments are modeled as Container entities; model groups and pipeline templates create folder containers.
DescriptionsExtract descriptions for Vertex AI Registered Models and Model Versions.
Detect Deleted EntitiesEnabled by default via stateful ingestion.
Platform InstanceOptionally set via the platform_instance config field to namespace resources when ingesting from multiple Vertex AI setups.
Table-Level LineageEnabled by default: training job → model, dataset → training job, and cross-platform lineage to GCS, BigQuery, S3, Snowflake, and Azure Blob Storage.

Ingesting metadata from VertexAI requires using the Vertex AI module.

Prerequisites

Please refer to the Vertex AI documentation for basic information on Vertex AI.

Credentials to access to GCP

Please read the section to understand how to set up application default Credentials to GCP docs.

Permissions
  • Grant the following permissions to the Service Account on every project where you would like to extract metadata from

Default GCP Role which contains these permissions roles/aiplatform.viewer

PermissionDescription
aiplatform.models.listAllows a user to view and list all ML models in a project
aiplatform.models.getAllows a user to view details of a specific ML model
aiplatform.endpoints.listAllows a user to view and list all prediction endpoints in a project
aiplatform.endpoints.getAllows a user to view details of a specific prediction endpoint
aiplatform.trainingPipelines.listAllows a user to view and list all training pipelines in a project
aiplatform.trainingPipelines.getAllows a user to view details of a specific training pipeline
aiplatform.customJobs.listAllows a user to view and list all custom jobs in a project
aiplatform.customJobs.getAllows a user to view details of a specific custom job
aiplatform.experiments.listAllows a user to view and list all experiments in a project
aiplatform.experiments.getAllows a user to view details of a specific experiment in a project
aiplatform.metadataStores.listallows a user to view and list all metadata store in a project
aiplatform.metadataStores.getallows a user to view details of a specific metadata store
aiplatform.executions.listallows a user to view and list all executions in a project
aiplatform.executions.getallows a user to view details of a specific execution
aiplatform.datasets.listallows a user to view and list all datasets in a project
aiplatform.datasets.getallows a user to view details of a specific dataset
aiplatform.pipelineJobs.getallows a user to view and list all pipeline jobs in a project
aiplatform.pipelineJobs.listallows a user to view details of a specific pipeline job

Note: ML Metadata extraction (enabled by default for enhanced lineage tracking) requires the aiplatform.metadataStores.* and aiplatform.executions.* permissions listed above. If your service account lacks these permissions, the connector will gracefully fall back with warnings. To disable ML Metadata features, set use_ml_metadata_for_lineage: false, extract_execution_metrics: false, and include_evaluations: false.

Create a service account and assign roles

  1. Setup a ServiceAccount as per GCP docs and assign the previously created role to this service account.

  2. Download a service account JSON keyfile.

    • Example credential file:
    {
    "type": "service_account",
    "project_id": "project-id-1234567",
    "private_key_id": "d0121d0000882411234e11166c6aaa23ed5d74e0",
    "private_key": "-----BEGIN PRIVATE KEY-----\nMIIyourkey\n-----END PRIVATE KEY-----",
    "client_email": "test@suppproject-id-1234567.iam.gserviceaccount.com",
    "client_id": "113545814931671546333",
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://oauth2.googleapis.com/token",
    "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
    "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%suppproject-id-1234567.iam.gserviceaccount.com"
    }
  3. To provide credentials to the source, you can either:

  • Set an environment variable:

    $ export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"

    or

  • Set credential config in your source based on the credential json file. For example:

    credential:
    private_key_id: "d0121d0000882411234e11166c6aaa23ed5d74e0"
    private_key: "-----BEGIN PRIVATE KEY-----\nMIIyourkey\n-----END PRIVATE KEY-----\n"
    client_email: "test@suppproject-id-1234567.iam.gserviceaccount.com"
    client_id: "123456678890"

Integration Details

Ingestion Job extracts Models, Datasets, Training Jobs, Endpoints, Experiments, Experiment Runs, Model Evaluations, and Pipelines from Vertex AI in a given project and region.

The source supports ingesting across multiple GCP projects by specifying project_ids, project_labels, or project_id_pattern. Use env (e.g., PROD, DEV, STAGING) to distinguish between environments. The optional platform_instance field namespaces resources to avoid URN collisions when ingesting from multiple Vertex AI setups.

Performance: Resources are fetched ordered by update time (most recently updated first). Limits like max_training_jobs_per_type cap how many resources are processed per run — for example, max_training_jobs_per_type: 1000 will process only the 1000 most recently updated training jobs of each type.

Enabling stateful_ingestion has two effects: (1) resources not updated since the previous run are skipped, reducing redundant API calls on subsequent runs; and (2) entities deleted from Vertex AI are automatically soft-deleted in DataHub. Use stateful_ingestion.ignore_old_state: true to get soft-deletion only without the incremental skip behaviour.

For improved organization in the DataHub UI:

  • Model versions are organized under their respective model group folders
  • Pipeline tasks and task runs are nested under their parent pipeline folders

Concept Mapping

This ingestion source maps the following Vertex AI Concepts to DataHub Concepts:

Source ConceptDataHub ConceptNotes
ModelMlModelGroupThe name of a Model Group is the same as Model's name. Model serve as containers for multiple versions of the same model in Vertex AI.
Model VersionMlModelThe name of a Model is {model_name}_{model_version} (e.g. my_vertexai_model_1 for model registered to Model Registry or Deployed to Endpoint. Each Model Version represents a specific iteration of a model with its own metadata.
Dataset

DatasetA Managed Dataset resource in Vertex AI is mapped to Dataset in DataHub.
Supported types of datasets include (Text, Tabular, Image Dataset, Video, TimeSeries)
Training JobDataProcessInstanceA Training Job is mapped as DataProcessInstance in DataHub.
Supported types of training jobs include (AutoMLTextTrainingJob, AutoMLTabularTrainingJob, AutoMLImageTrainingJob, AutoMLVideoTrainingJob, AutoMLForecastingTrainingJob, Custom Job, Custom TrainingJob, Custom Container TrainingJob, Custom Python Packaging Job )
ExperimentContainerExperiments organize related runs and serve as logical groupings for model development iterations. Each Experiment is mapped to a Container in DataHub.
Experiment RunDataProcessInstanceAn Experiment Run represents a single execution of a ML workflow. An Experiment Run tracks ML parameters, metricis, artifacts and metadata
ExecutionDataProcessInstanceMetadata Execution resource for Vertex AI. Metadata Execution is started in a experiment run and captures input and output artifacts.
PipelineJobDataFlowA Vertex AI Pipeline is mapped to a stable DataFlow entity in DataHub (one per pipeline template). The compiled pipeline spec name (pipelineInfo.name, i.e. the @pipeline(name="...") argument) is used as the stable identifier; non-Kubeflow pipelines fall back to display_name with any timestamp suffix stripped. Each pipeline run creates a DataProcessInstance, and pipeline tasks are modeled as DataJobs nested under the parent DataFlow. This enables proper incremental lineage aggregation across multiple pipeline runs. Breaking Change (v1.4.0): Previously, each pipeline run created a separate DataFlow entity. Existing pipeline entities from earlier versions will appear as separate entities from new ingestion runs. Enable stateful ingestion with stale entity removal to clean up old pipeline entities.
PipelineJob TaskDataJobEach task within a Vertex AI pipeline is modeled as a DataJob in DataHub, nested under its parent pipeline DataFlow. Tasks represent individual steps in the pipeline workflow.
PipelineJob Task RunDataProcessInstanceEach execution of a pipeline task is modeled as a DataProcessInstance, linked to its DataJob (task definition). This captures runtime metadata, inputs/outputs, and lineage for each task execution.
Vertex AI Concept Diagram

Lineage

The connector captures comprehensive lineage relationships including cross-platform lineage to external data sources:

Core Vertex AI Lineage:

  • Training job → Model (AutoML and CustomJob)
  • Dataset → Training job (AutoML and ML Metadata-based)
  • Training job → Output models (ML Metadata Executions)
  • Model → Training datasets (direct upstream lineage via TrainingData aspect)
  • Experiment run → Model (outputs)
  • Model evaluation → Model and test datasets (inputs)
  • Pipeline task runs → Models and datasets (inputs/outputs via DataProcessInstance aspects)

Cross-Platform Lineage (external data sources):

The connector links Vertex AI resources to external datasets when referenced in job configurations or ML Metadata artifacts. Supported platforms:

  • Google Cloud Storage (gs://...) → gcs platform
  • BigQuery (bq://project.dataset.table or projects/.../datasets/.../tables/...) → bigquery platform
  • Amazon S3 (s3://..., s3a://...) → s3 platform
  • Azure Blob Storage (wasbs://..., abfss://...) → abs platform
  • Snowflake (snowflake://...) → snowflake platform

Use platform_instance_map to configure platform instances and environments for external platforms, ensuring URNs match those from native connectors for proper lineage connectivity.

CLI based Ingestion

Starter Recipe

Check out the following recipe to get started with ingestion! See below for full configuration options.

For general pointers on writing and running a recipe, see our main recipe guide.

source:
type: vertexai
config:
project_id: "acryl-poc"
# region: "us-west2" # [deprecated] Prefer 'regions' or 'discover_regions'
# regions:
# - "us-west2"
# - "us-central1"
# discover_regions: true # Enumerate available regions and scan all
# Optional multi-project support
# project_ids:
# - "project-a"
# - "project-b"
# project_labels:
# - "env:prod"
# project_id_pattern:
# allow:
# - ".*-prod"
# You must either set GOOGLE_APPLICATION_CREDENTIALS or provide credential as shown below
# credential:
# private_key: '-----BEGIN PRIVATE KEY-----\\nprivate-key\\n-----END PRIVATE KEY-----\\n'
# private_key_id: "project_key_id"
# client_email: "client_email"
# client_id: "client_id"

sink:
type: "datahub-rest"
config:
server: "http://localhost:8080"

Config Details

Note that a . is used to denote nested fields in the YAML recipe.

FieldDescription
project_id 
string
Project ID in Google Cloud Platform
region 
string
[deprecated] Single Vertex AI region. Prefer 'regions' or 'discover_regions'.
bucket_uri
One of string, null
Bucket URI used in your project
Default: None
discover_regions
boolean
If true, discover available Vertex AI regions per project and scan all.
Default: False
extract_execution_metrics
boolean
Extract hyperparameters and metrics from ML Metadata Executions. Useful for training jobs that don't use Experiments but log to ML Metadata.
Default: True
include_evaluations
boolean
Ingest model evaluations and evaluation metrics.
Default: True
include_experiments
boolean
Ingest experiments and experiment runs.
Default: True
include_models
boolean
Ingest models and model versions from the registry.
Default: True
include_pipelines
boolean
Ingest pipelines and tasks.
Default: True
include_training_jobs
boolean
Ingest training jobs and related run events.
Default: True
incremental_lineage
boolean
When enabled, emits lineage as incremental to existing lineage already in DataHub. When disabled, re-states lineage on each run.
Default: False
max_evaluations_per_model
One of integer, null
Maximum evaluations per model. Default: 10, Max: 100. Set to None for unlimited (not recommended).
Default: 10
max_experiments
One of integer, null
Maximum number of experiments to ingest. Experiments are ordered by update_time descending (most recently updated first). Default: 1000, Max: 10000. Set to None for unlimited (not recommended).
Default: 1000
max_models
One of integer, null
Maximum number of models to ingest. Models are ordered by update_time descending (most recently updated first). Default: 10000, Max: 50000. Set to None for unlimited (not recommended).
Default: 10000
max_runs_per_experiment
One of integer, null
Maximum experiment runs per experiment. Runs are ordered by update_time descending (most recently updated first). Default: 100, Max: 1000. Set to None for unlimited (not recommended).
Default: 100
max_training_jobs_per_type
One of integer, null
Maximum training jobs per type (CustomJob, AutoML, etc.). Jobs are ordered by update_time descending (most recently updated first). Default: 1000, Max: 10000. Set to None for unlimited (not recommended).
Default: 1000
ml_metadata_max_execution_search_limit
integer
Maximum number of ML Metadata executions to retrieve when searching for a training job. Executions are ordered by LAST_UPDATE_TIME descending (most recently updated first), so if the limit is reached, you'll get the most recently completed/updated executions. Prevents excessive API calls and timeouts. Default: 500. The API will automatically paginate results (100 per page).
Default: 500
normalize_external_dataset_paths
boolean
Strip partition segments from external dataset paths (GCS/S3/ABS) to create stable dataset URNs. When enabled, 'gs://bucket/data/year=2024/month=01/' becomes 'gs://bucket/data/'. Partition-level information is captured via DataProcessInstance. Default is False for backward compatibility. Will default to True in a future major version.
Default: False
platform_instance
One of string, null
The instance of the platform that all assets produced by this recipe belong to. This should be unique within the platform. See https://docs.datahub.com/docs/platform-instances/ for more details.
Default: None
rate_limit
boolean
Slow down ingestion to avoid hitting Vertex AI API quota limits. Enable if you see '429 Quota Exceeded' errors during ingestion.
Default: False
requests_per_min
integer
How many Vertex AI API calls to allow per minute when rate_limit is enabled. Start low (30–60) and increase only if ingestion is too slow — some calls fetch multiple pages of results internally, so the real quota usage is higher than this number suggests.
Default: 60
use_ml_metadata_for_lineage
boolean
Extract lineage from Vertex AI ML Metadata API for CustomJob and other training jobs. This enables input dataset → training job → output model lineage for non-AutoML jobs.
Default: True
vertexai_url
One of string, null
VertexUI URI
env
string
The environment that all assets produced by this connector belong to
Default: PROD
credential
One of GCPCredential, null
GCP credential information
Default: None
credential.client_email 
string
Client email
credential.client_id 
string
Client Id
credential.private_key 
string(password)
Private key in a form of '-----BEGIN PRIVATE KEY-----\nprivate-key\n-----END PRIVATE KEY-----\n'
credential.private_key_id 
string
Private key id
credential.auth_provider_x509_cert_url
string
Auth provider x509 certificate url
credential.auth_uri
string
Authentication uri
credential.client_x509_cert_url
One of string, null
If not set it will be default to https://www.googleapis.com/robot/v1/metadata/x509/client_email
Default: None
credential.project_id
One of string, null
Project id to set the credentials
Default: None
credential.token_uri
string
Token uri
credential.type
string
Authentication type
Default: service_account
experiment_name_pattern
AllowDenyPattern
A class to store allow deny regexes
experiment_name_pattern.ignoreCase
One of boolean, null
Whether to ignore case sensitivity during pattern matching.
Default: True
model_name_pattern
AllowDenyPattern
A class to store allow deny regexes
model_name_pattern.ignoreCase
One of boolean, null
Whether to ignore case sensitivity during pattern matching.
Default: True
partition_pattern_rules
array
Regex patterns to identify and strip partition segments from paths. Applied when normalize_external_dataset_paths is enabled. Patterns are applied in order.
Default: ['/[^/]+=([^/]+)', '/dt=\d{4}-\d{2}-\d{2}', '/...
partition_pattern_rules.string
string
platform_instance_map
map(str,PlatformDetail)
Platform instance configuration for external datasets referenced in Vertex AI lineage.
platform_instance_map.key.platform_instance
One of string, null
Platform instance for URN generation. If not set, no platform instance in URN.
Default: None
platform_instance_map.key.convert_urns_to_lowercase
boolean
Convert dataset names to lowercase. Set to true for Snowflake (which defaults to lowercase URNs). Leave false for GCS, BigQuery, S3, and ABS.
Default: False
platform_instance_map.key.env
string
Environment for all assets from this platform
Default: PROD
project_id_pattern
AllowDenyPattern
A class to store allow deny regexes
project_id_pattern.ignoreCase
One of boolean, null
Whether to ignore case sensitivity during pattern matching.
Default: True
project_ids
array
Ingest specified GCP project ids. Overrides project_id_pattern.
project_ids.string
string
project_labels
array
Ingest projects with these labels (key:value). Applied before project_id_pattern.
project_labels.string
string
regions
array
List of Vertex AI regions to scan. If empty and discover_regions is false, falls back to 'region'.
regions.string
string
training_job_type_pattern
AllowDenyPattern
A class to store allow deny regexes
training_job_type_pattern.ignoreCase
One of boolean, null
Whether to ignore case sensitivity during pattern matching.
Default: True
stateful_ingestion
One of StatefulStaleMetadataRemovalConfig, null
Stateful ingestion configuration for tracking and removing stale metadata.
Default: None
stateful_ingestion.enabled
boolean
Whether or not to enable stateful ingest. Default: True if a pipeline_name is set and either a datahub-rest sink or datahub_api is specified, otherwise False
Default: False
stateful_ingestion.fail_safe_threshold
number
Prevents large amount of soft deletes & the state from committing from accidental changes to the source configuration if the relative change percent in entities compared to the previous state is above the 'fail_safe_threshold'.
Default: 75.0
stateful_ingestion.remove_stale_metadata
boolean
Soft-deletes the entities present in the last successful run but missing in the current run with stateful_ingestion enabled.
Default: True

ML Metadata Lineage

The connector extracts lineage and metrics from CustomJob training jobs using the Vertex AI ML Metadata API. This enables:

  • Full lineage tracking for CustomJob: input datasets → training job → output models
  • Hyperparameters and metrics extraction from training jobs that log to ML Metadata Executions
  • Model evaluation ingestion with evaluation metrics and lineage to models

These features are controlled by the following configuration options:

  • use_ml_metadata_for_lineage (default: true) — Extracts lineage from ML Metadata for CustomJob and other non-AutoML training jobs
  • extract_execution_metrics (default: true) — Extracts hyperparameters and metrics from ML Metadata Executions
  • include_evaluations (default: true) — Ingests model evaluations and evaluation metrics

For CustomJob lineage to work, your training scripts must log artifacts to Vertex AI ML Metadata. This happens automatically when using the Vertex AI Experiments SDK, or you can log manually:

from google.cloud import aiplatform

aiplatform.init(project="your-project", location="us-central1")

dataset_artifact = aiplatform.Artifact.create(
schema_title="system.Dataset",
uri="gs://your-bucket/data/train.csv",
display_name="training-dataset",
)

with aiplatform.start_execution(
schema_title="system.ContainerExecution",
display_name=f"training-job-{job_name}",
) as execution:
execution.assign_input_artifacts([dataset_artifact])
# ... training logic ...
model_artifact = aiplatform.Artifact.create(
schema_title="system.Model",
uri=model_uri,
display_name="trained-model",
)
execution.assign_output_artifacts([model_artifact])

Cross-Platform Lineage Configuration

To ensure external datasets are linked with the correct platform instances and environments (so URNs match those from native connectors), configure platform_instance_map:

source:
type: vertexai
config:
project_id: my-project
platform_instance_map:
gcs:
platform_instance: prod-gcs
env: PROD
bigquery:
platform_instance: prod-bq
env: PROD
s3:
platform_instance: prod-s3
env: PROD
snowflake:
platform_instance: prod-snowflake
env: PROD
convert_urns_to_lowercase: true # Required - Snowflake defaults to lowercase URNs
abs:
platform_instance: prod-abs
env: PROD

Platform-specific notes:

  • Snowflake: Must set convert_urns_to_lowercase: true to match the Snowflake connector's default behavior
  • All other platforms (GCS, BigQuery, S3, ABS): Use the default convert_urns_to_lowercase: false

Code Coordinates

  • Class Name: datahub.ingestion.source.vertexai.vertexai.VertexAISource
  • Browse on GitHub

Questions

If you've got any questions on configuring ingestion for Vertex AI, feel free to ping us on our Slack.