Search in sources :

Example 6 with MeterView

use of org.apache.flink.metrics.MeterView in project flink by apache.

the class InputChannelMetrics method createCounter.

private static Counter createCounter(String name, MetricGroup... parents) {
    Counter[] counters = new Counter[parents.length];
    for (int i = 0; i < parents.length; i++) {
        counters[i] = parents[i].counter(name);
        parents[i].meter(name + MetricNames.SUFFIX_RATE, new MeterView(counters[i]));
    }
    return new MultiCounterWrapper(counters);
}
Also used : Counter(org.apache.flink.metrics.Counter) MeterView(org.apache.flink.metrics.MeterView)

Aggregations

MeterView (org.apache.flink.metrics.MeterView)6 Meter (org.apache.flink.metrics.Meter)3 Counter (org.apache.flink.metrics.Counter)2 RowData (org.apache.flink.table.data.RowData)2 MonitoringInfo (org.apache.beam.model.pipeline.v1.MetricsApi.MonitoringInfo)1 SimpleMonitoringInfoBuilder (org.apache.beam.runners.core.metrics.SimpleMonitoringInfoBuilder)1 ListStateDescriptor (org.apache.flink.api.common.state.ListStateDescriptor)1 ValueState (org.apache.flink.api.common.state.ValueState)1 ValueStateDescriptor (org.apache.flink.api.common.state.ValueStateDescriptor)1 LongSerializer (org.apache.flink.api.common.typeutils.base.LongSerializer)1 Configuration (org.apache.flink.configuration.Configuration)1 MetricGroup (org.apache.flink.metrics.MetricGroup)1 SimpleCounter (org.apache.flink.metrics.SimpleCounter)1 MetricGroupTest (org.apache.flink.runtime.metrics.groups.MetricGroupTest)1 InternalListState (org.apache.flink.runtime.state.internal.InternalListState)1 InternalValueState (org.apache.flink.runtime.state.internal.InternalValueState)1 GenericRowData (org.apache.flink.table.data.GenericRowData)1 JoinedRowData (org.apache.flink.table.data.utils.JoinedRowData)1 PerWindowStateDataViewStore (org.apache.flink.table.runtime.dataview.PerWindowStateDataViewStore)1 GeneratedJoinCondition (org.apache.flink.table.runtime.generated.GeneratedJoinCondition)1