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 TypeMethodDescriptionvoid
configureSSL
(io.prometheus.metrics.exporter.httpserver.HTTPServer.Builder httpServerBuilder) Method to configure SSLio.prometheus.metrics.exporter.httpserver.HTTPServer
createHTTPServer
(InetAddress inetAddress, int port, io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry, File exporterYamlFile) Method to create an HTTPServer using the supplied arguments
-
Constructor Details
-
HTTPServerFactory
public HTTPServerFactory()Constructor
-
-
Method Details
-
createHTTPServer
public io.prometheus.metrics.exporter.httpserver.HTTPServer createHTTPServer(InetAddress inetAddress, int port, io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry, File exporterYamlFile) throws IOException Method to create an HTTPServer using the supplied arguments- Parameters:
inetAddress
- inetAddressport
- portprometheusRegistry
- prometheusRegistryexporterYamlFile
- exporterYamlFile- Returns:
- an HTTPServer
- Throws:
IOException
- IOException
-
configureSSL
public void configureSSL(io.prometheus.metrics.exporter.httpserver.HTTPServer.Builder httpServerBuilder) Method to configure SSL- Parameters:
httpServerBuilder
- httpServerBuilder
-