Class MetricsPacketsHandler

java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.state.MetricsPacketsHandler
All Implemented Interfaces:
com.yahoo.jdisc.handler.RequestHandler, com.yahoo.jdisc.SharedResource

public class MetricsPacketsHandler extends com.yahoo.jdisc.handler.AbstractRequestHandler
This handler outputs metrics in a json-like format, consisting of a series of metrics packets. Each packet is a json object but there is no outer array or object that wraps the packets. To reduce the amount of output, a packet contains all metrics that share the same set of dimensions. This handler is not set up by default, but can be added to the applications's services configuration. This handler is protocol agnostic, so it cannot discriminate between e.g. http request methods (get/head/post etc.). Based on StateHandler.
Author:
gjoranv
  • Nested Class Summary

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

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

    Fields inherited from interface com.yahoo.jdisc.SharedResource

    DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
  • Constructor Summary

    Constructors
    Constructor
    Description
    MetricsPacketsHandler(StateMonitor monitor, com.yahoo.jdisc.Timer timer, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders, MetricsPacketsHandlerConfig config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.jdisc.handler.ContentChannel
    handleRequest(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler)
     

    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.jdisc.SharedResource

    refer, refer, release
  • Constructor Details

  • Method Details

    • handleRequest

      public com.yahoo.jdisc.handler.ContentChannel handleRequest(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler)