Class HTTPServerFactory

java.lang.Object
io.prometheus.jmx.common.http.HTTPServerFactory

public class HTTPServerFactory extends Object
Class to create the HTTPServer used by both the Java agent exporter and the standalone exporter
  • Constructor Details

  • 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 - inetSocketAddress
      collectorRegistry - collectorRegistry
      daemon - daemon
      exporterYamlFile - exporterYamlFile
      Returns:
      an HTTPServer
      Throws:
      IOException - IOException
    • configureSSL

      public void configureSSL(io.prometheus.client.exporter.HTTPServer.Builder httpServerBuilder)
      Method to configure SSL
      Parameters:
      httpServerBuilder - httpServerBuilder