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 classSampleNameFilterFilter samples (i.e.private static classSampleNameFilter.AllowAllFields in io.prometheus.client declared as Predicate Modifier and Type Field Description static Predicate<java.lang.String>SampleNameFilter. ALLOW_ALLFor convenience, a filter that allows all names.private Predicate<java.lang.String>CollectorRegistry.MetricFamilySamplesEnumeration. sampleNameFilterMethods 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 containMetricFamilySampleswheresampleNameFilter.test(name)istruefor at least one Sample name.Collector.MetricFamilySamplesCollector.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)returnstruefor eachnameinCollector.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. sampleNameFilterprivate Predicate<java.lang.String>SampleNameFilterSupplier. sampleNameFilterFields in io.prometheus.client.exporter with type parameters of type Predicate Modifier and Type Field Description private Supplier<Predicate<java.lang.String>>HTTPServer.Builder. sampleNameFilterSupplierprivate Supplier<Predicate<java.lang.String>>HTTPServer.HTTPMetricHandler. sampleNameFilterSupplierMethods 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 SampleNameFilterSupplierSampleNameFilterSupplier. of(Predicate<java.lang.String> sampleNameFilter)HTTPServer.BuilderHTTPServer.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.BuilderHTTPServer.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) voidClassLoadingExports. addClassLoadingMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)(package private) voidMemoryPoolsExports. addMemoryAreaMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)(package private) voidMemoryPoolsExports. addMemoryPoolMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies, Predicate<java.lang.String> nameFilter)(package private) voidThreadExports. 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. sampleNameFilterConstructors 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)
-