Class AbstractAggregatingMetricsHandler<P extends AbstractAggregatedMetricsParameters<?>>

  • All Implemented Interfaces:
    AutoCloseable, org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler, AutoCloseableAsync
    Direct Known Subclasses:
    AggregatingJobsMetricsHandler, AggregatingSubtasksMetricsHandler, AggregatingTaskManagersMetricsHandler

    public abstract class AbstractAggregatingMetricsHandler<P extends AbstractAggregatedMetricsParameters<?>>
    extends AbstractRestHandler<RestfulGateway,​EmptyRequestBody,​AggregatedMetricsResponseBody,​P>
    Abstract request handler for querying aggregated metrics. Subclasses return either a list of all available metrics or the aggregated values of them across all/selected entities.

    If the query parameters do not contain a "get" parameter the list of all metrics is returned. [ { "id" : "X" } ]

    If the query parameters do contain a "get" parameter, a comma-separated list of metric names is expected as a value. /metrics?get=X,Y The handler will then return a list containing the values of the requested metrics. [ { "id" : "X", "value" : "S" }, { "id" : "Y", "value" : "T" } ]

    The "agg" query parameter is used to define which aggregates should be calculated. Available aggregations are "sum", "max", "min" and "avg". If the parameter is not specified, all aggregations will be returned. /metrics?get=X,Y&agg=min,max The handler will then return a list of objects containing the aggregations for the requested metrics. [ { "id" : "X", "min", "1", "max", "2" }, { "id" : "Y", "min", "4", "max", "10"}]