ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aravindan Vijayan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-16412) Support TopN queries in AMS
Date Tue, 10 May 2016 20:34:13 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-16412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aravindan Vijayan updated AMBARI-16412:
---------------------------------------
    Status: Patch Available  (was: Open)

> Support TopN queries in AMS
> ---------------------------
>
>                 Key: AMBARI-16412
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16412
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-metrics
>    Affects Versions: 2.2.2
>            Reporter: Aravindan Vijayan
>            Assignee: Aravindan Vijayan
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-16412-4.patch
>
>
> TopN is a useful feature in analyzing and finding the outlier in large clusters. 
> 2 Use Cases where meant to be solved through this story.
> Display the series for Top N hosts for a specific metric.
> Display the Top N metrics (Users / HBase table metrics) for a given host or aggregated
across all hosts
> To facilitate the above, the following are supported.
> > Top "N" hosts when 1 metric is requested for "H" hosts.
> > Top "N" metrics when "M" metrics (or a pattern) are requested for 0 or 1 hosts.
> > Default TopN Hosts when More than a specific value of hosts are requested. Default
= 20. Configurable through ams-site config (timeline.metrics.default.topn.hosts.limit)
> TopN API Example
> {code}
> http://<AMS_HOST>:6188/ws/v1/timeline/metrics?metricNames=cpu_system._avg&hostname=h1,h2,h3,h4,h5&appId=HOST&startTime=1462879340&endTime=1462900940&topN=2&topNFunction=avg&isBottomN=false
> {code}
> Added parameters
> topN  - Mandatory parameter for TopN query which denotes the number of series to be returned.
> topNFunction - Optional parameter to specificy the comparator function for comparing
2 series while ordering. Default = max, Valid Values (max,avg,sum)
> isBottomN - Optional parameter.  If bottom N series are required instead of top N. Default
= false. 



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

Mime
View raw message