Sign inSign up

guildencrantz/kazoo-offsets

By guildencrantz

•Updated over 10 years ago

golang based kafka/zookeeper offset checker

Image
1

1.3K

guildencrantz/kazoo-offsets repository overview

⁠Monitor Kafka Consumer Partition Offsets in Zookeeper

Simple golang based (kazoo-go and sarama) application to monitor Kafka offsets stored in Zookeeper, and calculate lag based on current Kafka partition sizes. Output is modeled after the official kafka.tools.ConsumerOffsetChecker.

⁠Install

go install github.com/guildencrantz/kazoo-offsets

⁠Run

For current execution flags see kazoo-offsets -h

In general if you're using CLI flags the pattern is:

kazoo-offsets -zookeeper $(ZK_HOST):2181 -group-id $(KAFKA_GROUP_ID) -topic $(KAFKA_TOPIC)

If you want the values to update I highly recommend using watch⁠

watch -n 5 kazoo-offsets -zookeeper $(ZK_HOST):2181 -group-id $(KAFKA_GROUP_ID) -topic $(KAFKA_TOPIC)

Tag summary

Content type

Image

Digest

Size

244.7 MB

Last updated

over 10 years ago

docker pull guildencrantz/kazoo-offsets