Class PrometheusHandler

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
ai.vespa.metricsproxy.http.prometheus.PrometheusHandler
All Implemented Interfaces:
com.yahoo.container.jdisc.HttpRequestHandler, com.yahoo.container.jdisc.utils.CapabilityRequiringRequestHandler, com.yahoo.jdisc.handler.RequestHandler, com.yahoo.jdisc.SharedResource

public class PrometheusHandler extends com.yahoo.container.handler.metrics.HttpHandlerBase
Author:
gjoranv
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    com.yahoo.container.jdisc.ThreadedHttpRequestHandler.Context, com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannel

    Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource

    com.yahoo.jdisc.SharedResource.Debug
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    CONTENT_TYPE, log

    Fields inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler

    metric, metricUtil

    Fields inherited from interface com.yahoo.container.jdisc.utils.CapabilityRequiringRequestHandler

    DEFAULT_REQUIRED_CAPABILITY

    Fields inherited from interface com.yahoo.jdisc.SharedResource

    DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrometheusHandler(Executor executor, MetricsManager metricsManager, VespaServices vespaServices, MetricsConsumers metricsConsumers, ApplicationDimensions applicationDimensions, NodeDimensions nodeDimensions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.yahoo.container.jdisc.HttpResponse>
    doHandle(URI requestUri, com.yahoo.restapi.Path apiPath, String consumer)
     

    Methods inherited from class com.yahoo.container.handler.metrics.HttpHandlerBase

    getTimeout, handle, requiredCapability, resourceListResponse

    Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    addDateHeader, asHttpRequest, createLoggingCompletionHandler, handle, handleRequest, testContext

    Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler

    executor, getRequestType, handleRequest, writeErrorResponseOnOverload

    Methods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler

    handleTimeout

    Methods inherited from class com.yahoo.jdisc.AbstractResource

    currentState, destroy, refer, refer, release, retainCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.container.jdisc.utils.CapabilityRequiringRequestHandler

    requiredCapabilities

    Methods inherited from interface com.yahoo.container.jdisc.HttpRequestHandler

    requestHandlerSpec

    Methods inherited from interface com.yahoo.jdisc.handler.RequestHandler

    handleRequest, handleTimeout

    Methods inherited from interface com.yahoo.jdisc.SharedResource

    refer, refer, release