Repository navigation
fix(inputs.bklite_rocketmq): collect RocketMQ 4.9 broker and consumer stats - #5
Merged
Merged
Conversation
Parse unquoted MessageQueue keys in GetConsumeStats so group diff and consumer offset/tps are recorded, and keep the DLQ sample on the %DLQ% topic.
Packaging stores telegraf --version as the node-management version, so the output is the x.y.z BKLite release. The upstream Telegraf version is available with --upstream-version, and bklite-* tags supply that release number.
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
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.
Summary
inputs.bklite_rocketmq,用 RocketMQ 4.9 admin 协议采集 Broker 吞吐、CommitLog 磁盘、Topic 偏移、消费偏移、消费 TPS、堆积和死信。offsetTable使用未加引号的 MessageQueue 键,解析失败时不补 0;组内只有一个 Topic 时才挂组级consumeTps,多个 Topic 再按 Topic 查询。%DLQ%加消费组名。ready/inflight在 4.x 只有一个 backlog 时不写。Test plan
go test ./plugins/inputs/bklite_rocketmq/weopsx_monitor_demo试采:weopsx_monitor_cg有 consumer offset/tps 和 group diff,weopsx_monitor_cg_fail的死信 topic 为%DLQ%weopsx_monitor_cg_fail