tolga
tolga

Reputation: 2800

Listing Kafka clusters and brokers

I try to develop a Kafka GUI on Django. I can list topics of brokers, partitions and clients using kafka-python.

Is a programmatic way to retrieve list of clusters and brokers?

I can save clusters and related brokers as database tables as an alternative.

Upvotes: 0

Views: 527

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191681

Use ClusterMetata.brokers()

You can only connect to one cluster at a time, so you need some other solution to find all Kafka clusters.

Alternatively, there's plenty of existing Kafka GUIs, most of which are built on JVM languages, however.

Upvotes: 1

Related Questions