Skip to main content
This section provides guides and references to use the KafkaConnect connector. Configure and schedule KafkaConnect metadata workflows from the Collate UI:

Requirements

KafkaConnect must meet the following version requirement before you configure the connector.

KafkaConnect Versions

Collate is integrated with KafkaConnect up to version 3.6.1 and will continue to work for future kafkaconnect versions. The ingestion framework uses KafkaConnect python client to connect to the KafkaConnect instance and perform the API calls

Metadata Ingestion

To ingest metadata from KafkaConnect, you need to create a service connection. The service connects KafkaConnect with Collate. Once you create a service, Collate automatically starts ingesting metadata.

Step 1: Add New Service

Create the service as follows:
  1. In the left navigation, click Connections.
  2. On the Connections page, click Add New Service.
Add New Service

Step 2: Select a Service and Connector

From the service type dropdown, select Pipeline Services, then click the KafkaConnect connector tile. Select Service

Step 3: Add Service Name and Description

  • Enter a unique, descriptive Service Name. Collate identifies services by their service name. Enter a name that distinguishes this deployment from other KafkaConnect services you are ingesting metadata from.
  • Optional: Enter a Description for the service.
Add New Service Name
Note: The service name can’t be changed after you set it.

Step 4: Configure Connection Options

Specify where ingestion runs, provide your source credentials, and verify the connection.

Select Ingestion Runner

Select an Ingestion Runner: the runner where the ingestion pipeline will execute. Add Name and Select Ingestion Runner

Enter Connection Details

Enter the connection details for KafkaConnect. The right-hand panel in the UI displays inline help for each field. Configure Service Connection
  • Host and Port: The hostname or IP address of the Kafka Connect worker with the REST API enabled, for example, https://localhost:8083 or https://127.0.0.1:8083 or https://<yourkafkaconnectresthostnamehere>
  • Kafka Connect Config: Collate supports username/password.
    • Basic Authentication
      • Username: Username to connect to Kafka Connect. This user should be able to send request to the Kafka Connect API and access the Rest API GET endpoints.
      • Password: Password to connect to Kafka Connect.
  • verifySSL: Whether SSL verification should be performed when authenticating.
  • Kafka Service Name: The Service Name of the Ingested Kafka instance associated with this KafkaConnect instance.

Test Connection

  1. Click Test Connection to verify the credentials.
  2. After the test succeeds, click Save.
Test Connection

Step 5: Configure Ingestion Options

In the What to Ingest step, use filter patterns to control which assets Collate ingests from your pipeline service. Filter rules match pipeline names using the following match types.

How Filter Patterns Work

  • Include: Add one or more comma-separated values. Each value uses one of the following match types. Collate ingests only assets whose names match at least one rule. Leave blank to include all assets.
  • Exclude: Add one or more comma-separated values. Each value uses one of the following match types. Collate skips any asset whose name matches a rule. Leave blank to exclude nothing.
Rules match asset names using one of five match types:
  • contains: matches any name containing the value. For example, sales matches my_sales_data and sales_2024.
  • starts with: matches names beginning with the value. For example, prod_ matches prod_db and prod_schema.
  • ends with: matches names ending with the value. For example, _raw matches events_raw and logs_raw.
  • is exactly: matches the exact name only. For example, analytics matches only analytics.
  • matches regex: matches names using a regular expression. For example, ^prod_.*_v\d+$ matches prod_events_v1.
When both Include and Exclude are set, Exclude takes priority.
Tip: Leave the filter pattern empty to ingest all pipelines available in the source.

Filter Options

The Pipeline section includes the following filter options:
  • Pipeline: Controls which pipelines (DAGs, jobs, or workflows) Collate ingests from the source.
