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);
}
Aggregations