Metadata sample configs
Ready-to-use metadata pipeline configurations for Snowflake, Databricks, and DataOS Lakehouse (Iceberg) sources.
All examples below use the current Nilus pipeline shape with spec.type: metadata:
type: nilus
spec:
type: metadataA metadata pipeline extracts catalog, lineage, profiler, classification, and usage information from a connected source system and loads it into the DataOS metadata catalog. You author one Nilus resource per source system — Nilus renders it into a DAG behind the scenes. The required mode field decides how much of that DAG runs: shallow renders metadata + lineage, and deep adds profiler, classification, and usage in parallel after the root. For Lakehouse sources, only the metadata stage runs in either mode.
For the conceptual model, see Understanding Metadata Pipelines.
For the field-by-field reference and the DAG anatomy, see Understanding Metadata Pipeline Config.
Snowflake
Before running either Snowflake sample, make sure the Snowflake role has the metadata-specific privileges described in Snowflake (Metadata) → Required permissions. Inventory can work with object visibility, but tags, query history, stored procedures/functions, lineage, and usage depend on the approved account-usage surface.
Databricks (Unity Catalog)
Databricks metadata connects only through a direct databricks:// URI with a projected access token — there is no DataOS depot variant for Databricks. Because spec.type is metadata, Nilus adds the internal metadata+ routing prefix automatically. Use service_type: databricks for both classic and Unity Catalog deployments; the access token goes in the URI password position (token:<token>@) and http_path is a query parameter.
PostgreSQL
PostgreSQL supports the full DAG. Lineage and usage read query statistics from the pg_stat_statements extension — enable it and grant pg_read_all_stats before expecting lineage/usage output. See PostgreSQL (Metadata) → Required permissions.
MongoDB
MongoDB supports metadata, profiler, and classification only — there is no lineage or usage. Fields are inferred from sampled documents. Filter Mongo databases with schema_filter at the catalog schema level, not database_filter.
Microsoft Fabric Warehouse
Microsoft Fabric connects only through a direct fabric:// URI with a Microsoft Entra service principal — there is no depot variant, and usage is not supported. Because spec.type is metadata, Nilus adds the internal metadata+ routing prefix automatically. The client ID goes in the username position, the projected client secret in the password position, a mandatory port (typically 1433) follows the Fabric hostname, the warehouse goes in the path, and the Microsoft Entra directory (tenant) ID — a GUID, not your DataOS tenant/workspace name — is passed as the required tenant_id query parameter. See Microsoft Fabric Warehouse (Metadata) → Authentication and prerequisites.
Fabric does not support the usage stage, so mode: deep renders a 4-node DAG (metadata, lineage, profiler, classification).
Microsoft Fabric Lakehouse
The Fabric Lakehouse uses the same service_type: fabric connector — point the URI at the Lakehouse's SQL analytics endpoint and put the lakehouse name in the path. You can project the SQL endpoint host itself from a secret (FABRIC_SQL_ENDPOINT) and reference it in the URI; Nilus resolves it before generating the catalog service ID. See Microsoft Fabric Lakehouse (Metadata). As with the Warehouse, Fabric does not support usage, so mode: deep renders a 4-node DAG (metadata, lineage, profiler, classification).
DataOS Lakehouse (Iceberg)
Validation Notes
Use
type: nilusandspec.type: metadatafor catalog / lineage / profiler / classification / usage extraction.modeis required and must beshallowordeep.shallowrunsmetadata+lineage;deepaddsprofiler,classification, andusage. A metadata resource withoutmodefails schema validation.source.options.service_typeis required. This guide documentssnowflake,databricks,postgres(aliaspostgresql),mongodb,fabric(Warehouse and Lakehouse), andlakehouse(aliasiceberg).Keep the customer-facing
source.optionsblock toservice_type,database_filter,schema_filter,table_filter,query_log_duration,result_limit, andthreads(parallel worker count — raise it to cut runtime on largeprofiler/usageworkflows). Don't addsource_table,stored_procedure_filter,classification_filter, or other lower-level engine knobs until the Nilus domain template exposes them.One Nilus resource yields one workflow. For
snowflake/databricks/postgres, that workflow is a 2-stage DAG inshallowand a 5-stage DAG indeep(metadata,lineage,profiler,classification,usage).fabric(Warehouse and Lakehouse) does not supportusage, so itsdeepDAG is 4 stages (metadata,lineage,profiler,classification).mongodbomitslineageandusage(metadataonly inshallow, 3-stagedeep);lakehouseis a 1-stage DAG in both modes. Don't create separate Nilus resources to get separate stages.Always set
schema_filter/table_filteron production scopes.database_filterdoes not expand a bound database — see How database_filter is evaluated. On MongoDB, filter Mongo databases withschema_filter.query_log_durationandresult_limitaffectlineage(both modes) andusage(deeponly). They're ignored bymetadata,profiler, andclassification.Metadata pipelines do not declare a
sink. The catalog target is configured at the DataOS metadata-service level — Nilus auto-attaches the catalog sink to every DAG node during translation.
Related Docs
Last updated
Was this helpful?