Class HTTPServer.HTTPMetricHandler

  • All Implemented Interfaces:
    com.sun.net.httpserver.HttpHandler
    Enclosing class:
    HTTPServer

    public static class HTTPServer.HTTPMetricHandler
    extends Object
    implements com.sun.net.httpserver.HttpHandler
    Handles Metrics collections from the given registry.
    • Constructor Detail

      • HTTPMetricHandler

        public HTTPMetricHandler​(io.prometheus.client.CollectorRegistry registry)
      • HTTPMetricHandler

        public HTTPMetricHandler​(io.prometheus.client.CollectorRegistry registry,
                                 io.prometheus.client.Supplier<io.prometheus.client.Predicate<String>> sampleNameFilterSupplier)
    • Method Detail

      • handle

        public void handle​(com.sun.net.httpserver.HttpExchange t)
                    throws IOException
        Specified by:
        handle in interface com.sun.net.httpserver.HttpHandler
        Throws:
        IOException