You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add eventexecutor.workers metrics for NettyΒ #6375
Please describe the feature request.
We added a few Netty event executor related metrics at #522. This is a request to add another metrics eventexecutor.workers to the list of Netty metrics. This new metric represents the total number of Netty's event loops.
Rationale
A similar metric was added to Armeria with line/armeria#4675. This is a useful metric while debugging to determine the number of workers without having to explicitly look at the configuration.
Thanks for opening the issue. It sounds like it's probably generally useful. Could you share more context on when users would use this metric and for what purpose, to help me understand as not a heavy Netty user? Also, would you be willing to submit a pull request for this?
Activity
shakuzen commentedon Jun 10, 2025
Thanks for opening the issue. It sounds like it's probably generally useful. Could you share more context on when users would use this metric and for what purpose, to help me understand as not a heavy Netty user? Also, would you be willing to submit a pull request for this?
ttaehee commentedon Aug 10, 2025
@shakuzen @divijvaidya Hi, I've submitted a pull request to address this. The PR is available here: #6612
My approach was to add the workers metric by checking for instanceof MultithreadEventLoopGroup to ensure accuracy without changing the public API.
Any feedback would be greatly appreciated!
Add eventexecutor workers metric for netty (#6612)