Class PrometheusV1Handler
- java.lang.Object
-
- com.yahoo.jdisc.AbstractResource
-
- com.yahoo.jdisc.handler.AbstractRequestHandler
-
- com.yahoo.container.jdisc.ThreadedRequestHandler
-
- com.yahoo.container.jdisc.ThreadedHttpRequestHandler
-
- com.yahoo.container.handler.metrics.HttpHandlerBase
-
- com.yahoo.container.handler.metrics.PrometheusV1Handler
-
- All Implemented Interfaces:
com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
public class PrometheusV1Handler extends HttpHandlerBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
ThreadedHttpRequestHandler.LazyContentChannel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
V1_PATH
-
Fields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
CONTENT_TYPE, log
-
Fields inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
metric
-
-
Constructor Summary
Constructors Constructor Description PrometheusV1Handler(java.util.concurrent.Executor executor, MetricsProxyApiConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<HttpResponse>
doHandle(java.net.URI requestUri, Path apiPath, java.lang.String consumer)
-
Methods inherited from class com.yahoo.container.handler.metrics.HttpHandlerBase
handle, resourceListResponse
-
Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
addDateHeader, asHttpRequest, createLoggingCompletionHandler, handle, handleRequest
-
Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
getTimeout, handleRequest
-
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, release, retainCount
-
-
-
-
Field Detail
-
V1_PATH
public static final java.lang.String V1_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrometheusV1Handler
@Inject public PrometheusV1Handler(java.util.concurrent.Executor executor, MetricsProxyApiConfig config)
-
-
Method Detail
-
doHandle
protected java.util.Optional<HttpResponse> doHandle(java.net.URI requestUri, Path apiPath, java.lang.String consumer)
- Specified by:
doHandle
in classHttpHandlerBase
-
-