ChenSammi commented on a change in pull request #393: HDDS-1590 Aggregate bytes 
write metrics from container to datanode and to SCM
URL: https://github.com/apache/hadoop-ozone/pull/393#discussion_r382495084
 
 

 ##########
 File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/SCMPipelineMetrics.java
 ##########
 @@ -102,15 +106,24 @@ void createPerPipelineMetrics(Pipeline pipeline) {
     numBlocksAllocated.put(pipeline.getId(), new MutableCounterLong(Interns
         .info(getBlockAllocationMetricName(pipeline),
             "Number of blocks allocated in pipeline " + pipeline.getId()), 
0L));
+    numBytesWritten.put(pipeline.getId(), new MutableCounterLong(Interns
+        .info(getBytesWriteMetricName(pipeline),
+            "Number of bytes written into pipeline " + pipeline.getId()), 0L));
   }
 
   public static String getBlockAllocationMetricName(Pipeline pipeline) {
     return "NumBlocksAllocated-" + pipeline.getType() + "-" + pipeline
         .getFactor() + "-" + pipeline.getId().getId();
   }
 
+  public static String getBytesWriteMetricName(Pipeline pipeline) {
 
 Review comment:
   2

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to