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 Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureSSL(io.prometheus.metrics.exporter.httpserver.HTTPServer.Builder httpServerBuilder)
    Method to configure SSL
    io.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 - inetAddress
      port - port
      prometheusRegistry - prometheusRegistry
      exporterYamlFile - 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