Skip to content
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

MINOR: add the removed topic metrics to zk2kraft #18658

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

m1a2st
Copy link
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved docs small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants