Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- activateOptions() - Method in class io.prometheus.client.log4j.InstrumentedAppender
- Adapter - Class in io.prometheus.client.internal
- Adapter - Class in io.prometheus.client.servlet.jakarta
- Adapter() - Constructor for class io.prometheus.client.internal.Adapter
- Adapter() - Constructor for class io.prometheus.client.servlet.jakarta.Adapter
- add(double) - Method in class io.prometheus.client.DoubleAdder
-
Adds the given value.
- add(QueuedThreadPool, String) - Method in class io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
- addCache(String, AsyncCache) - Method in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
-
Add or replace the cache with the given name.
- addCache(String, Cache) - Method in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
-
Add or replace the cache with the given name.
- addCache(String, Cache) - Method in class io.prometheus.client.guava.cache.CacheMetricsCollector
-
Add or replace the cache with the given name.
- addMetric(List, double) - Method in class io.prometheus.client.CounterMetricFamily
- addMetric(List, double) - Method in class io.prometheus.client.GaugeMetricFamily
- addMetric(List, double, double) - Method in class io.prometheus.client.SummaryMetricFamily
- addMetric(List, double, double, List) - Method in class io.prometheus.client.SummaryMetricFamily
- ageBuckets(int) - Method in class io.prometheus.client.Summary.Builder
-
The class JavaDoc for
Summaryhas more information onSummary.Builder.ageBuckets(int) - ALLOW_ALL - Static variable in class io.prometheus.client.SampleNameFilter
-
For convenience, a filter that allows all names.
- and(Predicate) - Method in class io.prometheus.client.SampleNameFilter
-
Replacement for Java 8's
Predicate.and()for compatibility with Java versions < 8. - append(ILoggingEvent) - Method in class io.prometheus.client.logback.InstrumentedAppender
- append(LoggingEvent) - Method in class io.prometheus.client.log4j.InstrumentedAppender
- append(LogEvent) - Method in class io.prometheus.client.log4j2.InstrumentedAppender
B
- Base64 - Class in io.prometheus.client.exporter
-
This class delegates to either javax.xml.bind.DatatypeConverter (for Java < 8) or java.util.Base64 (Java 8+) to perform Base64 encoding of a String.
- BasicAuthHttpConnectionFactory - Class in io.prometheus.client.exporter
- BasicAuthHttpConnectionFactory(HttpConnectionFactory, String, String) - Constructor for class io.prometheus.client.exporter.BasicAuthHttpConnectionFactory
- BasicAuthHttpConnectionFactory(String, String) - Constructor for class io.prometheus.client.exporter.BasicAuthHttpConnectionFactory
- buckets - Variable in class io.prometheus.client.Histogram.Child.Value
- buckets(double...) - Method in class io.prometheus.client.Histogram.Builder
-
Set the upper bounds of buckets for the histogram.
- BufferPoolsExports - Class in io.prometheus.client.hotspot
-
Exports metrics about JVM buffers.
- BufferPoolsExports() - Constructor for class io.prometheus.client.hotspot.BufferPoolsExports
- build() - Static method in class io.prometheus.client.Counter
-
Return a Builder to allow configuration of a new Counter.
- build() - Static method in class io.prometheus.client.Enumeration
-
Return a Builder to allow configuration of a new Enumeration.
- build() - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Build the HTTPServer
- build() - Static method in class io.prometheus.client.Gauge
-
Return a Builder to allow configuration of a new Gauge.
- build() - Static method in class io.prometheus.client.Histogram
-
Return a Builder to allow configuration of a new Histogram.
- build() - Static method in class io.prometheus.client.Info
-
Return a Builder to allow configuration of a new Info.
- build() - Method in class io.prometheus.client.SampleNameFilter.Builder
- build() - Static method in class io.prometheus.client.Summary
-
Return a Builder to allow configuration of a new Summary.
- build(String, String) - Static method in class io.prometheus.client.Counter
-
Return a Builder to allow configuration of a new Counter.
- build(String, String) - Static method in class io.prometheus.client.Enumeration
-
Return a Builder to allow configuration of a new Enumeration.
- build(String, String) - Static method in class io.prometheus.client.Gauge
-
Return a Builder to allow configuration of a new Gauge.
- build(String, String) - Static method in class io.prometheus.client.Histogram
-
Return a Builder to allow configuration of a new Histogram.
- build(String, String) - Static method in class io.prometheus.client.Info
-
Return a Builder to allow configuration of a new Info.
- build(String, String) - Static method in class io.prometheus.client.Summary
-
Return a Builder to allow configuration of a new Summary.
- Builder() - Constructor for class io.prometheus.client.Counter.Builder
- Builder() - Constructor for class io.prometheus.client.Enumeration.Builder
- Builder() - Constructor for class io.prometheus.client.exporter.HTTPServer.Builder
- Builder() - Constructor for class io.prometheus.client.Gauge.Builder
- Builder() - Constructor for class io.prometheus.client.Histogram.Builder
- Builder() - Constructor for class io.prometheus.client.Info.Builder
- Builder() - Constructor for class io.prometheus.client.SampleNameFilter.Builder
- Builder() - Constructor for class io.prometheus.client.SimpleCollector.Builder
- Builder() - Constructor for class io.prometheus.client.Summary.Builder
C
- CacheMetricsCollector - Class in io.prometheus.client.cache.caffeine
-
Collect metrics from Caffeine's com.github.benmanes.caffeine.cache.Cache.
- CacheMetricsCollector - Class in io.prometheus.client.guava.cache
-
Collect metrics from Guava's com.google.common.cache.Cache.
- CacheMetricsCollector() - Constructor for class io.prometheus.client.cache.caffeine.CacheMetricsCollector
- CacheMetricsCollector() - Constructor for class io.prometheus.client.guava.cache.CacheMetricsCollector
- checkMetricLabelName(String) - Static method in class io.prometheus.client.Collector
-
Throw an exception if the metric label name is invalid.
- checkMetricName(String) - Static method in class io.prometheus.client.Collector
-
Throw an exception if the metric name is invalid.
- Child() - Constructor for class io.prometheus.client.Counter.Child
- Child() - Constructor for class io.prometheus.client.Gauge.Child
- Child(Boolean, CounterExemplarSampler) - Constructor for class io.prometheus.client.Counter.Child
- children - Variable in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
- children - Variable in class io.prometheus.client.guava.cache.CacheMetricsCollector
- children - Variable in class io.prometheus.client.SimpleCollector
- chooseContentType(String) - Static method in class io.prometheus.client.exporter.common.TextFormat
-
Return the content type that should be used for a given Accept HTTP header.
- ClassLoadingExports - Class in io.prometheus.client.hotspot
-
Exports metrics about JVM classloading.
- ClassLoadingExports() - Constructor for class io.prometheus.client.hotspot.ClassLoadingExports
- ClassLoadingExports(ClassLoadingMXBean) - Constructor for class io.prometheus.client.hotspot.ClassLoadingExports
- clear() - Method in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
-
Remove all caches.
- clear() - Method in class io.prometheus.client.CollectorRegistry
-
Unregister all Collectors.
- clear() - Method in class io.prometheus.client.guava.cache.CacheMetricsCollector
-
Remove all caches.
- clear() - Method in class io.prometheus.client.SimpleCollector
-
Remove all children.
- close() - Method in class io.prometheus.client.exporter.HTTPServer
-
Stop the HTTPServer.
- close() - Method in class io.prometheus.client.Gauge.Timer
-
Equivalent to calling
Gauge.Timer.setDuration(). - close() - Method in class io.prometheus.client.Histogram.Timer
-
Equivalent to calling
Histogram.Timer.observeDuration(). - close() - Method in class io.prometheus.client.log4j.InstrumentedAppender
- close() - Method in class io.prometheus.client.Summary.Timer
-
Equivalent to calling
Summary.Timer.observeDuration(). - collect() - Method in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
- collect() - Method in class io.prometheus.client.Collector
-
Return all metrics of this Collector.
- collect() - Method in class io.prometheus.client.Counter
- collect() - Method in class io.prometheus.client.Enumeration
- collect() - Method in class io.prometheus.client.Gauge
- collect() - Method in class io.prometheus.client.guava.cache.CacheMetricsCollector
- collect() - Method in class io.prometheus.client.Histogram
- collect() - Method in class io.prometheus.client.hotspot.BufferPoolsExports
- collect() - Method in class io.prometheus.client.hotspot.ClassLoadingExports
- collect() - Method in class io.prometheus.client.hotspot.GarbageCollectorExports
- collect() - Method in class io.prometheus.client.hotspot.MemoryAllocationExports
- collect() - Method in class io.prometheus.client.hotspot.MemoryPoolsExports
- collect() - Method in class io.prometheus.client.hotspot.StandardExports
- collect() - Method in class io.prometheus.client.hotspot.ThreadExports
- collect() - Method in class io.prometheus.client.hotspot.VersionInfoExports
- collect() - Method in class io.prometheus.client.Info
- collect() - Method in class io.prometheus.client.jetty.JettyStatisticsCollector
- collect() - Method in class io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
- collect() - Method in class io.prometheus.client.Summary
- collect(Predicate) - Method in class io.prometheus.client.Collector
-
Like
Collector.collect(), but the result should only containMetricFamilySampleswheresampleNameFilter.test(name)istruefor at least one Sample name. - collect(Predicate) - Method in class io.prometheus.client.hotspot.BufferPoolsExports
- collect(Predicate) - Method in class io.prometheus.client.hotspot.ClassLoadingExports
- collect(Predicate) - Method in class io.prometheus.client.hotspot.GarbageCollectorExports
- collect(Predicate) - Method in class io.prometheus.client.hotspot.MemoryPoolsExports
- collect(Predicate) - Method in class io.prometheus.client.hotspot.ThreadExports
- Collector - Class in io.prometheus.client
-
A collector for a set of metrics.
- Collector() - Constructor for class io.prometheus.client.Collector
- Collector.Describable - Interface in io.prometheus.client
- Collector.MetricFamilySamples - Class in io.prometheus.client
-
A metric, and all of its samples.
- Collector.MetricFamilySamples.Sample - Class in io.prometheus.client
-
A single Sample, with a unique name and set of labels.
- Collector.Type - Enum Class in io.prometheus.client
- CollectorRegistry - Class in io.prometheus.client
-
A registry of Collectors.
- CollectorRegistry() - Constructor for class io.prometheus.client.CollectorRegistry
- CollectorRegistry(boolean) - Constructor for class io.prometheus.client.CollectorRegistry
- CONTENT_TYPE_004 - Static variable in class io.prometheus.client.exporter.common.TextFormat
-
Content-type for Prometheus text version 0.0.4.
- CONTENT_TYPE_OPENMETRICS_100 - Static variable in class io.prometheus.client.exporter.common.TextFormat
-
Content-type for Openmetrics text version 1.0.0.
- count - Variable in class io.prometheus.client.Summary.Child.Value
- Counter - Class in io.prometheus.client
-
Counter metric, to track counts of events or running totals.
- COUNTER - Enum constant in enum class io.prometheus.client.Collector.Type
- COUNTER_NAME - Static variable in class io.prometheus.client.log4j.InstrumentedAppender
- COUNTER_NAME - Static variable in class io.prometheus.client.log4j2.InstrumentedAppender
- COUNTER_NAME - Static variable in class io.prometheus.client.logback.InstrumentedAppender
- Counter.Builder - Class in io.prometheus.client
- Counter.Child - Class in io.prometheus.client
-
The value of a single Counter.
- CounterExemplarSampler - Interface in io.prometheus.client.exemplars
-
Exemplar sampler for counter metrics.
- CounterMetricFamily - Class in io.prometheus.client
-
Counter metric family, for custom collectors and exporters.
- CounterMetricFamily(String, String, double) - Constructor for class io.prometheus.client.CounterMetricFamily
- CounterMetricFamily(String, String, List) - Constructor for class io.prometheus.client.CounterMetricFamily
- create() - Method in class io.prometheus.client.Counter.Builder
- create() - Method in class io.prometheus.client.Enumeration.Builder
- create() - Method in class io.prometheus.client.Gauge.Builder
- create() - Method in class io.prometheus.client.Histogram.Builder
- create() - Method in class io.prometheus.client.Info.Builder
- create() - Method in class io.prometheus.client.SimpleCollector.Builder
-
Return the constructed collector.
- create() - Method in class io.prometheus.client.Summary.Builder
- create(String) - Method in class io.prometheus.client.exporter.BasicAuthHttpConnectionFactory
- create(String) - Method in class io.prometheus.client.exporter.DefaultHttpConnectionFactory
- create(String) - Method in interface io.prometheus.client.exporter.HttpConnectionFactory
- createAppender(String) - Static method in class io.prometheus.client.log4j2.InstrumentedAppender
- created - Variable in class io.prometheus.client.Histogram.Child.Value
- created - Variable in class io.prometheus.client.Summary.Child.Value
- created() - Method in class io.prometheus.client.Counter.Child
-
Get the created time of the counter in milliseconds.
D
- dec() - Method in class io.prometheus.client.Gauge.Child
-
Decrement the gauge by 1.
- dec() - Method in class io.prometheus.client.Gauge
-
Decrement the gauge with no labels by 1.
- dec(double) - Method in class io.prometheus.client.Gauge.Child
-
Decrement the gauge by the given amount.
- dec(double) - Method in class io.prometheus.client.Gauge
-
Decrement the gauge with no labels by the given amount.
- DefaultExemplarSampler - Class in io.prometheus.client.exemplars
-
Default Exemplar sampler.
- DefaultExemplarSampler(SpanContextSupplier) - Constructor for class io.prometheus.client.exemplars.DefaultExemplarSampler
- DefaultExports - Class in io.prometheus.client.hotspot
-
Registers the default Hotspot collectors.
- DefaultExports() - Constructor for class io.prometheus.client.hotspot.DefaultExports
- DefaultHttpConnectionFactory - Class in io.prometheus.client.exporter
- DefaultHttpConnectionFactory() - Constructor for class io.prometheus.client.exporter.DefaultHttpConnectionFactory
- defaultRegistry - Static variable in class io.prometheus.client.CollectorRegistry
-
The default registry.
- delete(String) - Method in class io.prometheus.client.exporter.PushGateway
-
Deletes metrics from the Pushgateway.
- delete(String, Map) - Method in class io.prometheus.client.exporter.PushGateway
-
Deletes metrics from the Pushgateway.
- describe() - Method in interface io.prometheus.client.Collector.Describable
-
Provide a list of metric families this Collector is expected to return.
- describe() - Method in class io.prometheus.client.Counter
- describe() - Method in class io.prometheus.client.Enumeration
- describe() - Method in class io.prometheus.client.Gauge
- describe() - Method in class io.prometheus.client.Histogram
- describe() - Method in class io.prometheus.client.Info
- describe() - Method in class io.prometheus.client.Summary
- destroy() - Method in class io.prometheus.client.filter.MetricsFilter
- destroy() - Method in class io.prometheus.client.servlet.jakarta.filter.MetricsFilter
- disableExemplars() - Static method in class io.prometheus.client.exemplars.ExemplarConfig
-
Prevent metrics from loading exemplars from an
ExemplarSamplerby default. - doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class io.prometheus.client.servlet.jakarta.filter.MetricsFilter
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class io.prometheus.client.filter.MetricsFilter
- doGet(HttpServletRequestAdapter, HttpServletResponseAdapter) - Method in class io.prometheus.client.servlet.common.exporter.Exporter
- doGet(HttpServletRequest, HttpServletResponse) - Method in class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- doGet(HttpServletRequest, HttpServletResponse) - Method in class io.prometheus.client.exporter.MetricsServlet
- doPost(HttpServletRequestAdapter, HttpServletResponseAdapter) - Method in class io.prometheus.client.servlet.common.exporter.Exporter
- doPost(HttpServletRequest, HttpServletResponse) - Method in class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- doPost(HttpServletRequest, HttpServletResponse) - Method in class io.prometheus.client.exporter.MetricsServlet
- DoubleAdder - Class in io.prometheus.client
-
One or more variables that together maintain an initially zero
doublesum. - DoubleAdder() - Constructor for class io.prometheus.client.DoubleAdder
-
Creates a new adder with initial sum of zero.
- doubleToGoString(double) - Static method in class io.prometheus.client.Collector
-
Convert a double to its string representation in Go.
- doubleValue() - Method in class io.prometheus.client.DoubleAdder
-
Equivalent to
DoubleAdder.sum().
E
- elapsedSeconds() - Method in class io.prometheus.client.SimpleTimer
- elapsedSecondsFromNanos(long, long) - Static method in class io.prometheus.client.SimpleTimer
- enableExemplars() - Static method in class io.prometheus.client.exemplars.ExemplarConfig
-
Allow metrics to load exemplars from an
ExemplarSamplerby default. - encodeToString(byte[]) - Static method in class io.prometheus.client.exporter.Base64
-
Encodes a byte[] to a String using Base64.
- Enumeration - Class in io.prometheus.client
-
Enumeration metric, to track which of a set of states something is in.
- Enumeration.Builder - Class in io.prometheus.client
- Enumeration.Child - Class in io.prometheus.client
-
The value of a single Enumeration.
- equals(Object) - Method in class io.prometheus.client.Collector.MetricFamilySamples
- equals(Object) - Method in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- equals(Object) - Method in class io.prometheus.client.exemplars.Exemplar
- executorService - Variable in class io.prometheus.client.exporter.HTTPServer
- exemplar - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- Exemplar - Class in io.prometheus.client.exemplars
-
Immutable data class holding an Exemplar.
- Exemplar(double, Long, String...) - Constructor for class io.prometheus.client.exemplars.Exemplar
-
Create an Exemplar
- Exemplar(double, Long, Map) - Constructor for class io.prometheus.client.exemplars.Exemplar
-
Create an Exemplar
- Exemplar(double, String...) - Constructor for class io.prometheus.client.exemplars.Exemplar
-
Create an Exemplar without a timestamp
- Exemplar(double, Map) - Constructor for class io.prometheus.client.exemplars.Exemplar
-
Create an Exemplar
- ExemplarConfig - Class in io.prometheus.client.exemplars
-
Static configuration for Exemplar behavior.
- ExemplarConfig() - Constructor for class io.prometheus.client.exemplars.ExemplarConfig
- exemplars - Variable in class io.prometheus.client.Histogram.Child.Value
- ExemplarSampler - Interface in io.prometheus.client.exemplars
-
For convenience, an interface for implementing both, the
CounterExemplarSamplerand theHistogramExemplarSampler. - exponentialBuckets(double, double, int) - Method in class io.prometheus.client.Histogram.Builder
-
Set the upper bounds of buckets for the histogram with an exponential sequence.
- Exporter - Class in io.prometheus.client.servlet.common.exporter
-
The MetricsServlet class exists to provide a simple way of exposing the metrics values.
- Exporter(CollectorRegistry, Predicate) - Constructor for class io.prometheus.client.servlet.common.exporter.Exporter
-
Construct a MetricsServlet for the given registry.
F
- familySamplesList(Collector.Type, List) - Method in class io.prometheus.client.SimpleCollector
- filter(Predicate) - Method in class io.prometheus.client.Collector.MetricFamilySamples
- Filter - Class in io.prometheus.client.servlet.common.filter
-
Filter implements the common functionality provided by the two MetricsFilter implementations: javax version:
io.prometheus.client.filter.MetricsFilterprovided bysimpleclient_servletjakarta version:io.prometheus.client.servlet.jakarta.filter.MetricsFilterprovided bysimpleclient_servlet_jakarta - Filter() - Constructor for class io.prometheus.client.servlet.common.filter.Filter
- Filter(String, String, Integer, double[], boolean) - Constructor for class io.prometheus.client.servlet.common.filter.Filter
-
If you want to configure the filter programmatically instead of via
web.xml, you can pass all configuration parameters to this constructor. - Filter.MetricData - Class in io.prometheus.client.servlet.common.filter
- FilterConfigAdapter - Interface in io.prometheus.client.servlet.common.adapter
- FilterConfigurationException - Exception Class in io.prometheus.client.servlet.common.filter
-
Thrown when there is a misconfiguration in
web.xml. - FilterConfigurationException(String) - Constructor for exception class io.prometheus.client.servlet.common.filter.FilterConfigurationException
- filteredMetricFamilySamples(Predicate) - Method in class io.prometheus.client.CollectorRegistry
-
Enumeration of metrics where
sampleNameFilter.test(name)returnstruefor eachnameinCollector.MetricFamilySamples.getNames(). - filteredMetricFamilySamples(Set) - Method in class io.prometheus.client.CollectorRegistry
-
Enumeration of metrics matching the specified names.
- floatValue() - Method in class io.prometheus.client.DoubleAdder
-
Returns the
DoubleAdder.sum()as afloatafter a narrowing primitive conversion. - fullname - Variable in class io.prometheus.client.SimpleCollector
G
- GarbageCollectorExports - Class in io.prometheus.client.hotspot
-
Exports metrics about JVM garbage collectors.
- GarbageCollectorExports() - Constructor for class io.prometheus.client.hotspot.GarbageCollectorExports
- gatewayBaseURL - Variable in class io.prometheus.client.exporter.PushGateway
- Gauge - Class in io.prometheus.client
-
Gauge metric, to report instantaneous values.
- GAUGE - Enum constant in enum class io.prometheus.client.Collector.Type
- GAUGE_HISTOGRAM - Enum constant in enum class io.prometheus.client.Collector.Type
- Gauge.Builder - Class in io.prometheus.client
- Gauge.Child - Class in io.prometheus.client
-
The value of a single Gauge.
- Gauge.Timer - Class in io.prometheus.client
-
Represents an event being timed.
- GaugeMetricFamily - Class in io.prometheus.client
-
Gauge metric family, for custom collectors and exporters.
- GaugeMetricFamily(String, String, double) - Constructor for class io.prometheus.client.GaugeMetricFamily
- GaugeMetricFamily(String, String, List) - Constructor for class io.prometheus.client.GaugeMetricFamily
- get() - Method in class io.prometheus.client.Counter.Child
-
Get the value of the counter.
- get() - Method in class io.prometheus.client.Counter
-
Get the value of the counter.
- get() - Method in class io.prometheus.client.Enumeration.Child
-
Get the state.
- get() - Method in class io.prometheus.client.Enumeration
-
Get the value of the Enumeration.
- get() - Method in class io.prometheus.client.exporter.SampleNameFilterSupplier
- get() - Method in class io.prometheus.client.Gauge.Child
-
Get the value of the gauge.
- get() - Method in class io.prometheus.client.Gauge
-
Get the value of the gauge.
- get() - Method in class io.prometheus.client.Histogram.Child
-
Get the value of the Histogram.
- get() - Method in class io.prometheus.client.Info.Child
-
Get the info.
- get() - Method in class io.prometheus.client.Info
-
Get the the info.
- get() - Method in class io.prometheus.client.Summary.Child
-
Get the value of the Summary.
- get() - Method in class io.prometheus.client.Summary
-
Get the value of the Summary.
- get() - Method in interface io.prometheus.client.Supplier
- getContextPath() - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletRequestAdapter
- getCounterExemplarSampler() - Static method in class io.prometheus.client.exemplars.ExemplarConfig
- getGarbageCollectorMXBeans() - Method in class io.prometheus.client.hotspot.MemoryAllocationExports
- getHeader(String) - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletRequestAdapter
- getHistogramExemplarSampler() - Static method in class io.prometheus.client.exemplars.ExemplarConfig
- getInitParameter(String) - Method in interface io.prometheus.client.servlet.common.adapter.FilterConfigAdapter
- getInitParameter(String) - Method in interface io.prometheus.client.servlet.common.adapter.ServletConfigAdapter
- getLabelName(int) - Method in class io.prometheus.client.exemplars.Exemplar
-
Get the label name at index
i. - getLabelValue(int) - Method in class io.prometheus.client.exemplars.Exemplar
-
Get the label value at index
i. - getMethod() - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletRequestAdapter
- getNames() - Method in class io.prometheus.client.Collector.MetricFamilySamples
-
List of names that are reserved for Samples in these MetricsFamilySamples.
- getNumberOfLabels() - Method in class io.prometheus.client.exemplars.Exemplar
- getParameterValues(String) - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletRequestAdapter
- getPort() - Method in class io.prometheus.client.exporter.HTTPServer
-
Gets the port number.
- getRequestURI() - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletRequestAdapter
- getSampleValue(String) - Method in class io.prometheus.client.CollectorRegistry
-
Returns the given value, or null if it doesn't exist.
- getSampleValue(String, String[], String[]) - Method in class io.prometheus.client.CollectorRegistry
-
Returns the given value, or null if it doesn't exist.
- getSpanId() - Method in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
- getStatus() - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletResponseAdapter
- getTimestampMs() - Method in class io.prometheus.client.exemplars.Exemplar
- getTraceId() - Method in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
- getValue() - Method in class io.prometheus.client.exemplars.Exemplar
- getWriter() - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletResponseAdapter
- Graphite - Class in io.prometheus.client.bridge
-
Export metrics in the Graphite plaintext format.
- Graphite(String, int) - Constructor for class io.prometheus.client.bridge.Graphite
-
Construct a Graphite Bridge with the given host:port.
H
- handle(HttpExchange) - Method in class io.prometheus.client.exporter.HTTPServer.HTTPMetricHandler
- hashCode() - Method in class io.prometheus.client.Collector.MetricFamilySamples
- hashCode() - Method in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- hashCode() - Method in class io.prometheus.client.exemplars.Exemplar
- help - Variable in class io.prometheus.client.Collector.MetricFamilySamples
- help - Variable in class io.prometheus.client.SimpleCollector
- help(String) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the help string of the metric.
- Histogram - Class in io.prometheus.client
-
Histogram metric, to track distributions of events.
- HISTOGRAM - Enum constant in enum class io.prometheus.client.Collector.Type
- Histogram.Builder - Class in io.prometheus.client
- Histogram.Child - Class in io.prometheus.client
-
The value of a single Histogram.
- Histogram.Child.Value - Class in io.prometheus.client
- Histogram.Timer - Class in io.prometheus.client
-
Represents an event being timed.
- HistogramExemplarSampler - Interface in io.prometheus.client.exemplars
-
Exemplar sampler for histogram metrics.
- HttpConnectionFactory - Interface in io.prometheus.client.exporter
- HTTPMetricHandler(CollectorRegistry) - Constructor for class io.prometheus.client.exporter.HTTPServer.HTTPMetricHandler
- HTTPMetricHandler(CollectorRegistry, Supplier) - Constructor for class io.prometheus.client.exporter.HTTPServer.HTTPMetricHandler
- HTTPServer - Class in io.prometheus.client.exporter
-
Expose Prometheus metrics using a plain Java HttpServer.
- HTTPServer(int) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving the default Prometheus registry using non-daemon threads.
- HTTPServer(int, boolean) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving the default Prometheus registry.
- HTTPServer(HttpServer, CollectorRegistry, boolean) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving Prometheus metrics from the given registry using the given
HttpServer. - HTTPServer(String, int) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving the default Prometheus registry using non-daemon threads.
- HTTPServer(String, int, boolean) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving the default Prometheus registry.
- HTTPServer(InetSocketAddress, CollectorRegistry) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving Prometheus metrics from the given registry using non-daemon threads.
- HTTPServer(InetSocketAddress, CollectorRegistry, boolean) - Constructor for class io.prometheus.client.exporter.HTTPServer
-
Start an HTTP server serving Prometheus metrics from the given registry.
- HTTPServer.Builder - Class in io.prometheus.client.exporter
-
We keep the original constructors of
HTTPServerfor compatibility, but new configuration parameters likesampleNameFiltermust be configured using the Builder. - HTTPServer.HTTPMetricHandler - Class in io.prometheus.client.exporter
-
Handles Metrics collections from the given registry.
- HttpServletRequestAdapter - Interface in io.prometheus.client.servlet.common.adapter
- HttpServletResponseAdapter - Interface in io.prometheus.client.servlet.common.adapter
I
- inc() - Method in class io.prometheus.client.Counter.Child
-
Increment the counter by 1.
- inc() - Method in class io.prometheus.client.Counter
-
Increment the counter with no labels by 1.
- inc() - Method in class io.prometheus.client.Gauge.Child
-
Increment the gauge by 1.
- inc() - Method in class io.prometheus.client.Gauge
-
Increment the gauge with no labels by 1.
- inc(double) - Method in class io.prometheus.client.Counter.Child
-
Increment the counter by the given amount.
- inc(double) - Method in class io.prometheus.client.Counter
-
Increment the counter with no labels by the given amount.
- inc(double) - Method in class io.prometheus.client.Gauge.Child
-
Increment the gauge by the given amount.
- inc(double) - Method in class io.prometheus.client.Gauge
-
Increment the gauge with no labels by the given amount.
- incWithExemplar(double, String...) - Method in class io.prometheus.client.Counter.Child
-
Like
Counter.Child.inc(double), but additionally creates an exemplar. - incWithExemplar(double, String...) - Method in class io.prometheus.client.Counter
-
Like
Counter.Child.incWithExemplar(double, String...), but for the counter without labels. - incWithExemplar(double, Map) - Method in class io.prometheus.client.Counter.Child
-
Same as
Counter.Child.incWithExemplar(double, String...), but the exemplar labels are passed as aMap. - incWithExemplar(double, Map) - Method in class io.prometheus.client.Counter
-
Like
Counter.Child.incWithExemplar(double, Map), but for the counter without labels. - incWithExemplar(String...) - Method in class io.prometheus.client.Counter.Child
-
Same as
incWithExemplar(1, exemplarLabels). - incWithExemplar(String...) - Method in class io.prometheus.client.Counter
-
Like
Counter.Child.incWithExemplar(String...), but for the counter without labels. - incWithExemplar(Map) - Method in class io.prometheus.client.Counter.Child
-
Same as
incWithExemplar(1, exemplarLabels). - incWithExemplar(Map) - Method in class io.prometheus.client.Counter
-
Like
Counter.Child.incWithExemplar(Map), but for the counter without labels. - info(String...) - Method in class io.prometheus.client.Info.Child
-
Set the info.
- info(String...) - Method in class io.prometheus.client.Info
-
Set the info on the info with no labels.
- info(Map) - Method in class io.prometheus.client.Info.Child
-
Set the info.
- info(Map) - Method in class io.prometheus.client.Info
-
Set the info on the info with no labels.
- Info - Class in io.prometheus.client
-
Info metric, key-value pairs.
- INFO - Enum constant in enum class io.prometheus.client.Collector.Type
- Info.Builder - Class in io.prometheus.client
- Info.Child - Class in io.prometheus.client
-
The value of a single Info.
- init(FilterConfigAdapter) - Method in class io.prometheus.client.servlet.common.filter.Filter
-
Common implementation of
javax.servlet.Filter.init()andjakarta.servlet.Filter.init(). - init(ServletConfigAdapter) - Method in class io.prometheus.client.servlet.common.exporter.Exporter
- init(FilterConfig) - Method in class io.prometheus.client.servlet.jakarta.filter.MetricsFilter
- init(ServletConfig) - Method in class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- init(FilterConfig) - Method in class io.prometheus.client.filter.MetricsFilter
- init(ServletConfig) - Method in class io.prometheus.client.exporter.MetricsServlet
- Initialization - Section in class io.prometheus.client.SimpleCollector
- initialize() - Static method in class io.prometheus.client.hotspot.DefaultExports
-
Register the default Hotspot collectors with the default registry.
- initializeNoLabelsChild() - Method in class io.prometheus.client.SimpleCollector
-
Initialize the child with no labels.
- instanceIPGroupingKey() - Static method in class io.prometheus.client.exporter.PushGateway
-
Returns a grouping key with the instance label set to the machine's IP address.
- InstrumentedAppender - Class in io.prometheus.client.log4j
- InstrumentedAppender - Class in io.prometheus.client.log4j2
-
Log4j2 log statements at various log levels
- InstrumentedAppender - Class in io.prometheus.client.logback
- InstrumentedAppender() - Constructor for class io.prometheus.client.log4j.InstrumentedAppender
-
Create a new instrumented appender using the default registry.
- InstrumentedAppender() - Constructor for class io.prometheus.client.logback.InstrumentedAppender
-
Create a new instrumented appender using the default registry.
- InstrumentedAppender(CollectorRegistry) - Constructor for class io.prometheus.client.logback.InstrumentedAppender
-
Create a new instrumented appender using the supplied registry.
- InstrumentedAppender(String) - Constructor for class io.prometheus.client.log4j2.InstrumentedAppender
-
Create a new instrumented appender using the default registry.
- intValue() - Method in class io.prometheus.client.DoubleAdder
-
Returns the
DoubleAdder.sum()as anintafter a narrowing primitive conversion. - io.prometheus.client - package io.prometheus.client
- io.prometheus.client.bridge - package io.prometheus.client.bridge
- io.prometheus.client.cache.caffeine - package io.prometheus.client.cache.caffeine
- io.prometheus.client.exemplars - package io.prometheus.client.exemplars
- io.prometheus.client.exemplars.tracer.common - package io.prometheus.client.exemplars.tracer.common
- io.prometheus.client.exporter - package io.prometheus.client.exporter
- io.prometheus.client.exporter.common - package io.prometheus.client.exporter.common
- io.prometheus.client.filter - package io.prometheus.client.filter
- io.prometheus.client.guava.cache - package io.prometheus.client.guava.cache
- io.prometheus.client.hotspot - package io.prometheus.client.hotspot
- io.prometheus.client.internal - package io.prometheus.client.internal
- io.prometheus.client.jetty - package io.prometheus.client.jetty
- io.prometheus.client.log4j - package io.prometheus.client.log4j
- io.prometheus.client.log4j2 - package io.prometheus.client.log4j2
- io.prometheus.client.logback - package io.prometheus.client.logback
- io.prometheus.client.servlet.common.adapter - package io.prometheus.client.servlet.common.adapter
- io.prometheus.client.servlet.common.exporter - package io.prometheus.client.servlet.common.exporter
- io.prometheus.client.servlet.common.filter - package io.prometheus.client.servlet.common.filter
- io.prometheus.client.servlet.jakarta - package io.prometheus.client.servlet.jakarta
- io.prometheus.client.servlet.jakarta.exporter - package io.prometheus.client.servlet.jakarta.exporter
- io.prometheus.client.servlet.jakarta.filter - package io.prometheus.client.servlet.jakarta.filter
- isExemplarsEnabled() - Static method in class io.prometheus.client.exemplars.ExemplarConfig
- isSampled() - Method in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
J
- JettyStatisticsCollector - Class in io.prometheus.client.jetty
-
Collect metrics from jetty's org.eclipse.jetty.server.handler.StatisticsHandler.
- JettyStatisticsCollector(StatisticsHandler) - Constructor for class io.prometheus.client.jetty.JettyStatisticsCollector
- JVM_THREADS_STATE - Static variable in class io.prometheus.client.hotspot.ThreadExports
L
- labelNames - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- labelNames - Variable in class io.prometheus.client.SimpleCollector
- labelNames(String...) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the labelNames of the metric.
- labels(String...) - Method in class io.prometheus.client.SimpleCollector
-
Return the Child with the given labels, creating it if needed.
- Labels - Section in class io.prometheus.client.SimpleCollector
- labelValues - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- linearBuckets(double, double, int) - Method in class io.prometheus.client.Histogram.Builder
-
Set the upper bounds of buckets for the histogram with a linear sequence.
- longValue() - Method in class io.prometheus.client.DoubleAdder
-
Returns the
DoubleAdder.sum()as alongafter a narrowing primitive conversion.
M
- mapToArray(Map) - Static method in class io.prometheus.client.exemplars.Exemplar
-
Convert the map to an array
[key1, value1, key2, value2, ...]. - maxAgeSeconds(long) - Method in class io.prometheus.client.Summary.Builder
-
The class JavaDoc for
Summaryhas more information onSummary.Builder.maxAgeSeconds(long) - MemoryAllocationExports - Class in io.prometheus.client.hotspot
- MemoryAllocationExports() - Constructor for class io.prometheus.client.hotspot.MemoryAllocationExports
- MemoryPoolsExports - Class in io.prometheus.client.hotspot
-
Exports metrics about JVM memory areas.
- MemoryPoolsExports() - Constructor for class io.prometheus.client.hotspot.MemoryPoolsExports
- MemoryPoolsExports(MemoryMXBean, List) - Constructor for class io.prometheus.client.hotspot.MemoryPoolsExports
- metricFamilySamples() - Method in class io.prometheus.client.CollectorRegistry
-
Enumeration of metrics of all registered collectors.
- MetricFamilySamples(String, Collector.Type, String, List) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples
- MetricFamilySamples(String, String, Collector.Type, String, List) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples
- MetricsFilter - Class in io.prometheus.client.filter
-
The MetricsFilter class provides a high-level filter that enables tunable collection of metrics for Servlet performance.
- MetricsFilter - Class in io.prometheus.client.servlet.jakarta.filter
-
The MetricsFilter class provides a high-level filter that enables tunable collection of metrics for Servlet performance.
- MetricsFilter() - Constructor for class io.prometheus.client.filter.MetricsFilter
- MetricsFilter() - Constructor for class io.prometheus.client.servlet.jakarta.filter.MetricsFilter
- MetricsFilter(String, String, Integer, double[]) - Constructor for class io.prometheus.client.filter.MetricsFilter
- MetricsFilter(String, String, Integer, double[], boolean) - Constructor for class io.prometheus.client.filter.MetricsFilter
- MetricsFilter(String, String, Integer, double[], boolean) - Constructor for class io.prometheus.client.servlet.jakarta.filter.MetricsFilter
- MetricsServlet - Class in io.prometheus.client.exporter
-
The MetricsServlet class provides a simple way of exposing the metrics values.
- MetricsServlet - Class in io.prometheus.client.servlet.jakarta.exporter
-
The MetricsServlet class provides a simple way of exposing the metrics values.
- MetricsServlet() - Constructor for class io.prometheus.client.exporter.MetricsServlet
- MetricsServlet() - Constructor for class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- MetricsServlet(CollectorRegistry) - Constructor for class io.prometheus.client.exporter.MetricsServlet
- MetricsServlet(CollectorRegistry) - Constructor for class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- MetricsServlet(CollectorRegistry, Predicate) - Constructor for class io.prometheus.client.exporter.MetricsServlet
- MetricsServlet(CollectorRegistry, Predicate) - Constructor for class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- MetricsServlet(Predicate) - Constructor for class io.prometheus.client.exporter.MetricsServlet
- MetricsServlet(Predicate) - Constructor for class io.prometheus.client.servlet.jakarta.exporter.MetricsServlet
- MILLISECONDS_PER_SECOND - Static variable in class io.prometheus.client.Collector
-
Number of milliseconds in a second.
N
- name - Variable in class io.prometheus.client.Collector.MetricFamilySamples
- name - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- name(String) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the name of the metric.
- NAME_MUST_BE_EQUAL_TO - Static variable in class io.prometheus.client.servlet.common.exporter.Exporter
- NAME_MUST_NOT_BE_EQUAL_TO - Static variable in class io.prometheus.client.servlet.common.exporter.Exporter
- NAME_MUST_NOT_START_WITH - Static variable in class io.prometheus.client.servlet.common.exporter.Exporter
- NAME_MUST_START_WITH - Static variable in class io.prometheus.client.servlet.common.exporter.Exporter
- nameMustBeEqualTo(String...) - Method in class io.prometheus.client.SampleNameFilter.Builder
- nameMustBeEqualTo(Collection) - Method in class io.prometheus.client.SampleNameFilter.Builder
-
Only samples with one of the
nameswill be included. - nameMustNotBeEqualTo(String...) - Method in class io.prometheus.client.SampleNameFilter.Builder
- nameMustNotBeEqualTo(Collection) - Method in class io.prometheus.client.SampleNameFilter.Builder
-
All samples that are not in
nameswill be excluded. - nameMustNotStartWith(String...) - Method in class io.prometheus.client.SampleNameFilter.Builder
- nameMustNotStartWith(Collection) - Method in class io.prometheus.client.SampleNameFilter.Builder
-
Samples with names starting with one of the
prefixeswill be excluded. - nameMustStartWith(String...) - Method in class io.prometheus.client.SampleNameFilter.Builder
- nameMustStartWith(Collection) - Method in class io.prometheus.client.SampleNameFilter.Builder
-
Only samples whose name starts with one of the
prefixeswill be included. - namespace(String) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the namespace of the metric.
- NANOSECONDS_PER_SECOND - Static variable in class io.prometheus.client.Collector
-
Number of nanoseconds in a second.
- newChild() - Method in class io.prometheus.client.Counter
- newChild() - Method in class io.prometheus.client.Enumeration
- newChild() - Method in class io.prometheus.client.Gauge
- newChild() - Method in class io.prometheus.client.Histogram
- newChild() - Method in class io.prometheus.client.Info
- newChild() - Method in class io.prometheus.client.SimpleCollector
-
Return a new child, workaround for Java generics limitations.
- newChild() - Method in class io.prometheus.client.Summary
- noLabelsChild - Variable in class io.prometheus.client.SimpleCollector
O
- observe(double) - Method in class io.prometheus.client.Histogram.Child
-
Observe the given amount.
- observe(double) - Method in class io.prometheus.client.Histogram
-
Observe the given amount on the histogram with no labels.
- observe(double) - Method in class io.prometheus.client.Summary.Child
-
Observe the given amount.
- observe(double) - Method in class io.prometheus.client.Summary
-
Observe the given amount on the summary with no labels.
- observeDuration() - Method in class io.prometheus.client.Histogram.Timer
-
Observe the amount of time in seconds since
Histogram.Child.startTimer()was called. - observeDuration() - Method in class io.prometheus.client.Summary.Timer
-
Observe the amount of time in seconds since
Summary.Child.startTimer()was called. - observeDuration(Filter.MetricData, HttpServletResponseAdapter) - Method in class io.prometheus.client.servlet.common.filter.Filter
-
To be called at the end of
javax.servlet.Filter.doFilter()orjakarta.servlet.Filter.doFilter(). - observeDurationWithExemplar(String...) - Method in class io.prometheus.client.Histogram.Timer
- observeDurationWithExemplar(Map) - Method in class io.prometheus.client.Histogram.Timer
- observeWithExemplar(double, String...) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.observe(double), but additionally creates an exemplar. - observeWithExemplar(double, String...) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.Child.observeWithExemplar(double, String...), but for the histogram without labels. - observeWithExemplar(double, Map) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.observeWithExemplar(double, String...), but the exemplar labels are passed as aMap. - observeWithExemplar(double, Map) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.Child.observeWithExemplar(double, Map), but for the histogram without labels. - of(Predicate) - Static method in class io.prometheus.client.exporter.SampleNameFilterSupplier
P
- parseQuery(String) - Static method in class io.prometheus.client.exporter.HTTPServer
- Predicate<T> - Interface in io.prometheus.client
-
Replacement for Java 8's
java.util.function.Predicatefor compatibility with Java versions < 8. - push(CollectorRegistry) - Method in class io.prometheus.client.bridge.Graphite
-
Push samples from the given registry to Graphite.
- push(CollectorRegistry, String) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a registry, replacing all those with the same job and no grouping key.
- push(CollectorRegistry, String, Map) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a registry, replacing all those with the same job and grouping key.
- push(Collector, String) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a Collector, replacing all those with the same job and no grouping key.
- push(Collector, String, Map) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a Collector, replacing all those with the same job and grouping key.
- pushAdd(CollectorRegistry, String) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a registry, replacing only previously pushed metrics of the same name and job and no grouping key.
- pushAdd(CollectorRegistry, String, Map) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a registry, replacing only previously pushed metrics of the same name, job and grouping key.
- pushAdd(Collector, String) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a Collector, replacing only previously pushed metrics of the same name and job and no grouping key.
- pushAdd(Collector, String, Map) - Method in class io.prometheus.client.exporter.PushGateway
-
Pushes all metrics in a Collector, replacing only previously pushed metrics of the same name, job and grouping key.
- PushGateway - Class in io.prometheus.client.exporter
-
Export metrics via the Prometheus Pushgateway.
- PushGateway(String) - Constructor for class io.prometheus.client.exporter.PushGateway
-
Construct a Pushgateway, with the given address.
- PushGateway(URL) - Constructor for class io.prometheus.client.exporter.PushGateway
-
Construct a Pushgateway, with the given URL.
Q
- quantile(double, double) - Method in class io.prometheus.client.Summary.Builder
-
The class JavaDoc for
Summaryhas more information onSummary.Builder.quantile(double, double). - quantiles - Variable in class io.prometheus.client.Summary.Child.Value
- QueuedThreadPoolStatisticsCollector - Class in io.prometheus.client.jetty
- QueuedThreadPoolStatisticsCollector() - Constructor for class io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
- QueuedThreadPoolStatisticsCollector(QueuedThreadPool, String) - Constructor for class io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
R
- register() - Method in class io.prometheus.client.Collector
-
Register the Collector with the default registry.
- register() - Method in class io.prometheus.client.SimpleCollector.Builder
-
Create and register the Collector with the default registry.
- register(Collector) - Method in class io.prometheus.client.CollectorRegistry
-
Register a Collector.
- register(CollectorRegistry) - Method in class io.prometheus.client.Collector
-
Register the Collector with the given registry.
- register(CollectorRegistry) - Static method in class io.prometheus.client.hotspot.DefaultExports
-
Register the default Hotspot collectors with the given registry.
- register(CollectorRegistry) - Method in class io.prometheus.client.jetty.QueuedThreadPoolStatisticsCollector
- register(CollectorRegistry) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Create and register the Collector with the given registry.
- remove(String...) - Method in class io.prometheus.client.SimpleCollector
-
Remove the Child with the given labels.
- removeCache(String) - Method in class io.prometheus.client.cache.caffeine.CacheMetricsCollector
-
Remove the cache with the given name.
- removeCache(String) - Method in class io.prometheus.client.guava.cache.CacheMetricsCollector
-
Remove the cache with the given name.
- requiresLayout() - Method in class io.prometheus.client.log4j.InstrumentedAppender
- reset() - Method in class io.prometheus.client.DoubleAdder
-
Resets variables maintaining the sum to zero.
- restrictToNamesEqualTo(Predicate, Collection) - Static method in class io.prometheus.client.SampleNameFilter
-
Helper method to compose a filter such that Sample names must match the existing filter and be in the list of allowedNames This should be used to implement the
names[]query parameter in HTTP exporters.
S
- sample(double, double, double, Exemplar) - Method in class io.prometheus.client.exemplars.DefaultExemplarSampler
- sample(double, double, double, Exemplar) - Method in interface io.prometheus.client.exemplars.HistogramExemplarSampler
- sample(double, Exemplar) - Method in interface io.prometheus.client.exemplars.CounterExemplarSampler
- sample(double, Exemplar) - Method in class io.prometheus.client.exemplars.DefaultExemplarSampler
- Sample(String, List, List, double) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples.Sample
- Sample(String, List, List, double, Exemplar) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples.Sample
- Sample(String, List, List, double, Exemplar, Long) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples.Sample
- Sample(String, List, List, double, Long) - Constructor for class io.prometheus.client.Collector.MetricFamilySamples.Sample
- SampleNameFilter - Class in io.prometheus.client
-
Filter samples (i.e. time series) by name.
- SampleNameFilter.Builder - Class in io.prometheus.client
- SampleNameFilterSupplier - Class in io.prometheus.client.exporter
-
For convenience, an implementation of a
Supplier<Predicate<String>>that always returns the same sampleNameFilter. - samples - Variable in class io.prometheus.client.Collector.MetricFamilySamples
- sanitizeMetricName(String) - Static method in class io.prometheus.client.Collector
-
Sanitize metric name
- server - Variable in class io.prometheus.client.exporter.HTTPServer
- ServletConfigAdapter - Interface in io.prometheus.client.servlet.common.adapter
- ServletConfigurationException - Exception Class in io.prometheus.client.servlet.common.exporter
- ServletConfigurationException() - Constructor for exception class io.prometheus.client.servlet.common.exporter.ServletConfigurationException
- set(double) - Method in class io.prometheus.client.DoubleAdder
- set(double) - Method in class io.prometheus.client.Gauge.Child
-
Set the gauge to the given value.
- set(double) - Method in class io.prometheus.client.Gauge
-
Set the gauge with no labels to the given value.
- setChild(Child, String...) - Method in class io.prometheus.client.SimpleCollector
-
Replace the Child with the given labels.
- setConnectionFactory(HttpConnectionFactory) - Method in class io.prometheus.client.exporter.PushGateway
- setContentType(String) - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletResponseAdapter
- setCounterExemplarSampler(CounterExemplarSampler) - Static method in class io.prometheus.client.exemplars.ExemplarConfig
-
Set the default exemplar sampler for Counters.
- setDuration() - Method in class io.prometheus.client.Gauge.Timer
-
Set the amount of time in seconds since
Gauge.Child.startTimer()was called. - setHistogramExemplarSampler(HistogramExemplarSampler) - Static method in class io.prometheus.client.exemplars.ExemplarConfig
-
Set the default exemplar sampler for Histograms.
- setStatus(int) - Method in interface io.prometheus.client.servlet.common.adapter.HttpServletResponseAdapter
- setToCurrentTime() - Method in class io.prometheus.client.Gauge.Child
-
Set the gauge to the current unixtime.
- setToCurrentTime() - Method in class io.prometheus.client.Gauge
-
Set the gauge with no labels to the current unixtime.
- setToTime(Runnable) - Method in class io.prometheus.client.Gauge.Child
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- setToTime(Runnable) - Method in class io.prometheus.client.Gauge
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- setToTime(Callable) - Method in class io.prometheus.client.Gauge.Child
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- setToTime(Callable) - Method in class io.prometheus.client.Gauge
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- shouldUseCompression(HttpExchange) - Static method in class io.prometheus.client.exporter.HTTPServer
- SimpleCollector<Child> - Class in io.prometheus.client
- SimpleCollector(SimpleCollector.Builder) - Constructor for class io.prometheus.client.SimpleCollector
- SimpleCollector.Builder<B,
C> - Class in io.prometheus.client -
Builders let you configure and then create collectors.
- SimpleTimer - Class in io.prometheus.client
-
SimpleTimer, to measure elapsed duration in seconds as a double.
- SimpleTimer() - Constructor for class io.prometheus.client.SimpleTimer
- SpanContextSupplier - Interface in io.prometheus.client.exemplars.tracer.common
- StandardExports - Class in io.prometheus.client.hotspot
-
Exports the standard exports common across all prometheus clients.
- StandardExports() - Constructor for class io.prometheus.client.hotspot.StandardExports
- start() - Method in class io.prometheus.client.logback.InstrumentedAppender
- start(CollectorRegistry) - Method in class io.prometheus.client.bridge.Graphite
-
Push samples from the given registry to Graphite every minute.
- start(CollectorRegistry, int) - Method in class io.prometheus.client.bridge.Graphite
-
Push samples from the given registry to Graphite at the given interval.
- startTimer() - Method in class io.prometheus.client.Gauge.Child
-
Start a timer to track a duration.
- startTimer() - Method in class io.prometheus.client.Gauge
-
Start a timer to track a duration, for the gauge with no labels.
- startTimer() - Method in class io.prometheus.client.Histogram.Child
-
Start a timer to track a duration.
- startTimer() - Method in class io.prometheus.client.Histogram
-
Start a timer to track a duration on the histogram with no labels.
- startTimer() - Method in class io.prometheus.client.Summary.Child
-
Start a timer to track a duration.
- startTimer() - Method in class io.prometheus.client.Summary
-
Start a timer to track a duration on the summary with no labels.
- startTimer(HttpServletRequestAdapter) - Method in class io.prometheus.client.servlet.common.filter.Filter
-
To be called at the beginning of
javax.servlet.Filter.doFilter()orjakarta.servlet.Filter.doFilter(). - state(Enum) - Method in class io.prometheus.client.Enumeration.Child
-
Set the state.
- state(Enum) - Method in class io.prometheus.client.Enumeration
-
Set the state on the enum with no labels.
- state(String) - Method in class io.prometheus.client.Enumeration.Child
-
Set the state.
- state(String) - Method in class io.prometheus.client.Enumeration
-
Set the state on the enum with no labels.
- STATE_SET - Enum constant in enum class io.prometheus.client.Collector.Type
- states(Class) - Method in class io.prometheus.client.Enumeration.Builder
-
Take states from the names of the values in an Enum class.
- states(String...) - Method in class io.prometheus.client.Enumeration.Builder
- stop() - Method in class io.prometheus.client.exporter.HTTPServer
-
Deprecated.renamed to close(), so that the HTTPServer can be used in try-with-resources.
- stringToList(String) - Static method in class io.prometheus.client.SampleNameFilter
-
Helper method to deserialize a
delimiter-separated list of Strings into aList<String>. - subsystem(String) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the subsystem of the metric.
- sum - Variable in class io.prometheus.client.Histogram.Child.Value
- sum - Variable in class io.prometheus.client.Summary.Child.Value
- sum() - Method in class io.prometheus.client.DoubleAdder
-
Returns the current sum.
- Summary - Class in io.prometheus.client
- SUMMARY - Enum constant in enum class io.prometheus.client.Collector.Type
- Summary.Builder - Class in io.prometheus.client
- Summary.Child - Class in io.prometheus.client
-
The value of a single Summary.
- Summary.Child.Value - Class in io.prometheus.client
- Summary.Timer - Class in io.prometheus.client
-
Represents an event being timed.
- SummaryMetricFamily - Class in io.prometheus.client
-
Summary metric family, for custom collectors and exporters.
- SummaryMetricFamily(String, String, double, double) - Constructor for class io.prometheus.client.SummaryMetricFamily
- SummaryMetricFamily(String, String, List) - Constructor for class io.prometheus.client.SummaryMetricFamily
- SummaryMetricFamily(String, String, List, List) - Constructor for class io.prometheus.client.SummaryMetricFamily
- sumThenReset() - Method in class io.prometheus.client.DoubleAdder
-
Equivalent in effect to
DoubleAdder.sum()followed byDoubleAdder.reset(). - Supplier<T> - Interface in io.prometheus.client
-
Replacement for Java 8's
java.util.function.Supplierfor compatibility with Java versions < 8.
T
- test(String) - Method in class io.prometheus.client.SampleNameFilter
- test(T) - Method in interface io.prometheus.client.Predicate
- TextFormat - Class in io.prometheus.client.exporter.common
- TextFormat() - Constructor for class io.prometheus.client.exporter.common.TextFormat
- ThreadExports - Class in io.prometheus.client.hotspot
-
Exports metrics about JVM thread areas.
- ThreadExports() - Constructor for class io.prometheus.client.hotspot.ThreadExports
- ThreadExports(ThreadMXBean) - Constructor for class io.prometheus.client.hotspot.ThreadExports
- time(Runnable) - Method in class io.prometheus.client.Histogram.Child
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Runnable) - Method in class io.prometheus.client.Histogram
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Runnable) - Method in class io.prometheus.client.Summary.Child
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Runnable) - Method in class io.prometheus.client.Summary
-
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Callable) - Method in class io.prometheus.client.Histogram.Child
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Callable) - Method in class io.prometheus.client.Histogram
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Callable) - Method in class io.prometheus.client.Summary.Child
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- time(Callable) - Method in class io.prometheus.client.Summary
-
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.
- timestampMs - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- timeWithExemplar(Runnable, String...) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.time(Runnable), but additionally create an exemplar. - timeWithExemplar(Runnable, String...) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.time(Runnable), but additionally create an exemplar. - timeWithExemplar(Runnable, Map) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.time(Runnable), but additionally create an exemplar. - timeWithExemplar(Runnable, Map) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.time(Runnable), but additionally create an exemplar. - timeWithExemplar(Callable, String...) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.time(Callable), but additionally create an exemplar. - timeWithExemplar(Callable, String...) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.time(Callable), but additionally create an exemplar. - timeWithExemplar(Callable, Map) - Method in class io.prometheus.client.Histogram.Child
-
Like
Histogram.Child.time(Callable), but additionally create an exemplar. - timeWithExemplar(Callable, Map) - Method in class io.prometheus.client.Histogram
-
Like
Histogram.time(Callable), but additionally create an exemplar. - toString() - Method in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- toString() - Method in class io.prometheus.client.Collector.MetricFamilySamples
- toString() - Method in class io.prometheus.client.DoubleAdder
-
Returns the String representation of the
DoubleAdder.sum(). - type - Variable in class io.prometheus.client.Collector.MetricFamilySamples
U
- unit - Variable in class io.prometheus.client.Collector.MetricFamilySamples
- unit - Variable in class io.prometheus.client.SimpleCollector
- unit(String) - Method in class io.prometheus.client.SimpleCollector.Builder
-
Set the unit of the metric.
- UNKNOWN - Enum constant in enum class io.prometheus.client.Collector.Type
- UNKNOWN - Static variable in class io.prometheus.client.hotspot.ThreadExports
- unregister(Collector) - Method in class io.prometheus.client.CollectorRegistry
-
Unregister a Collector.
V
- value - Variable in class io.prometheus.client.Collector.MetricFamilySamples.Sample
- Value(double, double[], Exemplar[], long) - Constructor for class io.prometheus.client.Histogram.Child.Value
- valueOf(String) - Static method in enum class io.prometheus.client.Collector.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.prometheus.client.Collector.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VersionInfoExports - Class in io.prometheus.client.hotspot
-
Exports JVM version info.
- VersionInfoExports() - Constructor for class io.prometheus.client.hotspot.VersionInfoExports
W
- withAuthenticator(Authenticator) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional:
Authenticatorto use to support authentication. - withDaemonThreads(boolean) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
By default, the
HTTPServeruses non-daemon threads. - withExecutorService(ExecutorService) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional: ExecutorService used by the
httpServer. - withExemplars() - Method in class io.prometheus.client.Counter.Builder
-
Allow this counter to load exemplars from a
CounterExemplarSampler. - withExemplars() - Method in class io.prometheus.client.Histogram.Builder
-
Allow this histogram to load exemplars from a
HistogramExemplarSampler. - withExemplarSampler(CounterExemplarSampler) - Method in class io.prometheus.client.Counter.Builder
-
Enable exemplars and provide a custom
CounterExemplarSampler. - withExemplarSampler(HistogramExemplarSampler) - Method in class io.prometheus.client.Histogram.Builder
-
Enable exemplars and provide a custom
HistogramExemplarSampler. - withHostname(String) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Use this hostname to resolve the IP address to bind to.
- withHttpsConfigurator(HttpsConfigurator) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional:
HttpsConfiguratorto use to support TLS/SSL - withHttpServer(HttpServer) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Use this httpServer.
- withInetAddress(InetAddress) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Bind to this IP address.
- withInetSocketAddress(InetSocketAddress) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Listen on this address.
- withoutExemplars() - Method in class io.prometheus.client.Counter.Builder
-
Prevent this counter from loading exemplars from a
CounterExemplarSampler. - withoutExemplars() - Method in class io.prometheus.client.Histogram.Builder
-
Prevent this histogram from loading exemplars from a
HistogramExemplarSampler. - withPort(int) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Port to bind to.
- withRegistry(CollectorRegistry) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional: Default is
CollectorRegistry.defaultRegistry. - withSampleNameFilter(Predicate) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional: Only export time series where
sampleNameFilter.test(name)returns true. - withSampleNameFilterSupplier(Supplier) - Method in class io.prometheus.client.exporter.HTTPServer.Builder
-
Optional: Only export time series where
sampleNameFilter.test(name)returns true. - wrap(FilterConfig) - Static method in class io.prometheus.client.servlet.jakarta.Adapter
- wrap(HttpServletRequest) - Static method in class io.prometheus.client.servlet.jakarta.Adapter
- wrap(HttpServletResponse) - Static method in class io.prometheus.client.servlet.jakarta.Adapter
- wrap(ServletConfig) - Static method in class io.prometheus.client.servlet.jakarta.Adapter
- wrap(FilterConfig) - Static method in class io.prometheus.client.internal.Adapter
- wrap(HttpServletRequest) - Static method in class io.prometheus.client.internal.Adapter
- wrap(HttpServletResponse) - Static method in class io.prometheus.client.internal.Adapter
- wrap(ServletConfig) - Static method in class io.prometheus.client.internal.Adapter
- write004(Writer, Enumeration) - Static method in class io.prometheus.client.exporter.common.TextFormat
-
Write out the text version 0.0.4 of the given MetricFamilySamples.
- writeFormat(String, Writer, Enumeration) - Static method in class io.prometheus.client.exporter.common.TextFormat
-
Write out the given MetricFamilySamples in a format per the contentType.
- writeOpenMetrics100(Writer, Enumeration) - Static method in class io.prometheus.client.exporter.common.TextFormat
-
Write out the OpenMetrics text version 1.0.0 of the given MetricFamilySamples.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form