---
title: Litmus Edge Manager Kafka Broker monitoring with Lenses
slug: solutions/litmus-edge-manager-kafka-broker-monitoring-with-lenses
docTags: 
createdAt: 2023-08-14T09:17:57.217Z
---

## Overview

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/2Buade5LvHIjDsAu1ThBy_functiondiagramsolutions-lensesdrawio.png)

# How to prepare Litmus Edge Manager for Kafka Client connection

This section will provide instructions on how to prepare a Litmus Edge Manager to accept a connection using Kafka over plain TCP.

## Requirements

A Litmus Edge Manager is setup.

## Guide to prepare Litmus Edge Manager for Client connection

The guide on how to prepare Litmus Edge Manager to accept client connections over Kafka can be viewed in the [Litmus Edge Manager Kafka](https://docs.litmus.io/edgemanager/lem-admin-console/product-features/integration/kafka) documentation.

# How to connect Lenses to Litmus Edge Manager Kafka Broker over plain TCP&#x20;

This section will provide instructions on how to connect Lenses to Litmus Edge Manager Kafka Broker over plain TCP.

## Requirements

A deployment of Lenses is available.

How to deploy Lenses is covered by the Lenses.io [documentation](https://docs.lenses.io).

## Step by Step guide to connect Lenses.io to Litmus Edge Manager Kafka Broker

This guide will provide instructions on how to connect Lenses.io with your Litmus Edge Manager Kafka Broker over plain TCP.

**Note: This guide will not cover all options like using the Lenses CLI.&#x20;**

**Important: This guide will cover connecting to a Kafka Broker on a new Lenses.io deployment.**

This guide will not provide instructions on how to manage a Lenses.io or actions not related to connecting Lenses with Litmus Edge Manager.

**Step 1:**
Start to add your Litmus Edge Manager Kafka Broker to connect.

Example: New Lenses deployment

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/1EyDO1oGBFsNsMGYk7-Mn_image.png)

**Step 2:**
Copy your Litmus Edge Manager Kafka Broker Bootstrap Server

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/pZMwlMWssMsWhdoZ2dVcb_image.png)

**Step 3:**
Paste the server into the Lenses Bootstrap Server box

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/wclPhD3aEzgxUQwtnwdrd_image.png)

**Step 4:**
Select the **SASL PLAINTEXT** option for the *Security Protocol.*

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/i9Maa3ozkAmMQAC3qW28o_image.png)

**Step 5:**
Select the **PLAIN** option for the *SASL Mechanism.*

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/2YLTEwBZFkk19D3DPOAK0_image.png)

**Step 5:**
Enter the Kafka user which was previously created on Litmus Edge Manager as th&#x65;**&#x20;username** in the *JAAS Configuration.*

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/0FJa1JZhZosqk9XZovWHY_image.png)

Kafka user list on Litmus Edge Manager.

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/XAhQUhHyH63L0jLy1D-dj_image.png)

**Step 6:**
Enter the password for the Kafka user which was previously created on Litmus Edge Manager as th&#x65;**&#x20;password&#x20;**&#x69;n the *JAAS Configuration.*

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/GB2ef9NNDWFG1bGs1JVc2_image.png)

**NOTE: This configuration will be hidden by lenses once the configuration is saved.**

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/w_lIU-zxDI0BfiL3x16gW_image.png)

**Step 7:**
Press the *Test Kafka Brokers* button.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/oqKmXB_e7vtpT-ikZAx9M_image.png)

**Note:**
If all entries are correct, the connection is successfully validated.

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/iJlbPzgu5sU1BPEdYzApi_image.png)

**Step 8:**
Press the *Next* button.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/4PJsaCceAif9ZvnPFXNH2_image.png)

**Step 9:**
Disable Broker Metrics and press the *Next* button.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/tHxguKdIHMWTVh668TTqU_image.png)

**Note:&#x20;**&#x43;urrently Litmus Edge Manager doesn't publish Broker Metrics via JMX.

**Step 10:**
Enter and validate your License and press the *Next* button.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/SqlWf3C3cy32q-o6SkjA-_image.png)

**Step 11:**
Press the *Save & Boot Lenses* button.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/sPpexUeJH49X7frTQTVdC_image.png)

**Step 12:**
Wait to be redirected.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/gDqU9fR4hophixEQYcXtw_image.png)

**Note:&#x20;**&#x59;ou will be redirected to the dashboard.

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/HOlRQlsAyqDMhtySP1qqc_image.png)

## Monitor Litmus Edge Manager Broker performance

Through *Explore* can the user monitor the performance of all the Kafka topics published by Litmus Edge Manager such as Records/sec or Number of Records.

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/88_9otgLMOp1i0QALeAne_image.png)

