Monitoring Kafka Spout with KafkaOffsetMonitoring tool

♀尐吖头ヾ 提交于 2019-12-06 04:28:04

I have never used KafkaOffsetMonitor, but I can answer the other part.

zookeeper.connect is the property where you can specify the znode for Kafka; By default it keeps all data at '/'.

You can access the zookeeper filesystem using zkCli.sh, the zookeeper command line. You should look at /consumers and /brokers; following would give you the offset

get /consumers/my_test_group/offsets/my_topic/0

You can poll this offset continuously to know the rate of consumption at spout.

Kafka-Spout maintains its offset in its own znode rather than under the znode where kafka stores the offsets for regular consumers. We had a similar need where we had to monitor the offsets of both the kafka-spout consumers and also regular kafka consumers, so we ended writing our own tool. You can get the tool from here:

https://github.com/Symantec/kafka-monitoring-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!