For the complete documentation index, see llms.txt. This page is also available as Markdown.

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: metadata

A 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.

Supported sources. Metadata pipelines are documented here for Snowflake, Databricks, PostgreSQL, MongoDB, Microsoft Fabric Warehouse, Microsoft Fabric Lakehouse, and DataOS Lakehouse (Iceberg). Not every source supports every stage: Microsoft Fabric has no usage stage (deep = metadata, lineage, profiler, classification), MongoDB has no lineage or usage, and DataOS Lakehouse runs metadata only. See each connector page for the exact stage matrix.

mode (shallow or deep) is required on every metadata pipeline. You do not set source_table on a metadata resource — Nilus hardcodes it per DAG node. The source.options block accepts only the seven fields shown in these samples (service_type, database_filter, schema_filter, table_filter, query_log_duration, result_limit, threads); anything else is rejected at schema validation.

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.

Depot-backed, shallow (inventory + lineage only)

A shallow pipeline keeps the source inventory and lineage current without the heavier profiling, classification, and usage scans. It is lighter, so it suits a tighter schedule. Pair it with a less frequent deep pipeline when you also need the full enrichment.

name: snowflake-metadata-shallow
version: v1alpha
type: nilus
tags: [nilus, metadata]
spec:
  type: metadata
  mode: shallow
  compute: comet-compute
  schedule:
    crons:
      - "0 * * * *"
    concurrencyPolicy: Forbid
  source:
    address: dataos://snowflakemetadatadepot?purpose=rw
    options:
      service_type: snowflake
      database_filter:
        includes: ["PROD_DB"]
      schema_filter:
        includes: ["^MODEL", "^GOLD_"]
        excludes: ["^TMP_"]
      query_log_duration: 1
      result_limit: 10000

This resource produces a 2-node DAG: snowflake-metadata-shallow-metadata (root) → snowflake-metadata-shallow-lineage.

Direct URI (no depot)

Use the direct snowflake:// URI when the Snowflake account is not depot-backed. Because spec.type is metadata, Nilus adds the internal metadata+ routing prefix automatically. Project credentials through spec.use.projection.

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)

Metadata only

When service_type: lakehouse, the rendered workflow contains only the metadata DAG node in both modes — lineage, profiler, classification, and usage stages are skipped at template-render time. mode is still required by the schema (set shallow), but it does not change the rendered DAG. query_log_duration and result_limit have no effect because the stages that consume them aren't generated.

Validation Notes

  • Use type: nilus and spec.type: metadata for catalog / lineage / profiler / classification / usage extraction.

  • mode is required and must be shallow or deep. shallow runs metadata + lineage; deep adds profiler, classification, and usage. A metadata resource without mode fails schema validation.

  • source.options.service_type is required. This guide documents snowflake, databricks, postgres (alias postgresql), mongodb, fabric (Warehouse and Lakehouse), and lakehouse (alias iceberg).

  • Keep the customer-facing source.options block to service_type, database_filter, schema_filter, table_filter, query_log_duration, result_limit, and threads (parallel worker count — raise it to cut runtime on large profiler / usage workflows). Don't add source_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 in shallow and a 5-stage DAG in deep (metadata, lineage, profiler, classification, usage). fabric (Warehouse and Lakehouse) does not support usage, so its deep DAG is 4 stages (metadata, lineage, profiler, classification). mongodb omits lineage and usage (metadata only in shallow, 3-stage deep); lakehouse is a 1-stage DAG in both modes. Don't create separate Nilus resources to get separate stages.

  • Always set schema_filter / table_filter on production scopes. database_filter does not expand a bound database — see How database_filter is evaluated. On MongoDB, filter Mongo databases with schema_filter.

  • query_log_duration and result_limit affect lineage (both modes) and usage (deep only). They're ignored by metadata, profiler, and classification.

  • 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.

Last updated

Was this helpful?