marmotdata/kafka
Discover Kafka topics from Kafka clusters
Marmot plugin for Apache Kafka. Discovers topics from Kafka clusters, captures topic configurations and partition details and optionally enriches assets with schemas from a Confluent Schema Registry.
Marmot plugins are standalone binaries that the Marmot host launches on demand via go-plugin and talks to over gRPC. It is built on the Marmot plugin SDK.
Looking for a managed service? Marmot has dedicated plugins for Confluent Cloud and Redpanda with pre-configured defaults.
Connection Examples
Self-Hosted with SASL
bootstrap_servers: "kafka-1.prod.com:9092,kafka-2.prod.com:9092"
client_id: "marmot-discovery"
authentication:
type: "sasl_ssl"
username: "your-username"
password: "your-password"
mechanism: "SCRAM-SHA-512"
tls:
enabled: true
ca_cert_path: "/path/to/ca.pem"
cert_path: "/path/to/client.pem"
key_path: "/path/to/client-key.pem"
Self-Hosted with mTLS
bootstrap_servers: "kafka-1.internal:9093"
client_id: "marmot-discovery"
tls:
enabled: true
ca_cert_path: "/etc/kafka/ca.pem"
cert_path: "/etc/kafka/client.pem"
key_path: "/etc/kafka/client-key.pem"
Local development (no auth)
bootstrap_servers: "localhost:9092"
client_id: "marmot-discovery"
tls:
enabled: false
Schema Registry
Enable Schema Registry to enrich discovered topics with their value and key schemas:
schema_registry:
enabled: true
url: "https://schema-registry.prod.com"
config:
basic.auth.user.info: "sr-key:sr-secret"
Schemas for subjects matching {topic}-value, {topic}-key or other {topic}-* patterns are pulled from the registry and attached to the topic asset.
Development
Build and test:
make build
make test
To run a local build inside Marmot:
make install
This copies the binary to ~/.marmot/plugins/, the directory Marmot scans for local plugins. A local plugin shadows the released core plugin with the same name: Marmot skips downloading it and loads your build instead. Delete the binary from ~/.marmot/plugins/ to fall back to the released version.
If your Marmot runs with a custom plugins directory (MARMOT_PLUGINS_DIR), set the same value for make install so both point at the same place.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Kafka 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
bootstrap_serversText RequiredComma-separated list of bootstrap servers
client_idTextClient ID for the consumer
authenticationGroup of settingsAuthentication configuration
typeOne ofAuthentication type: none, sasl_plaintext, sasl_ssl, ssl
usernameTextSASL username
passwordSecretSASL password
mechanismOne ofSASL mechanism: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
consumer_configTextAdditional consumer configuration
client_timeout_secondsNumberRequest timeout in seconds
tlsGroup of settingsTLS configuration
enabledYes or noWhether to enable TLS
cert_pathTextPath to TLS certificate file
key_pathTextPath to TLS key file
ca_cert_pathTextPath to TLS CA certificate file
skip_verifyYes or noSkip TLS verification
schema_registryGroup of settingsSchema Registry configuration
urlTextSchema Registry URL
configTextAdditional Schema Registry configuration
enabledYes or noWhether to use Schema Registry
skip_verifyYes or noSkip TLS certificate verification
include_partition_infoYes or noWhether to include partition information in metadata
include_topic_configYes or noWhether to include topic configuration in metadata
Assets emitted
Metadata this plugin attaches to each discovered asset.
Topic
The metadata fields Kafka emits for a topic asset.