This section provides the following controls:
  • Scan Mode: Choose between the following scan modes:
    • Scan all: Ingests every asset of that type the connector can access. This is the default.
    • Only specific: Enables include rules so only assets matching at least one rule are ingested.
  • Exclude system toggle: Use this toggle to filter out system-reserved names defined by the connector for that asset type.
  • Always exclude: Add permanent exclusion rules (shown in red). Assets matching these rules are never ingested, regardless of include rules.
  • Preview: Shows a real-time summary of what will be in scope based on your current rules.
  • Include rules: In Only specific mode, click + Add to define a rule. Added rules appear as chips. An asset is included if it matches any rule.
Note: Collate copies the filter patterns into the Metadata Agent when it creates the agent. Changing the filters on an existing service connection doesn’t update an agent that already exists. To change filters later, edit the existing agent’s What to Ingest settings, or create a new agent.
Tip: If AutoPilot is enabled, lineage between pipeline tasks and data assets is tracked automatically after the first metadata ingestion completes.

Step 6: Create & Deploy

Click Create & Deploy to deploy the agent and start the first metadata ingestion run. Collate saves the service configuration and immediately begins pulling metadata from the source. To monitor ingestion progress or view the service you just added, go to Connections in the left navigation and select your service.

Configure Metadata Agent and Schedule Ingestion

The Metadata Agent extracts pipelines, tasks, and other structural metadata from your source and keeps your Collate catalog in sync. It powers discovery, lineage, and governance across your data assets. When you click Create & Deploy, Collate automatically deploys a Metadata Agent for this service and triggers the first ingestion run. View its status and run history from the Agents tab on the service detail page. To configure the additional Metadata Agent and schedule ingestion, follow these steps:
  1. In the left navigation, click Connections and select your service.
  2. Click the Agents tab.
  3. Click Add Agent and select Metadata from the dropdown. Add Metadata Agent For some services, the dropdown is not available and clicking Add Agent takes you directly to the agent configuration page.
  4. On the Configure Ingestion page, do the following and click Next.
    • Name this Ingestion: Enter a unique, recognizable name for this ingestion pipeline. Name this Ingestion
    • Owners: Use the edit icon next to Owners to select the users and teams that own this agent. Collate fills the field with the owners of the service. If the service has no owners, Collate adds you. The agent needs at least one owner, so the field is required. To change the owners of an existing agent, you need permission to edit owners. Owners
    • Agent Setup: Configure the core parameters for this agent. The following fields are available: Agent Setup
    • Filter Patterns: Apply include or exclude rules to scope which pipelines this agent ingests. These follow the same filter options described in Step 5. Filter Patterns
    • Scope & Behaviour: Control what metadata to include and how to handle deletions. Toggle each option on or off based on your needs: Scope & Behaviour
  5. On the Schedule Interval page, set when the agent runs:
    • Schedule: Choose a preset interval (Hourly, Daily, Weekly, Monthly) or enter a custom cron expression.
    • On-Demand: No automatic schedule; trigger the agent manually when needed.
    Schedule Interval
  6. Click Add to deploy the agent.

Displaying Lineage Information

Steps to retrieve and display the lineage information for a Kafka Connect service.
  1. Ingest Kafka Messaging Service Metadata: Identify the Kafka messaging service associated with the Kafka Connect service .Ensure all connected topics are comprehensively ingested.
  2. Ingest Source and Sink Database/Storage System Metadata: Identify both the source and sink database or storage systems used by the Kafka Connect service. Ingest metadata for these database or storage systems
  3. Ingest Kafka Connect Service Metadata: Finally, Ingest your Kafka Connect service. By successfully completing these steps, the lineage information for the service will be displayed.
Kafkaconnect Lineage

Snowflake Sink Lineage

For each Kafka topic a Snowflake sink connector consumes, Collate builds lineage to the Snowflake table that receives it. It reads the target from the connector’s own configuration and resolves it with the same naming rules the Snowflake Kafka connector applies. Lineage is supported for these connector classes:
  • SnowflakeSink, the managed connector on Confluent Cloud
  • com.snowflake.kafka.connector.SnowflakeSinkConnector, the self-managed connector
  • com.snowflake.kafka.connector.SnowflakeStreamingSinkConnector, the self-managed connector from version 4.0

