Loading

Kafka Connect Integration

Version 0.1.0 (View all)
Subscription level
What's this?
Basic
Developed by
What's this?
Elastic
Ingestion method(s) Jolokia
Minimum Kibana version(s) 9.3.0
The Kafka Connect integration v0.1.0 is in beta

To use beta integrations, go to the Integrations page in Kibana, scroll down, and toggle on the Display beta integrations option.

This integration collects metrics from Kafka Connect using the Jolokia JMX bridge.

This integration has been tested with Kafka Connect version 2.8.x and 3.x, but should work with any version that exposes JMX metrics using Jolokia.

You need Elasticsearch to store and search your data and Kibana for visualizing and managing it. You can use our hosted Elasticsearch Service on Elastic Cloud, which is recommended, or self-manage the Elastic Stack on your own hardware.

Kafka Connect must be configured with the Jolokia JVM agent to expose JMX metrics over HTTP. Add the following to your Kafka Connect startup:

-javaagent:/path/to/jolokia-jvm-agent.jar=port=8778,host=0.0.0.0
		

The worker data stream collects metrics related to the Kafka Connect worker, including connector and task counts, startup statistics, and rebalance information. These metrics are collected from the kafka.connect:type=connect-worker-metrics and kafka.connect:type=connect-worker-rebalance-metrics MBeans.

ECS Field Reference

Refer to the following document for detailed information on ECS fields: https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html

The connector data stream collects metrics related to individual connectors. These metrics are collected from the kafka.connect:connector=*,type=connector-metrics MBean.

The task data stream collects metrics related to connector tasks, including batch processing, offset commits, error handling, and sink/source task metrics. These metrics are collected from the following MBeans:

  • kafka.connect:connector=*,task=*,type=connector-task-metrics
  • kafka.connect:connector=*,task=*,type=sink-task-metrics
  • kafka.connect:connector=*,task=*,type=source-task-metrics
  • kafka.connect:connector=*,task=*,type=task-error-metrics

The client data stream collects Kafka client metrics from the Kafka Connect worker, including connection, I/O, and request/response metrics. These metrics are collected from the kafka.connect:type=connect-metrics,client-id=* MBean.

This integration does not currently collect logs. It focuses on metrics collection using Jolokia.