You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Inigo Goiri (JIRA)" <ji...@apache.org> on 2015/04/14 01:10:12 UTC

[jira] [Commented] (YARN-3483) Easier access to resource metrics

    [ 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)