marmotdata/dbt
Ingest metadata from dbt (Data Build Tool) projects including models, tests, and lineage
The DBT plugin ingests metadata from dbt (Data Build Tool) projects, including models, sources, seeds, and lineage relationships. It reads dbt's generated artifacts to understand your data transformation layer and how it connects to your warehouse.
Prerequisites
Before Marmot can ingest your dbt project, you need to generate the artifact files in your project's target/ directory.
Required
Generate manifest.json by running:
dbt compile
Recommended
Generate catalog.json for column types and statistics:
dbt docs generate
File Sources
The target_path field accepts local paths, S3 URIs (s3://bucket/prefix) or Git URIs (git::https://...). For S3 and Git sources, the target directory is downloaded to a temporary location before discovery and cleaned up afterwards.
See File Sources for the full list of supported backends, authentication options and configuration examples.
Naming
A model is named by the database and schema it is built into and its own name, for example mrn://asset/model/dbt/analytics.marts.orders. Set zone to tell two dbt projects apart.
The warehouse tables dbt reads or builds belong to the warehouse's own plugin, so they use its name: <database>.<schema>.<table>, or <schema>.<table> for MySQL, ClickHouse, SingleStore, Spark and Glue. Set target_zone to the Marmot zone of that warehouse, for example prod-snowflake, so those tables merge with the ones the warehouse plugin catalogues.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick dbt from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
s3_sourceGroup of settingsS3 file source configuration
credentialsGroup of settingsAWS credentials for S3 access
use_defaultYes or noUse AWS credentials from environment or default profile (recommended)
idTextAWS access key ID
secretSecretAWS secret access key
tokenSecretAWS session token
profileTextAWS profile to use from shared credentials file
role_arnTextIAM role to assume with the Marmot identity token (AssumeRoleWithWebIdentity); its trust policy names the Marmot issuer as an OIDC provider. Setting it federates: no keys are needed, and region is required. role, if also set, is assumed on top of it
roleTextAWS IAM role ARN to assume with AssumeRole from the base credentials (static keys, a profile, the default chain, or role_arn)
role_external_idTextExternal ID for cross-account role assumption
regionTextAWS region for services
endpointTextCustom endpoint URL for AWS services
git_sourceGroup of settingsGit repository file source configuration
urlTextGit repository URL
refTextBranch, tag or commit to check out
pathTextSubdirectory within the repository
tokenSecretPersonal access token for HTTPS auth
ssh_key_pathTextPath to SSH private key for SSH auth
target_zoneTextZone of the warehouse dbt builds into
target_pathText RequiredPath to DBT target directory containing manifest.json, catalog.json, etc. (local path, s3://bucket/prefix or git::url)
project_nameText RequiredDBT project name
environmentTextEnvironment name (e.g., production, staging)
include_manifestYes or noInclude manifest.json for model definitions
include_catalogYes or noInclude catalog.json for table/column descriptions
include_run_resultsYes or noInclude run_results.json for test results
include_sources_jsonYes or noInclude sources.json for source definitions
discover_modelsYes or noDiscover DBT models
discover_sourcesYes or noDiscover DBT sources
discover_testsYes or noDiscover DBT tests
Assets emitted
Metadata this plugin attaches to each discovered asset.
Model
DBT model-specific metadata fields
Source
DBT source-specific metadata fields
Seed
DBT seed-specific metadata fields
Column
DBT column-specific metadata fields
Config
DBT config-specific metadata fields Fields with config_ prefix contain DBT model configuration
Stats
DBT catalog statistics fields Fields with stat_ prefix contain statistics from database catalog