[ 
https://issues.apache.org/jira/browse/FLINK-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900718#comment-14900718
 ] 

ASF GitHub Bot commented on FLINK-2720:
---------------------------------------

Github user mjsax commented on the pull request:

    https://github.com/apache/flink/pull/1157#issuecomment-141985771
  
    This looks promising. However, how can `CountMetric` be used (without any 
changes to the Spout/Bolt code within Flink? Right now it seems, that the user 
has to replace `CountMetric` with `FlinkCountMetric` in `open()/prepare()` 
method. However, the user code should be unchanged and the counter should be 
collected by Flink under the hood, and translated into a Flink accumulator 
transparently to the user. I found a nice example on the usage of metrics in 
Storm: https://www.endgame.com/blog/storm-metrics-how Maybe you try to run this 
code just changing `TopologyBuilder` to `FlinkTopologyBuilder` and omitting the 
metric consumer for now.


> Add Storm-CountMetric in flink-stormcompatibility
> -------------------------------------------------
>
>                 Key: FLINK-2720
>                 URL: https://issues.apache.org/jira/browse/FLINK-2720
>             Project: Flink
>          Issue Type: New Feature
>          Components: Storm Compatibility
>            Reporter: Huang Wei
>            Assignee: Huang Wei
>             Fix For: 0.10
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Add the CountMetric for the first step of storm metrics:
> 1.Do a wrapper FlinkCountMetric for CountMetric
> 2.push the RuntimeContext in FlinkTopologyContext to use `addAccumulator` 
> method for registering the metric.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to