Uses of Class
io.prometheus.client.exporter.HTTPServer.Builder
-
-
Uses of HTTPServer.Builder in io.prometheus.client.exporter
Methods in io.prometheus.client.exporter that return HTTPServer.Builder Modifier and Type Method Description HTTPServer.BuilderHTTPServer.Builder. withAuthenticator(com.sun.net.httpserver.Authenticator authenticator)Optional:Authenticatorto use to support authentication.HTTPServer.BuilderHTTPServer.Builder. withDaemonThreads(boolean daemon)By default, theHTTPServeruses non-daemon threads.HTTPServer.BuilderHTTPServer.Builder. withHostname(String hostname)Use this hostname to resolve the IP address to bind to.HTTPServer.BuilderHTTPServer.Builder. withHttpServer(com.sun.net.httpserver.HttpServer httpServer)Use this httpServer.HTTPServer.BuilderHTTPServer.Builder. withInetAddress(InetAddress address)Bind to this IP address.HTTPServer.BuilderHTTPServer.Builder. withInetSocketAddress(InetSocketAddress address)Listen on this address.HTTPServer.BuilderHTTPServer.Builder. withPort(int port)Port to bind to.HTTPServer.BuilderHTTPServer.Builder. withRegistry(io.prometheus.client.CollectorRegistry registry)Optional: Default isCollectorRegistry.defaultRegistry.HTTPServer.BuilderHTTPServer.Builder. withSampleNameFilter(io.prometheus.client.Predicate<String> sampleNameFilter)Optional: Only export time series wheresampleNameFilter.test(name)returns true.HTTPServer.BuilderHTTPServer.Builder. withSampleNameFilterSupplier(io.prometheus.client.Supplier<io.prometheus.client.Predicate<String>> sampleNameFilterSupplier)Optional: Only export time series wheresampleNameFilter.test(name)returns true.
-