Package io.prometheus.client.jetty
Class QueuedThreadPoolStatisticsCollector
java.lang.Object
io.prometheus.client.Collector
io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
-
Nested Class Summary
Nested classes/interfaces inherited from class io.prometheus.client.Collector
Collector.Describable, Collector.MetricFamilySamples, Collector.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionQueuedThreadPoolStatisticsCollector(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, String name) -
Method Summary
Modifier and TypeMethodDescriptionprivate GaugeMetricFamilybuildGauge(String metric, String help, Function<org.eclipse.jetty.util.thread.QueuedThreadPool, Integer> metricValueProvider) 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
-
Field Details
-
LABEL_NAMES
-
queuedThreadPoolMap
-
-
Constructor Details
-
QueuedThreadPoolStatisticsCollector
public QueuedThreadPoolStatisticsCollector() -
QueuedThreadPoolStatisticsCollector
public QueuedThreadPoolStatisticsCollector(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, String name)
-
-
Method Details
-
add
public QueuedThreadPoolStatisticsCollector add(org.eclipse.jetty.util.thread.QueuedThreadPool queuedThreadPool, String name) -
collect
Description copied from class:CollectorReturn all metrics of this Collector. -
register
Description copied from class:CollectorRegister the Collector with the given registry. -
buildGauge
private GaugeMetricFamily buildGauge(String metric, String help, Function<org.eclipse.jetty.util.thread.QueuedThreadPool, Integer> metricValueProvider)
-