Skip to main content

OpenLineage integration with dbt

Project description

OpenLineage dbt integration

Wrapper script for automatic metadata collection from dbt

Features

Metadata

  • Model run lifecycle
  • Model inputs / outputs

Requirements

Right now, openlineage-dbt only supports bigquery, snowflake, spark and redshift dbt adapters.

Installation

$ pip3 install openlineage-dbt

To install from source, run:

$ pip install .

Configuration

HTTP Backend Environment Variables

openlineage-dbt uses the OpenLineage client to push data to the OpenLineage backend.

The OpenLineage client depends on environment variables:

  • OPENLINEAGE_URL - point to service which will consume OpenLineage events
  • OPENLINEAGE_API_KEY - set if consumer of OpenLineage events requires Bearer authentication key
  • OPENLINEAGE_NAMESPACE - set if you are using something other than the default namespace for job namespace.

Usage

To begin collecting dbt metadata with OpenLineage, replace dbt run with dbt-ol run.

Additional table and column level metadata will be available if catalog.json, a result of running dbt docs generate, will be found in the target directory.


SPDX-License-Identifier: Apache-2.0
Copyright 2018-2022 contributors to the OpenLineage project

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openlineage-dbt-0.19.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openlineage_dbt-0.19.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file openlineage-dbt-0.19.2.tar.gz.

File metadata

  • Download URL: openlineage-dbt-0.19.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for openlineage-dbt-0.19.2.tar.gz
Algorithm Hash digest
SHA256 15f796521cf89a0d78b7701198d1cf4d9db51076df1d782b4265bf5c9c091006
MD5 281f2b24cec1c7b4a0c177a344f5fa84
BLAKE2b-256 c4d61fa2fd56f90b3a386739327c06b5946856998c7b613c17215d5a9fbd2651

See more details on using hashes here.

File details

Details for the file openlineage_dbt-0.19.2-py3-none-any.whl.

File metadata

File hashes

Hashes for openlineage_dbt-0.19.2-py3-none-any.whl
Algorithm Hash digest
SHA256 897fc3b44ce2f347e19eb59b71a979199833663f8660217b21151c530019dea1
MD5 bf29b324ee664851f72a2d5e64917689
BLAKE2b-256 0e3f35572f56b2de93863347549c45adefc1e4318ba733a12686781ca0f09c5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page