Package io.prometheus.client.exporter
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
Constructors Constructor Description HTTPMetricHandler(io.prometheus.client.CollectorRegistry registry)HTTPMetricHandler(io.prometheus.client.CollectorRegistry registry, io.prometheus.client.Supplier<io.prometheus.client.Predicate<String>> sampleNameFilterSupplier)
-
-
-
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:
handlein interfacecom.sun.net.httpserver.HttpHandler- Throws:
IOException
-
-