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

Sushil Ks commented on HADOOP-15657:
------------------------------------

This patch is trying to register mutableQuantiles through reflection similar to 
other MutableMetric, created sample MutableQuantile metric as follows and 
tested locally with JVisualVM viewer

> Registering MutableQuantiles via Metric annotation
> --------------------------------------------------
>
>                 Key: HADOOP-15657
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15657
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>            Reporter: Sushil Ks
>            Priority: Major
>         Attachments: HADOOP-15657.001.patch
>
>
> Currently when creating new metrics we use @Metric annotation for registering 
> the MutableMetric i.e
> {code:java}
> @Metric
> private MutableInt foobarMetricCount
> {code}
> However,  there's no support for registering MutableQuantiles via Metric 
> annotation, hence creating this Jira to register MutableQuantiles via Metric 
> annotation. 
> Example:
>  
> {code:java}
> @Metric(about = "async PUT entities latency", valueName = "latency", interval 
> = 10)
> private MutableQuantiles foobarAsyncLatency;
>  
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to