> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/devx/6.2/deployment/configuration/agent/automation/kafka.md).

# Kafka

This page describes how to connect the Lenses Agent to your Kafka brokers.

The Lenses Agent can connect to any Kafka cluster or service exposing the Apache Kafka APIs and supporting the authentication methods offered by Apache Kafka.

{% hint style="info" %}
For JMX see [Infrastructure JMX Metrics](/latest/devx/6.2/deployment/configuration/agent/automation/jmx-metrics.md).
{% endhint %}

{% hint style="danger" %}
Ensure **auto.create.topics.enable=false** to avoid topic deletion issues.
{% endhint %}

<table data-view="cards" data-full-width="false"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Apache Kafka</strong></td><td>Connect the Lenses Agent to your Apache Kafka cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-df4587826e708074b3788097c7f9f07a2d7d55c1%2FKafka%20--%20Apache.png?alt=media">Kafka -- Apache.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/apache-kafka.md">Apache Kafka</a></td></tr><tr><td><strong>Aiven</strong></td><td>Connect the Lenses Agent to your Aiven Kafka cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-a628b2c2115d1d9611018b796c52ef75a5b2b91a%2FKafka%20--%20Aiven.png?alt=media">Kafka -- Aiven.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/aiven.md">Aiven</a></td></tr><tr><td><strong>AWS MSK</strong></td><td>Connect the Lenses Agent to your AWS MSK cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-528b9b3161640be5779dbb67b750dca8f5a4a5c4%2FKafka%20--%20AWS.png?alt=media">Kafka -- AWS.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/aws-msk.md">AWS MSK</a></td></tr><tr><td><strong>AWS MSK Serverless</strong></td><td>Connect the Lenses Agent to your AWS MSK Serverless.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-528b9b3161640be5779dbb67b750dca8f5a4a5c4%2FKafka%20--%20AWS.png?alt=media">Kafka -- AWS.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/aws-msk-serverless.md">AWS MSK Serverless</a></td></tr><tr><td><strong>Azure Event Hubs</strong></td><td>Connect the Lenses Agent to your Azure Event Hubs.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-e331e77f2818fa3929d0a51489a5ff3cc84309fe%2FConnectors%20--%20Azure%20Event%20Hubs.png?alt=media">Connectors -- Azure Event Hubs.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/azure-eventhub.md">Azure EventHubs</a></td></tr><tr><td><strong>Azure HDInsight</strong></td><td>Connect the Lenses Agent to your Azure HDInsight cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-cccdc1d3793bb6b426e86000749f1787036046af%2FKafka%20--%20HD%20Insight.png?alt=media">Kafka -- HD Insight.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/azure-hdinsight.md">Azure HDInsight</a></td></tr><tr><td><strong>Confluent Cloud</strong></td><td>Connect the Lenses Agent to your Confluent Cloud.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-4d7d28258e1b457158f12936a5bee757266a0eba%2FKafka%20--%20Confluent.png?alt=media">Kafka -- Confluent.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/confluent-cloud.md">Confluent Cloud</a></td></tr><tr><td><strong>Confluent Platform</strong></td><td>Connect the Lenses Agent to your Confluent Platform (on premise) cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-4d7d28258e1b457158f12936a5bee757266a0eba%2FKafka%20--%20Confluent.png?alt=media">Kafka -- Confluent.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/confluent-platform.md">Confluent Platform</a></td></tr><tr><td><strong>IBM Event Streams</strong></td><td>Connect the Lenses Agent to your IBM Event Streams cluster.</td><td><a href="https://3629020462-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoxgTiTb4MZT9IGHAYUTn%2Fuploads%2Fgit-blob-5231e52550107eaa14e70fa21c294fcc378e070f%2FKafka%20--%20IBM.png?alt=media">Kafka -- IBM.png</a></td><td><a href="/latest/devx/6.2/deployment/configuration/agent/automation/kafka/ibm-event-streams.md">IBM Event Streams</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lenses.io/latest/devx/6.2/deployment/configuration/agent/automation/kafka.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
