anuragp010 opened a new pull request, #10913:
URL: https://github.com/apache/ozone/pull/10913

   ## What changes were proposed in this pull request?
   
   Currently there are no metrics available to track the space utilised on a 
Datanode across all its volumes. Having JMX metrics to track the space 
utilisation per Datanode, allows monitoring and enables the user to take action 
when the space utilized on a DN is high, by adding nodes or running the 
Container Balancer.
   A new class `DatanodeStorageMetrics` is added to expose 3 metrics related to 
space utilisation: `Capacity`, `Used` and `UsedPercentage`.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-13128
   
   ## How was this patch tested?
   1. Resulting JMX Metrics:
   `
   {
       "name" : "Hadoop:service=HddsDatanode,name=DatanodeStorageMetrics",
       "modelerType" : "DatanodeStorageMetrics",
       "tag.Context" : "ozone",
       "tag.Hostname" : "e0464d2f2175",
       "Capacity" : 105076655700,
       "Used" : 4382720,
       "UsedPercentage" : 0.004170974010167322
     }
   `
   2. Newly added Unit Tests.


-- 
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]


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

Reply via email to