[
https://issues.apache.org/jira/browse/AMBARI-18185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425151#comment-15425151
]
Aravindan Vijayan edited comment on AMBARI-18185 at 8/17/16 6:46 PM:
---------------------------------------------------------------------
PROBLEM
On Grafana TopN dashboards, if the user selects just one host, it fails with
error.
BUG
We have complex conditions for identifying if a top N request is a request for
Top N hosts or Top N metrics. This specific case of 1 Metric & 1 Host (with no
wildcards), both conditions return true, which breaks the downstream flow.
FIX
Ideally, only condition should be true at an instance. If both are true, we
should reject the request (Treat as a non Top N request).
was (Author: avijayan):
PROBLEM
On Grafana TopN dashboards, if the user selects just one host, it fails with
error.
BUG
We have complex conditions for identifying if a top N request is a request for
Top N hosts or Top N metrics. This specific case of 1 Metric & 1 Host (with no
wildcards), both conditions return true, which breaks the downstream flow.
FIX
Ideally, only condition should be true at an instance. If both are true, we
should reject the request.
> Selecting one host when topN is set, throws an error
> ----------------------------------------------------
>
> Key: AMBARI-18185
> URL: https://issues.apache.org/jira/browse/AMBARI-18185
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Affects Versions: 2.4.0
> Reporter: Aravindan Vijayan
> Assignee: Aravindan Vijayan
> Priority: Critical
> Fix For: 2.5.0
>
> Attachments: AMBARI-18185.patch
>
>
> topN is available by default on almost all Grafana templatized dashboards.
> When viewing any of these dashboards, if only one "host" or templated option
> is chosen, then AMS returns with an exception (screenshot attached).
> Sample query:
> collectorhost:6188/ws/v1/timeline/metrics?metricNames=cpu_system._avg&hostname=hostname&appId=HOST&startTime=1470925360&endTime=1470946960&topN=20&topNFunction=avg&isBottomN=false
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)