public class JettyServerThreadPoolMetrics extends java.lang.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);
InstrumentedQueuedThreadPool
Constructor and Description |
---|
JettyServerThreadPoolMetrics(org.eclipse.jetty.util.thread.ThreadPool threadPool,
java.lang.Iterable<Tag> tags) |
Modifier and Type | Method and Description |
---|---|
void |
bindTo(MeterRegistry registry) |
public JettyServerThreadPoolMetrics(org.eclipse.jetty.util.thread.ThreadPool threadPool, java.lang.Iterable<Tag> tags)
public void bindTo(MeterRegistry registry)
bindTo
in interface MeterBinder