[
https://issues.apache.org/jira/browse/FLINK-22631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342516#comment-17342516
]
Li commented on FLINK-22631:
----------------------------
There are 6,000,000 pieces of data on the source side. But metric[numRead] is
4857460. All the metrics are not up to date.
There are real metrics:
!image-2021-05-11-20-13-25-886.png!
There are metrics in promethues:
!image-2021-05-11-20-14-29-290.png!
> 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
>
>
> 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)