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

Jungtaek Lim commented on AMBARI-17027:
---------------------------------------

I've modified a bit around Collector API and Grafana plugin after uploading 
gist / attaching screenshot.

For Collector API, there would be easy to just have one additional parameter 
(seriesAggregateFunction) instead of having function pattern like 
SUM(metricPattern) on metric names.

Updated version of API output is here: 
https://gist.github.com/HeartSaVioR/f4f28b5b8b7bf2e5477e59d7fd56090f

I'll attach new snapshots and remove old snapshots.



> Metrics Collector API: Introduce basic series aggregation functions
> -------------------------------------------------------------------
>
>                 Key: AMBARI-17027
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17027
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-metrics
>    Affects Versions: 2.4.0
>            Reporter: Jungtaek Lim
>         Attachments: 
> AMS-grafana-query-metric-wildcard-with-series-aggregation-avg-with-host.png, 
> AMS-grafana-query-metric-wildcard-with-series-aggregation-sum.png, 
> AMS-grafana-query-metric-wildcard-without-series-aggregation-avg.png, 
> AMS-grafana-query-metric-wildcard-without-series-aggregation.png
>
>
> AMS doesn't provide tag so metric is identified by appId, metric name, 
> hostname, instanceId. In this situation metric name is normally consist of 
> origin metric name and tag values, like graphite, but unlike Graphite, AMS 
> also doesn't provide series aggregation functions so aggregation should be 
> done from caller side.
> It would be great if Ambari Metrics Collector provides series aggregation 
> functions, like sumSeries / averageSeries / minSeries / maxSeries on Graphite.



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

Reply via email to