Skip to content

guildencrantz/kazoo-offsets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages