Kafka(6)How to Monitor Kafka
1. KafkaOffsetMonitor
This project is good.
https://github.com/quantifind/KafkaOffsetMonitor
build and run it
>sbt clean update
>sbt assembly
>java -cp target/scala-2.10/KafkaOffsetMonitor-assembly-0.2.1-SNAPSHOT.jar com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk ubuntu-slave1 --port 8080 --refresh 10.seconds --retain 2.days
Visit the web page
http://localhost:8080
The most import class is something like com.quantifind.kafka.OffsetGetter.
It keeps using import kafka.utils.ZkUtils to connect to the zookeeper to fetch the information.
2. kafka-web-console
This project is here
https://github.com/claudemamo/kafka-web-console.git
build and run it
>git clone https://github.com/claudemamo/kafka-web-console.git
>sbt clean update gen-idea
>sbt run
Visit the page http://localhost:9000
It is using the com.twitter.zk.ZkClient to fetch the information from zookeeper.
If I plan to writer something myself. I need to understand this tool.
https://cwiki.apache.org/confluence/display/KAFKA/Kafka+data+structures+in+Zookeeper
References:
https://github.com/quantifind/KafkaOffsetMonitor
https://github.com/claudemamo/kafka-web-console
- 浏览: 2566523 次
- 性别:
- 来自: 成都
-
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
How use tools to monitor the performance of your architecture. How to integrate all technologies and decide which replace and which reinforce. Who This Book Is For This book is for developers, data ...
This book is about how to integrate full-stack open source...How use tools to monitor the performance of your architecture. How to integrate all technologies and decide which replace and which reinforce.
语言: :United_States: -: :卡夫卡中心 KafkaCenter是一个统一的一站式平台... 然后,只需下载我们的Docker映像(请参阅下面的HowTo),然后就可以使用! *注意:KafkaCenter尚不支持对安全的Kafka集群(SASL或OAuth
Use tools to monitor the performance of your architecture Integrate all the technology to decide which one is better than the other in replacing or reinforcing Table of Contents Chapter 1: An ...
will learn how to integrate RabbitMQ and Apache Kafka message brokers with your Spring Cloud application to enable asynchronous one-to-one and publish/subscribe communication styles. Chapter 12, ...
We'll also show you how to build asynchronous streaming systems using Kafka Streams and Apache Spark. Finally, we wind up by aggregating your logs in Kafka, creating your own metrics, and monitoring...