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
@Override
public void bindTo(MeterRegistry registry) {
EventLoopGroupProvider provider = clientResources.eventLoopGroupProvider();
//Total thread pool
registry.gauge("lettuce.pool.size", provider, EventLoopGroupProvider::threadPoolSize);
//Active thread pool
How does the code implement
}
Now I want to add a method to get the size of the running thread pool to the metrics for monitoring, how to implement
The text was updated successfully, but these errors were encountered:
You can implement EventLoopGroupProvider to decorate DefaultEventLoopGroupProvider.
However, the concept of EventLoopGroup is to configure it with a fixed number of threads and the executor service will spin up that many threads so your gauge could be also configured with the values of computationThreadPoolSize and ioThreadPoolSize provided to ClientResources.Builder.
My code is as follows
Now I want to add a method to get the size of the running thread pool to the metrics for monitoring, how to implement
The text was updated successfully, but these errors were encountered: