doveLin0818 opened a new pull request, #2887: URL: https://github.com/apache/hertzbeat/pull/2887
Background:Currently, Hertzbeat offers two methods for monitoring Kafka: one is based on the JMX protocol, and the other uses Kafka clients. For Kafka clients, I have two optimization suggestions: 1.In the "Topic Offset" module, the second column is intended to represent the partition number corresponding to the topic, not the number of partitions, as shown in the figure below. This can cause confusion for Chinese users. I suggest changing the title to "分区号" in the Chinese display. This would require modifying the monitoring template. <img width="728" alt="image" src="https://github.com/user-attachments/assets/a25e843a-7045-494d-9542-b0802bb25031" /> 2.Currently, Kafka client metrics are limited. I recommend adding a new module called "Consumer Group Status," which would include metrics such as consumer group ID, subscribed topic names, partition offsets, total consumption lag, and other related fields. ## What's changed? 1.The Kafka client monitoring metrics have been extended with a consumer information module, including consumer group ID, number of consumer group members, topics subscribed by the consumer group, partition offset, and lag offset metrics and each metric has been tested. 2.The ambiguity in the Chinese description of the partition count field in the topic_offset module has been fixed. 3.The hertzbeat community documentation has also been updated accordingly. The example diagram is shown below: <img width="1709" alt="image" src="https://github.com/user-attachments/assets/32240e4a-5f20-4b19-b720-b2a60af2b832" /> <!-- Describe Your PR Here --> ## Checklist - [✅] I have read the [Contributing Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide) - [✅] I have written the necessary doc or comment. - [] I have added the necessary unit tests and all cases have passed. ## Add or update API - [ ] I have added the necessary [e2e tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have passed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
