flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zentol <...@git.apache.org>
Subject [GitHub] flink pull request #2443: [FLINK-3950] Implement MeterView
Date Wed, 07 Sep 2016 13:54:23 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message