Github user zentol commented on a diff in the pull request: https://github.com/apache/flink/pull/2443#discussion_r77825932 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java --- @@ -105,7 +106,9 @@ public void setup(StreamTask<?, ?> containingTask, StreamConfig config, Output<S String operatorName = containingTask.getEnvironment().getTaskInfo().getTaskName().split("->")[config.getChainIndex()].trim(); this.metrics = container.getEnvironment().getMetricGroup().addOperator(operatorName); - this.output = new CountingOutput(output, this.metrics.counter("numRecordsOut")); + Counter c = this.metrics.counter("numRecordsOut"); + this.output = new CountingOutput(output, c); + this.metrics.meter("numRecordsOutRate", new MeterView(c, 60)); --- End diff -- this just served as an example...
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---