# Using Operatr with Instaclustr Managed Kafka®

[Blog](/blog/)&gt;[Technology](/blog/category/technical/)&gt;Using Operatr with Instaclustr Managed Kafka® 

Using Operatr with Instaclustr Managed Kafka®
=============================================

November 04, 2019 | By [ Instaclustr ](https://www.instaclustr.com/blog/author/instaclustr/)

 

 

 

 



   [ ](https://x.com/intent/tweet?text=Using%20Operatr%20with%20Instaclustr%20Managed%20Kafka%C2%AE&url=https://www.instaclustr.com/blog/using-operatr-with-instaclustr-managed-kafka/) [ ](https://www.linkedin.com/shareArticle?mini=true&url=https://www.instaclustr.com/blog/using-operatr-with-instaclustr-managed-kafka/&title=&summary=Using%20Operatr%20with%20Instaclustr%20Managed%20Kafka%C2%AE&source=) 

Instaclustr’s Managed Kafka is compatible with a wide range of Kafka tools and add-ons. One really interesting, recently released tool we have come across is Operatr. This blog walks through the main functions of Operatr and how to use it with an Instaclustr Managed Kafka cluster.

What is Operatr
---------------

Operatr is a tool for viewing key metrics and useful information for operational users of Kafka. This tool will provide you with the following insights and features:

- The overall health of the cluster which can be used by the site reliability or DevOps team.
- Topic Level details such as where partitions are distributed across a cluster along with a chart showing you how data is distributed across those various partitions.
- Key consumer group information such as consumer lag and overall health of the consumers.
- Key performance metrics such a bytes in/out so you can properly manage or plan for scalability with your cluster.
- ACL user interface for easily viewing various access controls on the topic level.
- Integration with metrics tools or frameworks such as Rieman.
- Inspect individual messages in a Kafka Topic.

This tool is for Kafka Data Engineers and Kafka Administrators. While many of the basic and most essential functions of Operatr are available through the Instaclustr Console, it provides many additional features which may be useful to Instaclustr users such as the UI for working with topic ACLs, tools for understanding data distribution by partition and the ability to select and inspect individual messages from Kafka topics.

This article walks you through the process of setting up Operatr with Instaclustr Managed Kafka and some of the key features of the tool.

Why use Operativ.IO with your Kafka cluster
-------------------------------------------

Reason #1 → It takes 30 seconds to get working! Simply download the jar file and configure the environment variables as instructed below which is optimized for our managed cluster.

Reason #2 → Gain total visual awareness of all key Kafka metrics such as Consumer Lag and data usage on partition levels.

Reason #3 → No need to Set up JMX access or Zookeeper access, just connect to Kafka on the default port.

Reason #4 → All your data stays in Kafka internal topics, you never send your data out of the organization.

Setting up Operatr with Instaclustr Managed Kafka
-------------------------------------------------

You can download and install Operatr following the instructions on the Operatr website: <https://operatr.io/#/install>

### Step 0: Create a Kafka Cluster

If you have not yet used our platform before, you can easily create a Kafka cluster as follows:

1. Login or Signup with [instaclustr.com](https://console.instaclustr.com/user/signup).
2. Click create a cluster.
3. Select Kafka and the smallest instance type.
4. Don’t forget to hit this neat button to enable access to the cluster from your IP address.  
    ![](https://www.instaclustr.com/wp-content/uploads/2021/10/image1-768x312.png)
5. Finally, spin up the cluster.
6. Once the cluster is created, click on **connection info** tab and scroll down to see all the connection details such as the server connection details.

![](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Kafka-Connection-Info-768x393.png)

![Kafka Operatr](https://www.instaclustr.com/wp-content/uploads/2021/10/image6-768x387.png)

### Step 1: Create an instaclustr.env file with the required settings

The following env file will work with a basic cluster provisioned with the settings specified above.































BOOTSTRAP=&lt;broker1 Public IP&gt;:9092,&lt;broker1 Public IP&gt;:9092,&lt;broker1 Public IP&gt;:9092 SECURITY\_PROTOCOL=SASL\_PLAINTEXT SASL\_MECHANISM=SCRAM-SHA-256 SASL\_JAAS\_CONFIG=org.apache.kafka.common.security.scram.ScramLoginModule required username="ickafka" password="&lt;YOUR PASSOWRD HERE&gt;"; ALLOW\_TOPIC\_INSPECT=true TRIAL\_CODE=YOUR\_CODE

   1

2

3

4

5

6



  BOOTSTRAP=&lt;broker1 Public IP&gt;:9092,&lt;broker1 Public IP&gt;:9092,&lt;broker1 Public IP&gt;:9092

SECURITY\_PROTOCOL=SASL\_PLAINTEXT

SASL\_MECHANISM=SCRAM-SHA-256

SASL\_JAAS\_CONFIG=org.apache.kafka.common.security.scram.ScramLoginModule required username="ickafka" password="&lt;YOUR PASSOWRD HERE&gt;";

ALLOW\_TOPIC\_INSPECT=true

TRIAL\_CODE=YOUR\_CODE



   

 

 The required information (&lt;&gt; above) can be found on the Connection Info tab once your cluster is provisioned.

You can also provision a cluster with client to broker SSL encryption and schema registry in which case you should add the following settings to the env file:































SSL\_ENABLED\_PROTOCOLS=TLSv1.2,TLSv1.1,TLSv1 SSL\_TRUSTSTORE\_LOCATION=/ssl/truststore.jks SSL\_TRUSTSTORE\_PASSWORD=instaclustr SSL\_PROTOCOL=TLS SCHEMA\_REGISTRY\_URL=&lt;URL FROM CONNECTION INFO&gt; SCHEMA\_REGISTRY\_AUTH=URL

   1

2

3

4

5

6



  SSL\_ENABLED\_PROTOCOLS=TLSv1.2,TLSv1.1,TLSv1

SSL\_TRUSTSTORE\_LOCATION=/ssl/truststore.jks

SSL\_TRUSTSTORE\_PASSWORD=instaclustr

SSL\_PROTOCOL=TLS

SCHEMA\_REGISTRY\_URL=&lt;URL FROM CONNECTION INFO&gt;

SCHEMA\_REGISTRY\_AUTH=URL



   

 

 ### Step 2: Run Command

Operatr - Kafka - Run Command





























docker run -p 3000:3000 --env-file ./instaclustr.env operatr/operatr:latest

   1



  docker run -p 3000:3000 --env-file ./instaclustr.env operatr/operatr:latest



   

 

 ### Step 3: Check it out!

Navigate your browser window to <https://localhost:3000> and you will see the overall features of the application which is outlined below.

Feature Walkthrough
-------------------

### Overview Page:

![](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Overview-Page-1024x502.jpg)

This page is essentially your DevOps or Site reliability dashboard, it shows you everything you need to know to check the overall health of your cluster. This dashboard, as you can see, will show you data rate metrics, cluster size metrics, partition data distribution metrics, and finally key information on consumer lag.

### Broker

![Operatr - Feature Walkthrough - Broker](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Broker-1024x530.png)

![Operatr - Overall Performance of Broker Node](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Overall-Performance-of-Broker-Node.png)

This is your tactical screen to inspect the overall performance of a broker node. On this dashboard, you will readily see if any partitions are under-replicated and you will see the overall key metrics such as number of messages, disk usage, along with bytes/messages in/out in that specific broker.

### Topics:

![Operatr - Feature Walkthrough - Topics](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Topics-1024x509.png)

Data distribution diagram below

![Operatr - Feature Walkthrough - Data Distribution Diagram](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Data-Distribution-Diagram-300x237.png)

The first thing you see in the topic dashboard will be the overall distribution of data across the partitions in the topic, this is critical for determining if your partitioning or keying strategy is correct. Secondly, you will see key information such as data rates. Finally, a nice little checkbox on the right will show you if a partition is insync or not with the rest of a cluster.

### Data Inspector Tool:

![Operatr - Feature Walkthrough - Data Inspector Tool](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Data-Inspector-Tool-1024x463.png)

This dashboard will allow you to view individual messages on each topic, useful for debugging or gaining visibility of your topic level data

### Consumer Groups:

![Operatr - Feature Walkthrough - Consumer Groups](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Consumer-Groups-1024x647.png)

This dashboard will show you key information about a specific consumer group such as how many messages is the consumer in a consumer group lagging behind. You will be able to view consumer lag history with the charts at the top of the screen. Finally, you should be able to see the partition assignment for each member in the group.

### Security:

![Operatr - Feature Walkthrough - Security](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Security.png)

This dashboard gives you accessible visibility into ACL settings of Kafka which are usually hidden away from the average administrator behind some terminal commands. Now you can see which users can do what with which topic.

### Admin:

![Operatr - Feature Walkthrough - Admin](https://www.instaclustr.com/wp-content/uploads/2021/10/Operatr-Feature-Walkthrough-Admin-1024x517.png)

When you initially launch the jar application you can configure things such as:

- Sample rate for telemetry snapshots (default is every 1 minute)
- The tool will periodically collect configuration data from Kafka by reading the internal *admin* topics in Kafka (default is every 1 hour)
- Data retention period is default set to 24 hours
- Data retention metrics will determine how far back those pretty charts will go, currently, the default settings is 24 hours.
- You also have the option to select a Rieman server to send the data too.

 

 [ Add Instaclustr as a preferred source on Google ](https://google.com/preferences/source?q=instaclustr.com)



 

 ![mail icon]()#### Get the latest articles for open sourceIn your inbox

 <a class="btn btn-primary btn-popup text-dark" href="">Sign up now</a> 

 

 

 

  ### Related content

 [ Zero Downtime Migration to Instaclustr 

 

 Yes, we can migrate existing Cassandra clusters to Instaclustr without any downtime. Here's what to expect from the process... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/zero-downtime-migration-to-instaclustr/) 

 [ Workflow Comparison: Uber Cadence vs Netflix Conductor 

 

 When choosing what’s right for your company’s opensource workflow needs it is important to know the difference and similarities ... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/workflow-comparison-uber-cadence-vs-netflix-conductor/) 

 [ Will Your Cassandra Database Project Succeed?: The New Stack 

 

 Open source Apache Cassandra® continues to stand out as an enterprise-proven solution for organizations seeking high availability... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/will-your-cassandra-database-project-succeed-the-new-stack/) 

 

  <a class="close-modal" href="">×</a>Sign upto ourNewsletter
-----------------------
