Package io.prometheus.client.jetty
Class QueuedThreadPoolStatisticsCollector
- java.lang.Object
-
- io.prometheus.client.Collector
-
- io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
-
public class QueuedThreadPoolStatisticsCollector extends Collector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.prometheus.client.Collector
Collector.Describable, Collector.MetricFamilySamples, Collector.Type
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.String>
LABEL_NAMES
private java.util.Map<java.lang.String,org.eclipse.jetty.util.thread.QueuedThreadPool>
queuedThreadPoolMap
-
Fields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
-
-
Constructor Summary
Constructors Constructor Description QueuedThreadPoolStatisticsCollector()
QueuedThreadPoolStatisticsCollector(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueuedThreadPoolStatisticsCollector
add(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, java.lang.String name)
private GaugeMetricFamily
buildGauge(java.lang.String metric, java.lang.String help, java.util.function.Function<org.eclipse.jetty.util.thread.QueuedThreadPool,java.lang.Integer> metricValueProvider)
java.util.List<Collector.MetricFamilySamples>
collect()
Return all metrics of this Collector.<T extends Collector>
Tregister(CollectorRegistry registry)
Register the Collector with the given registry.-
Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, collect, doubleToGoString, register, sanitizeMetricName
-
-
-
-
Method Detail
-
add
public QueuedThreadPoolStatisticsCollector add(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, java.lang.String name)
-
collect
public java.util.List<Collector.MetricFamilySamples> collect()
Description copied from class:Collector
Return all metrics of this Collector.
-
register
public <T extends Collector> T register(CollectorRegistry registry)
Description copied from class:Collector
Register the Collector with the given registry.
-
buildGauge
private GaugeMetricFamily buildGauge(java.lang.String metric, java.lang.String help, java.util.function.Function<org.eclipse.jetty.util.thread.QueuedThreadPool,java.lang.Integer> metricValueProvider)
-
-