项目作者: christianparpart

项目描述 :
Kafka Producer/Consumer latency lag monitor
高级语言: C++
项目地址: git://github.com/christianparpart/kafkaping.git
创建时间: 2017-05-10T15:20:36Z
项目社区:https://github.com/christianparpart/kafkaping

开源协议:MIT License

下载


kafkaping

kafkaping is like IP ping, but for Kafka. To be precise, it’s producing
into a broker’s topic, and consuming, measuring the latency between them.

Usage

  1. Usage: kafkaping [-g] [-t topic] [-c count] [-i interval_ms] [broker list]
  2. -g Increases debugging print verbosity
  3. -t TOPIC What Kafka topic to use for producing/consuming messages [kafkaping]
  4. -c COUNT Number of messages to send & receive before quitting [unlimited]
  5. -i MSECS Time to wait between to pings

Example

  1. # kafkaping -c4 localhost
  2. Received from localhost: topic=kafkaping partition=0 offset=385 time=126 ms
  3. Received from localhost: topic=kafkaping partition=0 offset=386 time=17 ms
  4. Received from localhost: topic=kafkaping partition=0 offset=387 time=12 ms
  5. Received from localhost: topic=kafkaping partition=0 offset=388 time=13 ms
  6. --- localhost ping statistics ---
  7. 4 messages received, time 5222ms
  8. rtt min/avg/max = 12/42/126 ms

Build time dependencies

  1. sudo apt install autoconf automake make g++ pkg-config librdkafka-dev

How to build

  1. ./autogen.sh
  2. ./configure
  3. make
  4. sudo make install