How to work with Kpow and KafScale
Kpow
Kpow is a web UI for Apache Kafka made by Factor House. You use it to look at topics and messages, watch consumer lag and manage consumer groups. The free Community Edition runs as one Docker container. It covers up to 3 clusters and 10 users, and needs a free license key from the Factor House site.
Tested with Kpow Community Edition 97.1 against KafScale v2.2.0 with 2 brokers and 2 proxy replicas.
Get it running
You need:
- A free Kpow Community license. The license email has
LICENSE_ID,LICENSEE,LICENSE_EXPIRY,LICENSE_CODEandLICENSE_SIGNATURE. - A KafScale v2.2.0 cluster with the proxy on. Point Kpow at the proxy, like any other external client. Brokers advertise cluster-internal addresses.
- Docker and about 2 GB of memory for the container.
Keep the license out of your shell history and process list. Put the settings in a file only you can read and pass it with --env-file. Don’t use -e for the license values.
umask 077
cat > kpow.env <<'ENV'
LICENSE_ID=
LICENSEE=
LICENSE_EXPIRY=
LICENSE_CODE=
LICENSE_SIGNATURE=
ENVIRONMENT_NAME=KafScale
BOOTSTRAP=kafka.example.com:9092
JAVA_TOOL_OPTIONS=-Xms512m -Xmx1200m
ALLOW_TOPIC_CREATE=true
ALLOW_TOPIC_DELETE=true
ALLOW_TOPIC_INSPECT=true
ALLOW_TOPIC_PRODUCE=true
ALLOW_GROUP_EDIT=true
ALLOW_GROUP_DELETE=true
ENV
chmod 600 kpow.env
Fill in the license values with an editor. Then start Kpow:
docker run -d --name kpow -p 3000:3000 -m 2g --env-file ./kpow.env factorhouse/kpow-ce:97.1
Open http://localhost:3000. You see one broker, node 0, your topics and your consumer groups.
On Kubernetes, put the same keys in a Secret and load it into the Kpow container with envFrom and secretRef.
If the proxy uses mTLS
Mount the CA and a client certificate into the container and add the Kafka TLS settings to kpow.env. SASL is not supported. Put the client certificate and its unencrypted PKCS#8 key in one PEM file:
umask 077
mkdir -p kpow-certs
cp ca.crt kpow-certs/ca.crt
cat client.crt client.key > kpow-certs/client.pem
The Kpow image runs as user 1001, so that user must be able to read the files. For example, run sudo chown -R 1001:1001 kpow-certs. Then add this to kpow.env:
SECURITY_PROTOCOL=SSL
SSL_TRUSTSTORE_TYPE=PEM
SSL_TRUSTSTORE_LOCATION=/certs/ca.crt
SSL_KEYSTORE_TYPE=PEM
SSL_KEYSTORE_LOCATION=/certs/client.pem
Start Kpow with the directory mounted read-only:
docker run -d --name kpow -p 3000:3000 -m 2g --env-file ./kpow.env \
-v "$PWD/kpow-certs:/certs:ro" factorhouse/kpow-ce:97.1
The certificate maps to a KafScale principal through principals.json. Broker ACLs decide what Kpow may do. The ACL view needs the admin action on the cluster.
Video
Kpow on KafScale v2.2.0: the topics list, a live message from a topic, and a consumer group with its lag.
Watch “Kpow on KafScale: a Kafka management UI, unchanged” on YouTube.
What looks different
- One broker. The proxy shows the cluster as a single node, 0. Per-broker views don’t show the real brokers behind the proxy.
- Replication warning. Kpow’s “Below minimum replication factor” signal fires for every partition. KafScale reports a replication factor of 1 because S3 provides durability. You can ignore the signal.
- Disk shows 0 B. There are no broker disks.
For the background, see how tools see a KafScale cluster.