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

Chesnay Schepler commented on FLINK-22631:
------------------------------------------

I agree that we shouldn't change anything. Metrics were always meant for 
observing _running_ applications. Changing this will be quite difficult and 
introduces potential stability issues.
If you want to know how many bytes/records the job has consumed at the end you 
can query the REST API instead.

> Metrics are incorrect when task finished
> ----------------------------------------
>
>                 Key: FLINK-22631
>                 URL: https://issues.apache.org/jira/browse/FLINK-22631
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Metrics
>            Reporter: Li
>            Priority: Major
>         Attachments: image-2021-05-11-20-13-25-886.png, 
> image-2021-05-11-20-14-29-290.png, image-2021-05-19-10-10-29-765.png, 
> image-2021-05-19-10-11-02-764.png
>
>
>         MetricReporters are reported periodically, default 10 seconds. The 
> final metrics may not be reported to metric system like pushgateway when task 
> finished. This makes users unable to obtain the correct metrics。
>       
>         Maybe metricReporters should be reported once manually before closed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to