Uses of Interface
io.prometheus.client.Predicate
Packages that use Predicate
Package
Description
-
Uses of Predicate in io.prometheus.client
Classes in io.prometheus.client that implement PredicateModifier and TypeClassDescriptionclass
Filter samples (i.e.private static class
Fields in io.prometheus.client declared as PredicateModifier and TypeFieldDescriptionSampleNameFilter.ALLOW_ALL
For convenience, a filter that allows all names.CollectorRegistry.MetricFamilySamplesEnumeration.sampleNameFilter
Methods in io.prometheus.client that return PredicateModifier and TypeMethodDescriptionReplacement for Java 8'sPredicate.and()
for compatibility with Java versions < 8.SampleNameFilter.restrictToNamesEqualTo
(Predicate<String> filter, Collection<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 PredicateModifier and TypeMethodDescriptionReplacement for Java 8'sPredicate.and()
for compatibility with Java versions < 8.LikeCollector.collect()
, but the result should only containMetricFamilySamples
wheresampleNameFilter.test(name)
istrue
for at least one Sample name.CollectorRegistry.filteredMetricFamilySamples
(Predicate<String> sampleNameFilter) Enumeration of metrics wheresampleNameFilter.test(name)
returnstrue
for eachname
inCollector.MetricFamilySamples.getNames()
.SampleNameFilter.restrictToNamesEqualTo
(Predicate<String> filter, Collection<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 PredicateModifierConstructorDescription(package private)
MetricFamilySamplesEnumeration
(Predicate<String> sampleNameFilter) -
Uses of Predicate in io.prometheus.client.exporter
Fields in io.prometheus.client.exporter declared as PredicateModifier and TypeFieldDescriptionHTTPServer.Builder.sampleNameFilter
SampleNameFilterSupplier.sampleNameFilter
Fields in io.prometheus.client.exporter with type parameters of type PredicateModifier and TypeFieldDescriptionHTTPServer.Builder.sampleNameFilterSupplier
HTTPServer.HTTPMetricHandler.sampleNameFilterSupplier
Methods in io.prometheus.client.exporter that return PredicateMethods in io.prometheus.client.exporter with parameters of type PredicateModifier and TypeMethodDescriptionstatic SampleNameFilterSupplier
HTTPServer.Builder.withSampleNameFilter
(Predicate<String> sampleNameFilter) Optional: Only export time series wheresampleNameFilter.test(name)
returns true.Method parameters in io.prometheus.client.exporter with type arguments of type PredicateModifier and TypeMethodDescriptionHTTPServer.Builder.withSampleNameFilterSupplier
(Supplier<Predicate<String>> sampleNameFilterSupplier) Optional: Only export time series wheresampleNameFilter.test(name)
returns true.Constructors in io.prometheus.client.exporter with parameters of type PredicateModifierConstructorDescriptionMetricsServlet
(CollectorRegistry registry, Predicate<String> sampleNameFilter) MetricsServlet
(Predicate<String> sampleNameFilter) private
SampleNameFilterSupplier
(Predicate<String> sampleNameFilter) Constructor parameters in io.prometheus.client.exporter with type arguments of type PredicateModifierConstructorDescriptionHTTPMetricHandler
(CollectorRegistry registry, Supplier<Predicate<String>> sampleNameFilterSupplier) private
HTTPServer
(ExecutorService executorService, HttpServer httpServer, CollectorRegistry registry, boolean daemon, Supplier<Predicate<String>> sampleNameFilterSupplier, Authenticator authenticator) -
Uses of Predicate in io.prometheus.client.hotspot
Methods in io.prometheus.client.hotspot with parameters of type PredicateModifier and TypeMethodDescription(package private) void
ClassLoadingExports.addClassLoadingMetrics
(List<Collector.MetricFamilySamples> sampleFamilies, Predicate<String> nameFilter) (package private) void
MemoryPoolsExports.addMemoryAreaMetrics
(List<Collector.MetricFamilySamples> sampleFamilies, Predicate<String> nameFilter) (package private) void
MemoryPoolsExports.addMemoryPoolMetrics
(List<Collector.MetricFamilySamples> sampleFamilies, Predicate<String> nameFilter) (package private) void
ThreadExports.addThreadMetrics
(List<Collector.MetricFamilySamples> sampleFamilies, Predicate<String> nameFilter) -
Uses of Predicate in io.prometheus.client.servlet.common.exporter
Fields in io.prometheus.client.servlet.common.exporter declared as PredicateConstructors in io.prometheus.client.servlet.common.exporter with parameters of type PredicateModifierConstructorDescriptionExporter
(CollectorRegistry registry, Predicate<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 PredicateModifierConstructorDescriptionMetricsServlet
(CollectorRegistry registry, Predicate<String> sampleNameFilter) MetricsServlet
(Predicate<String> sampleNameFilter)