kotop

command module
v0.0.0-...-59d92b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 13 Imported by: 0

README

KOTop - Kafka Offset Top

Go Report Card

Get a glimpse of Kafka topic and consumer status

Main Features

  • Partition leader distribution
  • Topic size, leader, replicas, isr
  • Speed of consumer and topic size increment
  • sort by each field

Installation

go get -u github.com/simon-xia/kotop

Usage

kotop -broker "192.168.0.1:9092,192.168.0.2:9092,192.168.0.3:9092" -zk "192.168.0.1:2181,192.168.0.2:2181/kafka_root_dir" -topic mytopic -group my_consumer_group

Or you can use config file

simonxia:~$cat kotop.conf
{
        "brokers":"192.168.0.1:9092,192.168.0.2:9092,192.168.0.3:9092",
        "zkhosts":"192.168.0.1:2181,192.168.0.2:2181/kafka_root_dir"
}

then

kotop -f kotop.conf -topic mytopic -group my_consumer_group

Maybe helpful in the following scenarios

  • Check whether the topic data is skewed
  • Check whether the distribution of partition leaders is uniform across the brokers
  • Check comsumer speed and size increment speed of each partition
  • Check high watermark lag and offset lag of each partition

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL