zentol commented on a change in pull request #18825:
URL: https://github.com/apache/flink/pull/18825#discussion_r810966360



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/InternalSinkWriterMetricGroup.java
##########
@@ -35,12 +35,20 @@
         implements SinkWriterMetricGroup {
 
     private final Counter numRecordsOutErrors;
+    private final Counter numRecordsWritten;
+    private final Counter numBytesWritten;
     private final OperatorIOMetricGroup operatorIOMetricGroup;
 
     private InternalSinkWriterMetricGroup(
             MetricGroup parentMetricGroup, OperatorIOMetricGroup 
operatorIOMetricGroup) {
         super(parentMetricGroup);
         numRecordsOutErrors = 
parentMetricGroup.counter(MetricNames.NUM_RECORDS_OUT_ERRORS);
+        numRecordsWritten =
+                parentMetricGroup.counter(
+                        
org.apache.flink.runtime.metrics.MetricNames.IO_NUM_RECORDS_OUT);

Review comment:
       > Both of them have the same name but belong to different metricGroups.
   
   No they don't. The `OperatorIOMetricGroup`, just like the 
`InternalSinkWriterMetricGroup`, are `ProxyMetricGroups`, meaning they forward 
everything to the parent, in this case the `OperatorMetricGroup`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to