Skip to content

MINOR: add the removed topic metrics to zk2kraft #18658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented Jan 21, 2025

see the discussion: https://github.com/apache/kafka/pull/18574/files/89b1137ba0d0978afe796de2aa5110e7718355a0#r1921713711

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community docs small Small PRs labels Jan 21, 2025
@m1a2st m1a2st changed the title MINOR: document the remove metrics in zk2kraft MINOR: document the removed topic metrics in zk2kraft Jan 21, 2025
@m1a2st m1a2st changed the title MINOR: document the removed topic metrics in zk2kraft MINOR: add the removed topic metrics to zk2kraft Jan 21, 2025
# Conflicts:
#	docs/zk2kraft.html
Copy link
Contributor

@clolov clolov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the addition, this is very useful! I have just a small comment

Remove the metrics which is monitoring requests waiting in the topic purgatory
</p>
<ul>
<li><code>kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=topic</code></li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a look at the DelayedOperationPurgatory class and I believe you are actually removing 2 metrics instead of one

metricsGroup.newGauge("PurgatorySize", this::watched, metricsTags);
metricsGroup.newGauge("NumDelayedOperations", this::numDelayed, metricsTags);

Could you add this to the description as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review, addressed it.

@github-actions github-actions bot removed the triage PRs from the community label Jan 23, 2025
@chia7712 chia7712 merged commit 3276759 into apache:trunk Jan 23, 2025
9 checks passed
chia7712 pushed a commit to chia7712/kafka that referenced this pull request Jan 23, 2025
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants