Package io.prometheus.jmx.common.http
Class HTTPServerFactory
java.lang.Object
io.prometheus.jmx.common.http.HTTPServerFactory
Class to create the HTTPServer used by both the Java agent exporter and the standalone exporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureSSL(io.prometheus.client.exporter.HTTPServer.Builder httpServerBuilder) Method to configure SSLio.prometheus.client.exporter.HTTPServercreateHTTPServer(InetSocketAddress inetSocketAddress, io.prometheus.client.CollectorRegistry collectorRegistry, boolean daemon, File exporterYamlFile) Method to create an HTTPServer using the supplied arguments
-
Constructor Details
-
HTTPServerFactory
public HTTPServerFactory()Constructor
-
-
Method Details
-
createHTTPServer
public io.prometheus.client.exporter.HTTPServer createHTTPServer(InetSocketAddress inetSocketAddress, io.prometheus.client.CollectorRegistry collectorRegistry, boolean daemon, File exporterYamlFile) throws IOException Method to create an HTTPServer using the supplied arguments- Parameters:
inetSocketAddress- inetSocketAddresscollectorRegistry- collectorRegistrydaemon- daemonexporterYamlFile- exporterYamlFile- Returns:
- an HTTPServer
- Throws:
IOException- IOException
-
configureSSL
Method to configure SSL- Parameters:
httpServerBuilder- httpServerBuilder
-