How the Target Table Is Named

A topic listed in snowflake.topic2table.map lands in the table the map names. Regular expression keys are supported, including group substitution when snowflake.topic2table.map.regex.replacement is true. For any other topic, the table name comes from the topic name:
  • SnowflakeSink and SnowflakeSinkConnector: A topic that’s a valid Snowflake identifier becomes a table of the same name in uppercase. In any other topic name, invalid characters become underscores and a hash suffix is appended, so web.clicks-v2 lands in WEB_CLICKS_V2_1470743940.
  • SnowflakeStreamingSinkConnector: The table keeps the topic name exactly, including its case. With snowflake.compatibility.enable.autogenerated.table.name.sanitization set to true, the naming rules of SnowflakeSink and SnowflakeSinkConnector apply instead.
Snowflake uppercases any name that isn’t in double quotes. That applies to table names in snowflake.topic2table.map, and to snowflake.database.name and snowflake.schema.name, which the connector passes to Snowflake unquoted. A name in double quotes keeps its case.

How the Snowflake Service Is Matched

One Snowflake account is often ingested as several Collate services, so the connector configuration alone doesn’t say which service holds a table. Collate matches services by account:
  • It checks every Snowflake service whose Account matches the account in the connector’s snowflake.url.name. The comparison ignores case, the .snowflakecomputing.com and .privatelink suffixes, and the difference between underscores and hyphens.
  • If Db Service Names in the Kafka Connect Metadata Agent lists some of those services, it checks only the listed ones.
  • If no service’s account matches, it checks the Snowflake services listed in Db Service Names.
Collate writes lineage only when exactly one of the checked services holds the table under its exact database, schema, and table name. If none or several of them do, it writes no lineage for that topic and logs a warning naming the table. It never links a topic to a same-named table in a service it didn’t check. For more information, see Snowflake Sink Lineage Is Missing. An account has two identifier forms: an organization and account name such as myorg-myaccount, and an account locator such as xy12345.us-east-1. Both identify the same account, but Collate can’t match one form against the other. Give each Snowflake service’s Account the form the connector’s snowflake.url.name uses. If no service’s Account matches, list the service that holds the tables in Db Service Names instead. That works only while no service matches. Once one does, only the matching services are checked.

How Columns Are Mapped

Each top-level topic field maps to the column of the same name, ignoring case. A nested record lands in a single VARIANT column. When the connector applies a Flatten transform, each nested field maps to its flattened column instead.

Supported Connectors

Currently, the following source and sink connectors for Kafka Connect are supported for lineage tracking:
  • MySQL
  • PostgreSQL
  • MSSQL
  • MongoDB
  • Snowflake (sink only)
  • Amazon S3 For these connectors, lineage information can be obtained provided they are configured with a source or sink and the corresponding metadata ingestion is enabled.

Missing Lineage

If lineage information is not displayed for a Kafka Connect service, follow these steps to diagnose the issue.
  1. Kafka Service Association: Make sure the Kafka service that the data is being ingested from is associated with this Kafka Connect service. Additionally, verify that the correct name is passed on in the Kafka Service Name field during configuration. This field helps establish the lineage between the Kafka service and the Kafka Connect flow.
  2. Source and Sink Configuration: Verify that the Kafka Connect connector associated with the service is configured with a source and/or sink database or storage system. Connectors without a defined source or sink cannot provide lineage data.
  3. Metadata Ingestion: Ensure that metadata for both the source and sink database/storage systems is ingested and passed to the lineage system. This typically involves configuring the relevant connectors to capture and transmit this information.
  4. Snowflake Service Match: For a Snowflake sink, make sure the target table is ingested in a Snowflake service whose Account matches the connector’s snowflake.url.name. If no service’s Account matches, list the service in Db Service Names instead. For more information, see Snowflake Sink Lineage.

Troubleshooting

Kafka Connect Troubleshooting

Learn more about how to troubleshoot common Kafka Connect connector issues and resolve configuration or ingestion errors.