linkedin/kafka-monitor — dự án mã nguồn mở — đang có 2.1k sao GitHub. Xinfra Monitor monitors the availability of Kafka clusters by producing synthetic workloads using end-to-end pipelines to obtain derived vital statistics - E2E latency, service produce/consume availability, offsets commit availability & latency, message loss rate and more.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Xinfra Monitor (formerly Kafka Monitor) is a framework to implement and execute long-running kafka
system tests in a real cluster. It complements Kafka’s existing system
tests by capturing potential bugs or regressions that are only likely to occur
after prolonged period of time or with low probability. Moreover, it allows you to monitor Kafka
cluster using end-to-end pipelines to obtain a number of derived vital stats
such as
End-to-end latency
Service availability
Produce and Consume availability
Consumer offset commit availability
Consumer offset commit latency
Kafka message loss rate
And many, many more.
You can easily
deploy Xinfra Monitor to test and monitor your Kafka cluster without requiring
any change to your application.
Xinfra Monitor can automatically create the monitor topic with the specified config
and increase partition count of the monitor topic to ensure partition# >=
broker#. It can also reassign partition and trigger preferred leader election
to ensure that each broker acts as leader of at least one partition of the
monitor topic. This allows Xinfra Monitor to detect performance issue on every
broker without requiring users to manually manage the partition assignment of
the monitor topic.
Xinfra Monitor is used in conjunction with different middle-layer services such as li-apache-kafka-clients in order to monitor single clusters, pipeline desination clusters, and other types of clusters as done in Linkedin engineering for real-time cluster healthchecks.
These are some of the metrics emitted from a Xinfra Monitor instance.
Xinfra Monitor requires Gradle 2.0 or higher. Java 7 should be used for
building in order to support both Java 7 and Java 8 at runtime.
Xinfra Monitor supports Apache Kafka 0.8 to 2.0:
Use branch 0.8.2.2 to work with Apache Kafka 0.8
Use branch 0.9.0.1 to work with Apache Kafka 0.9
Use branch 0.10.2.1 to work with Apache Kafka 0.10
Use branch 0.11.x to work with Apache Kafka 0.11
Use branch 1.0.x to work with Apache Kafka 1.0
Use branch 1.1.x to work with Apache Kafka 1.1
Use master branch to work with Apache Kafka 2.0
Configuration Tips
We advise advanced users to run Xinfra Monitor with
./bin/xinfra-monitor-start.sh config/xinfra-monitor.properties. The default
xinfra-monitor.properties in the repo provides an simple example of how to
monitor a single cluster. You probably need to change the value of
zookeeper.connect and bootstrap.servers to point to your cluster.
The full list of configs and their documentation can be found in the code of
Config class for respective service, e.g. ProduceServiceConfig.java and
ConsumeServiceConfig.java.
You can specify multiple SingleClusterMonitor in the xinfra-monitor.properties to
monitor multiple Kafka clusters in one Xinfra Monitor process. As another
advanced use-case, you can point ProduceService and ConsumeService to two different Kafka clusters that are connected by MirrorMaker to monitor their end-to-end latency.
Xinfra Monitor by default will automatically create the monitor topic based on
the e.g. topic-management.replicationFactor and topic-management.partitionsToBrokersRatio
specified in the config. replicationFactor is 1 by default and you probably
want to change it to the same replication factor as used for your existing
topics. You can disable auto topic creation by setting produce.topic.topicCreationEnabled to false.
Xinfra Monitor can automatically increase partition count of the monitor topic
to ensure partition# >= broker#. It can also reassign partition and trigger
preferred leader election to ensure that each broker acts as leader of at least
one partition of the monitor topic. To use this feature, use either
EndToEndTest or TopicManagementService in the properties file.
When using Secure Sockets Layer (SSL) or any non-plaintext security protocol for AdminClient, please configure the following entries in the single-cluster-monitor props, produce.producer.props, as well as consume.consumer.props. https://docs.confluent.io/current/installation/configuration/admin-configs.html
ssl.key.password
ssl.keystore.location
ssl.keystore.password
ssl.truststore.location
ssl.truststore.password
Build Xinfra Monitor
$ git clone https://github.com/linkedin/kafka-monitor.git
$ cd kafka-monitor
$ ./gradlew jar
Start XinfraMonitor to run tests/services specified in the config file
Run Xinfra Monitor with arbitrary producer/consumer configuration (e.g. SASL enabled client)
Edit config/xinfra-monitor.properties to specify custom configurations for producer in the key/value map produce.producer.props in
config/xinfra-monitor.properties. Similarly specify configurations for
consumer as well. The documentation for producer and consumer in the key/value maps can be found in the Apache Kafka wiki.
Run SingleClusterMonitor app to monitor kafka cluster
Metrics produce-availability-avg and consume-availability-avg demonstrate
whether messages can be properly produced to and consumed from this cluster.
See Service Overview wiki for how these metrics are derived.
$ ./bin/single-cluster-monitor.sh --topic test --broker-list localhost:9092 --zookeeper localhost:2181
Run MultiClusterMonitor app to monitor a pipeline of Kafka clusters connected by MirrorMaker
Edit config/multi-cluster-monitor.properties to specify the right broker and
zookeeper url as suggested by the comment in the properties file
Metrics produce-availability-avg and consume-availability-avg demonstrate
whether messages can be properly produced to the source cluster and consumed
from the destination cluster. See config/multi-cluster-monitor.properties for
the full jmx path for these metrics.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/linkedin/kafka-monitor là nguồn chính thức.
linkedin/kafka-monitor có phải mã nguồn mở không?
Có — linkedin/kafka-monitor phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/linkedin/kafka-monitor.
linkedin/kafka-monitor có trang demo không?
Dự án có trang chủ ở https://engineering.linkedin.com/blog/2016/05/open-sourcing-kafka-monitor. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
linkedin/kafka-monitor dùng license gì?
linkedin/kafka-monitor phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
linkedin/kafka-monitor là gì?
linkedin/kafka-monitor (linkedin/kafka-monitor) là dự án Java trên GitHub. Theo mô tả gốc: Xinfra Monitor monitors the availability of Kafka clusters by producing synthetic workloads using end-to-end pipelines to obtain derived vital statistics - E2E latency, service produce/consume availability, offsets commit availability & latency, message loss rate and more.
Đọc đầy đủ README ở tab phía trên.
kafka-monitor có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về kafka-monitor.