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

Add metrics about PooledByteBufAllocator #5916

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Bue-von-hon
Copy link
Contributor

Motivation:
Add metrics related to PooledByteBufAllocator that are already exposed by the netty.

Modifications:

  • The PooledByteBufAllocator metric is now available in MoreMeterBinders.
  • To expose the PooledByteBufAllocator metrics, created the PooledByteBufAllocatorMetrics class.

Result:
Enables the PooledByteBufAllocator metric.
this close #2633.

Motivation:
Add metrics related to PooledByteBufAllocator that are already exposed by the netty.

Modifications:
- The PooledByteBufAllocator metric is now available in MoreMeterBinders.
- To expose the PooledByteBufAllocator metrics, created the PooledByteBufAllocatorMetrics class.

Result:
Enables the PooledByteBufAllocator metric.
@Bue-von-hon Bue-von-hon marked this pull request as draft September 18, 2024 06:10
@jrhee17
Copy link
Contributor

jrhee17 commented Sep 19, 2024

Micrometer already provides bindings to Netty Metrics (ref: https://docs.micrometer.io/micrometer/reference/reference/netty.html)

I prefer that we either:

  1. We close this issue and allow users to add metric bindings themselves. Adding the metric bindings is not difficult and the scope of applying this metric seems ambiguous
  2. We add bindings for servers only by default. The name will probably be a combination of local address + ports.

Let me know what you think @line/dx

@ikhoon
Copy link
Contributor

ikhoon commented Sep 20, 2024

I didn't know that Netty metrics were supported by Micrometer finally.

I prefer automatically setting the metric for the default one (ByteBufAllocator.DEFAULT) when the MoreMeterBinders class is loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metrics about PooledByteBufAllocator
3 participants