Run Kafka Manager behind a proxy

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

Used:   nginx  docker v1.10  kafka-manager 

I have two ramp up for two data-centers each a Apache Kafka cluster. Maintaining the cluster with the Kafka Manager GUI by Yahoo is pretty comfortable. Since both data-centers are protected by firewall, a web-proxy must forward it for my remote access.

The basic problem is, that the Kafka Manager GUI has the context path / and forwarding it to the url /kafka-manager/ will cause a malfunction.

In the application.properties you can change it and I wrote my nginx rule.

One instance of Kafka Manager is enough to maintaining both Kafka clusters. For a high availability scenario, both data centers have an instance running. If one data center is down, e.g. power outage, the other instance is still reachable for administering the cluster. The risk though is pretty low, since you can use the builtin Kafka cli tools to administrate the cluster and topics.

Please remember the terms for blog comments.