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 GaugeMetricFamily
buildGauge
(String metric, String help, Function<org.eclipse.jetty.util.thread.QueuedThreadPool, Integer> metricValueProvider) collect()
Return all of the 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, 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:Collector
Return all of the metrics of this Collector. -
register
Description copied from class:Collector
Register the Collector with the given registry. -
buildGauge
private GaugeMetricFamily buildGauge(String metric, String help, Function<org.eclipse.jetty.util.thread.QueuedThreadPool, Integer> metricValueProvider)
-