You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/02/21 10:10:51 UTC

[GitHub] [hadoop-ozone] ChenSammi commented on a change in pull request #393: HDDS-1590 Aggregate bytes write metrics from container to datanode and to SCM

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org