Uses of Class
io.prometheus.metrics.exporter.httpserver.HTTPServer.Builder
-
Uses of HTTPServer.Builder in io.prometheus.metrics.exporter.httpserver
Methods in io.prometheus.metrics.exporter.httpserver that return HTTPServer.BuilderModifier and TypeMethodDescriptionstatic HTTPServer.BuilderHTTPServer.newBuilder()static HTTPServer.BuilderHTTPServer.newBuilder(io.prometheus.metrics.config.PrometheusProperties config) HTTPServer.Builder.withAuthenticator(com.sun.net.httpserver.Authenticator authenticator) Optional:Authenticatorfor authentication.HTTPServer.Builder.withDefaultHandler(com.sun.net.httpserver.HttpHandler defaultHandler) Optional: Override default handler, i.e.HTTPServer.Builder.withExecutorService(ExecutorService executorService) Optional: ExecutorService used by thehttpServer.HTTPServer.Builder.withHostname(String hostname) Use this hostname to resolve the IP address to bind to.HTTPServer.Builder.withHttpsConfigurator(com.sun.net.httpserver.HttpsConfigurator configurator) Optional:HttpsConfiguratorfor TLS/SSLHTTPServer.Builder.withInetAddress(InetAddress address) Bind to this IP address.HTTPServer.Builder.withPort(int port) Port to bind to.HTTPServer.Builder.withRegistry(io.prometheus.metrics.model.registry.PrometheusRegistry registry) Optional: Default isPrometheusRegistry.defaultRegistry.