# Kafka

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](https://docs.lenses.io/latest/deployment/configuration/agent/automation/jmx-metrics).
{% 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="kafka/apache-kafka">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="kafka/aiven">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="kafka/aws-msk">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="kafka/aws-msk-serverless">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="kafka/azure-eventhub">azure-eventhub</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="kafka/azure-hdinsight">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="kafka/confluent-cloud">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="kafka/confluent-platform">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="kafka/ibm-event-streams">ibm-event-streams</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
