Class JettyServerThreadPoolMetrics

java.lang.Object
io.micrometer.core.instrument.binder.jetty.JettyServerThreadPoolMetrics
All Implemented Interfaces:
MeterBinder

public class JettyServerThreadPoolMetrics extends Object implements MeterBinder
MeterBinder for Jetty ThreadPool.

Pass the ThreadPool used with the Jetty Server. For example:

     
     QueuedThreadPool threadPool = new QueuedThreadPool();
     Server server = new Server(threadPool);
     new JettyServerThreadPoolMetrics(threadPool, tags).bindTo(registry);
     
 
Since:
1.1.0
See Also:
  • Constructor Details

    • JettyServerThreadPoolMetrics

      public JettyServerThreadPoolMetrics(org.eclipse.jetty.util.thread.ThreadPool threadPool, Iterable<Tag> tags)
  • Method Details