Can i use Lenses to get visibility into Azure Event Hubs like I can with Kafka?
Yes! Azure Eventhub is now compatible with Kafka API Introduction to Apache Kafka in Event Hubs on Azure Cloud - Azure Event Hubs | Microsoft Learn and can be successfully connected to Lenses just like a Kafka cluster.
This means you can use Lenses to see your topics (Event Hubs), your messages, consumers, etc…
To set up lenses for Event Hubs namespace, got to Admin, Connections-> Kafka.
the setup should be :
bootstrapserver : NAMESPACENAME.servicebus.windows.net:9093
sasl.mechanism=PLAIN
protocol : SASL_SSL
sasl.jaas.config=
org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString"
password="sb://namespace.servicebus.windows.net/;SharedAccessKeyName=XXX;SharedAccessKey=YYYYY";
Note : for password : copy the connection string from Event Hubs console
You will see your topics and can run SQL queries against them, manage permissions and everything else you can do with Kafka.