Class HTTPServer.HTTPMetricHandler
java.lang.Object
io.prometheus.client.exporter.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 Summary
ConstructorsConstructorDescriptionHTTPMetricHandler(CollectorRegistry registry) HTTPMetricHandler(CollectorRegistry registry, Supplier<Predicate<String>> sampleNameFilterSupplier) -
Method Summary
-
Constructor Details
-
HTTPMetricHandler
-
HTTPMetricHandler
public HTTPMetricHandler(CollectorRegistry registry, Supplier<Predicate<String>> sampleNameFilterSupplier)
-
-
Method Details
-
handle
- Specified by:
handlein interfacecom.sun.net.httpserver.HttpHandler- Throws:
IOException
-