marmotdata/kafkaconnect
Discover connectors, tasks and topics from Kafka Connect clusters with lineage to the systems they move data between
The Kafka Connect plugin discovers connectors, their tasks and the topics they move data through from a Kafka Connect cluster, and links each connector to the tables, collections and buckets it reads or writes.
It talks to the Connect REST API (self-hosted workers and Confluent Cloud) with optional basic auth.
Assets
| Type | Name | Provider |
|---|---|---|
| Pipeline | connector name | Kafka Connect |
| Task | task-<id>, MRN <connector>.task-<id> |
Kafka Connect |
| Topic | topic name | Kafka |
Topics use the identity the Kafka plugin gives them, so a topic both plugins see is one asset with two sources.
Lineage
- Pipeline CONTAINS Task
- Source connectors: Table FEEDS Pipeline, Pipeline PRODUCES Topic
- Sink connectors: Topic FEEDS Pipeline, Pipeline PRODUCES Table, Collection, Bucket or Container
Table, collection and bucket edges are built from the connector config and point at the asset the owning Marmot plugin creates; this plugin never creates those assets itself. Resolvers exist for Debezium (PostgreSQL, MySQL, SQL Server, MongoDB, Oracle) and the matching Confluent Cloud CDC connectors, the Confluent JDBC source and sink, the S3, GCS and Azure Blob sinks, the Snowflake, BigQuery and Elasticsearch sinks, and the MongoDB source and sink. Other connector classes get topic edges only.
Topics come from the worker's active topics endpoint (KIP-558, Kafka 2.5+) when it has records for the connector, otherwise from the config: topics, topic, kafka.topic and each family's naming rule, with RegexRouter transforms applied.
Zones
Set zone when you catalogue more than one Connect cluster, which puts it in the MRN of every connector and task.
The tables, collections, buckets and topics a connector references belong to other plugins, so they are named the way those plugins name them (for example <database>.<schema>.<table> for PostgreSQL). Each reference carries the host and port from the connector config (connection.url, database.hostname and database.port, connection.uri) as a hint, and Marmot picks the zone that owns that address. Topics use bootstrap_servers, or a connector's own bootstrap.servers override. When the address is not enough, connector_map names the zone outright, as connector name, then provider, then zone:
connector_map:
orders-sink:
PostgreSQL: warehouse-eu
Kafka: prod
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Kafka Connect 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
hostText RequiredKafka Connect REST URL (e.g. http://connect:8083)
usernameTextUsername for basic authentication
passwordSecretPassword for basic authentication
verify_sslYes or noWhether to verify the TLS certificate of the Connect REST endpoint
include_tasksYes or noWhether to discover connector tasks as Task assets
include_topicsYes or noWhether to discover the topics connectors read and write as Topic assets
include_configYes or noWhether to store each connector's config in its metadata, with credentials masked
discover_lineageYes or noWhether to link connectors to the topics and datasets they move data between
bootstrap_serversTextBootstrap servers of the Kafka cluster behind this Connect cluster, for example broker:9092. Lets Marmot match the topics to the right Kafka zone
connector_mapTextMarmot zone of the systems a connector reads or writes, as connector name to provider to zone, for example orders-sink: {PostgreSQL: prod-eu}. Takes precedence over the address in the connector's config
Assets emitted
Metadata this plugin attaches to each discovered asset.
Pipeline
The metadata fields the plugin emits for a connector's Pipeline asset.
Task
The metadata fields the plugin emits for a Task asset.
Topic
The metadata fields the plugin emits for a Topic asset.