Repository navigation
feat: 采集 Kafka 指标 - #235
Merged
githublaohu merged 11 commits intoNov 1, 2026
Merged
Conversation
mxsm
approved these changes
Oct 11, 2026
合并 console POM 中重复的顶层 profiles,避免 Maven 在读取项目时失败。 保留四个 profile 和原有 build 配置,仅调整容器结构并说明原因。 验证:Java 17 下 validate 和 package -DskipTests 均通过。
Register Admin and JMX tasks through the shared metadata cache and collector factories. Keep result batches safe for concurrent completion, bind IoTDB parameters, preserve Kafka tags, and return each report by name. Cover connection and read deadlines, schema constraints, real KRaft and ZooKeeper collection, HTTP queries, and RocketMQ compatibility.
Remove the new servlet adapter dependency and connect existing result, exception and QueryClause interfaces to Spring 5 servlet APIs. Keep JSON response media types concrete, honor the public CORS switch, and clear pagination state even when preHandle fails. Verify persisted Kafka data through the real MVC configuration in both Kafka modes.
Preserve the Kafka collection lifecycle while adopting separate status and logical deletion fields. Exclude stopped brokers from Kafka tasks. Validate Kafka collection and metadata in KRaft and ZooKeeper modes, API behavior, MySQL model contracts, RocketMQ compatibility, Checkstyle, and the backend package.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
为 Kafka 集群接入指标采集,复用已有的元数据同步、任务调度和报表存储流程。
Modifications
CollectManage的公共缓存和任务表中注册 Kafka 采集器,处理集群、节点和配置的启停及归属变化。Kafka 采集配置使用EVENTMESH模式,节点 JMX 采集需要配置端口。-1。Validation
52c012e均被 core 模块同样的 7 处旧编译错误阻断;不能称为全量 Java 测试通过。decoration-javax而启动失败;临时补充该依赖后启动成功。该诊断未在本次提交上重跑。Limitation
JMX 共享后台池最多容纳 20 个阻塞请求。若不同端点的调用永久阻塞并占满线程池,其他节点的 JMX 采样会被拒绝,直到有请求结束或进程重启;Kafka Admin 采集不使用该线程池。
采集配置迁移到非 Kafka 集群并同时停用或删除时,旧删除逻辑可能清理目标集群的其他采集任务;该问题在参考提交也可复现。