[ 
https://issues.apache.org/jira/browse/YARN-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14493239#comment-14493239
 ] 

Inigo Goiri commented on YARN-3483:
-----------------------------------

The use case for this is being able to access resource metrics from the code. 
For example, the ContainerMonitor stores resource utilization metrics in 
ContainerMetrics. If we want to access this data from the NodeManager, it's 
hard to work with a ContainerMetric. The proposal is to add a getter to the 
MutableMetric which would propagate to the rest.

I'm open to other proposals.

> Easier access to resource metrics
> ---------------------------------
>
>                 Key: YARN-3483
>                 URL: https://issues.apache.org/jira/browse/YARN-3483
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: yarn
>    Affects Versions: 2.7.0
>            Reporter: Inigo Goiri
>            Priority: Minor
>
> Right now, some metrics are stored in MutableStat and the only way to access 
> them is through the MetricsRecordBuilder and the snapshot. The proposal is to 
> add a method to get the values easily.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to