Uses of Interface
io.prometheus.client.Predicate
-
-
Uses of Predicate in io.prometheus.client
Classes in io.prometheus.client that implement Predicate Modifier and Type Class Description class
SampleNameFilter
Filter samples (i.e.private static class
SampleNameFilter.AllowAll
Fields in io.prometheus.client declared as Predicate Modifier and Type Field Description static Predicate<java.lang.String>
SampleNameFilter. ALLOW_ALL
For convenience, a filter that allows all names.private Predicate<java.lang.String>
CollectorRegistry.MetricFamilySamplesEnumeration. sampleNameFilter
Methods in io.prometheus.client that return Predicate Modifier and Type Method Description Predicate<java.lang.String>
SampleNameFilter. and(Predicate<? super java.lang.String> other)
Replacement for Java 8'sPredicate.and()
for compatibility with Java versions < 8.static Predicate<java.lang.String>
SampleNameFilter. restrictToNamesEqualTo(Predicate<java.lang.String> filter, java.util.Collection<java.lang.String> allowedNames)
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 thenames[]
query parameter in HTTP exporters.Methods in io.prometheus.client with parameters of type Predicate Modifier and Type Method Description Predicate<java.lang.String>
SampleNameFilter. and(Predicate<? super java.lang.String> other)
Replacement for Java 8'sPredicate.and()
for compatibility with Java versions < 8.java.util.List<Collector.MetricFamilySamples>
Collector. collect(Predicate<java.lang.String> sampleNameFilter)
LikeCollector.collect()
, but the result should only containMetricFamilySamples
wheresampleNameFilter.test(name)
istrue
for at least one Sample name.Collector.MetricFamilySamples
Collector.MetricFamilySamples. filter(Predicate<java.lang.String> sampleNameFilter)
java.util.Enumeration<Collector.MetricFamilySamples>
CollectorRegistry. filteredMetricFamilySamples(Predicate<java.lang.String> sampleNameFilter)
Enumeration of metrics wheresampleNameFilter.test(name)
returnstrue
for eachname
inCollector.MetricFamilySamples.getNames()
.static Predicate<java.lang.String>
SampleNameFilter. restrictToNamesEqualTo(Predicate<java.lang.String> filter, java.util.Collection<java.lang.String> allowedNames)
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 thenames[]
query parameter in HTTP exporters.Constructors in io.prometheus.client with parameters of type Predicate Constructor Description MetricFamilySamplesEnumeration(Predicate<java.lang.String> sampleNameFilter)
-
Uses of Predicate in io.prometheus.client.exporter
Fields in io.prometheus.client.exporter declared as Predicate Modifier and Type Field Description private Predicate<java.lang.String>
HTTPServer.Builder. sampleNameFilter
private Predicate<java.lang.String>
SampleNameFilterSupplier. sampleNameFilter
Fields in io.prometheus.client.exporter with type parameters of type Predicate Modifier and Type Field Description private Supplier<Predicate<java.lang.String>>
HTTPServer.Builder. sampleNameFilterSupplier
private Supplier<Predicate<java.lang.String>>
HTTPServer.HTTPMetricHandler. sampleNameFilterSupplier
Methods in io.prometheus.client.exporter that return Predicate Modifier and Type Method Description Predicate<java.lang.String>
SampleNameFilterSupplier. get()
Methods in io.prometheus.client.exporter with parameters of type Predicate Modifier and Type Method Description static SampleNameFilterSupplier
SampleNameFilterSupplier. of(Predicate<java.lang.String> sampleNameFilter)
HTTPServer.Builder
HTTPServer.Builder. withSampleNameFilter(Predicate<java.lang.String> sampleNameFilter)
Optional: Only export time series wheresampleNameFilter.test(name)
returns true.Method parameters in io.prometheus.client.exporter with type arguments of type Predicate Modifier and Type Method Description HTTPServer.Builder
HTTPServer.Builder. withSampleNameFilterSupplier(Supplier<Predicate<java.lang.String>> sampleNameFilterSupplier)
Optional: Only export time series wheresampleNameFilter.test(name)
returns true.Constructors in io.prometheus.client.exporter with parameters of type Predicate Constructor Description MetricsServlet(CollectorRegistry registry, Predicate<java.lang.String> sampleNameFilter)
MetricsServlet(Predicate<java.lang.String> sampleNameFilter)
SampleNameFilterSupplier(Predicate<java.lang.String> sampleNameFilter)
Constructor parameters in io.prometheus.client.exporter with type arguments of type Predicate Constructor Description HTTPMetricHandler(CollectorRegistry registry, Supplier<Predicate<java.lang.String>> sampleNameFilterSupplier)
HTTPServer(java.util.concurrent.ExecutorService executorService, com.sun.net.httpserver.HttpServer httpServer, CollectorRegistry registry, boolean daemon, Supplier<Predicate<java.lang.String>> sampleNameFilterSupplier, com.sun.net.httpserver.Authenticator authenticator)
-
Uses of Predicate in io.prometheus.client.hotspot
Methods in io.prometheus.client.hotspot with parameters of type Predicate Modifier and Type Method Description (package private) void
ClassLoadingExports. addClassLoadingMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)
(package private) void
MemoryPoolsExports. addMemoryAreaMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)
(package private) void
MemoryPoolsExports. addMemoryPoolMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)
(package private) void
ThreadExports. addThreadMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)
java.util.List<Collector.MetricFamilySamples>
BufferPoolsExports. collect(Predicate<java.lang.String> nameFilter)
java.util.List<Collector.MetricFamilySamples>
ClassLoadingExports. collect(Predicate<java.lang.String> nameFilter)
java.util.List<Collector.MetricFamilySamples>
GarbageCollectorExports. collect(Predicate<java.lang.String> nameFilter)
java.util.List<Collector.MetricFamilySamples>
MemoryPoolsExports. collect(Predicate<java.lang.String> nameFilter)
java.util.List<Collector.MetricFamilySamples>
ThreadExports. collect(Predicate<java.lang.String> nameFilter)
-
Uses of Predicate in io.prometheus.client.servlet.common.exporter
Fields in io.prometheus.client.servlet.common.exporter declared as Predicate Modifier and Type Field Description private Predicate<java.lang.String>
Exporter. sampleNameFilter
Constructors in io.prometheus.client.servlet.common.exporter with parameters of type Predicate Constructor Description Exporter(CollectorRegistry registry, Predicate<java.lang.String> sampleNameFilter)
Construct a MetricsServlet for the given registry. -
Uses of Predicate in io.prometheus.client.servlet.jakarta.exporter
Constructors in io.prometheus.client.servlet.jakarta.exporter with parameters of type Predicate Constructor Description MetricsServlet(CollectorRegistry registry, Predicate<java.lang.String> sampleNameFilter)
MetricsServlet(Predicate<java.lang.String> sampleNameFilter)
-