Class HTTPServer

java.lang.Object
io.prometheus.metrics.exporter.httpserver.HTTPServer
All Implemented Interfaces:
Closeable, AutoCloseable

public class HTTPServer extends Object implements Closeable
Expose Prometheus metrics using a plain Java HttpServer.

Example Usage:

 
 HTTPServer server = HTTPServer.newBuilder()
     .withPort(9090)
     .buildAndStart();