Andrii Tkach created AMBARI-10772:
-------------------------------------
Summary: Create widget -> Add metric popup: Aggregator Function
dropdown for component metrics
Key: AMBARI-10772
URL: https://issues.apache.org/jira/browse/AMBARI-10772
Project: Ambari
Issue Type: Task
Components: ambari-web
Affects Versions: 2.1.0
Reporter: Andrii Tkach
Assignee: Andrii Tkach
Priority: Critical
Fix For: 2.1.0
When user selects any service component like All NameNodes or Datanodes (*and
not a specific host component like Active namenode or Active ResourceManager*),
Add metric popup should show an additional label *Aggregator Function* at the
end and a corresponding bootstrap button/dropdown having following options:
* avg
* sum
* min
* max
By default avg should be selected. Selected value from the dropdown should be
shown on the button. Hovering this dropdown should show a popover with text
"This mathematical function will be applied to compute single value for
selected metric across all host components".
If user selects any option other than avg, metric path should be suffixed with
._$\{aggregator function name\}. For example if user selects a metric with name
*regionserver.RegionServer.numOpenConnections*. It's corresponding metric path
as known from API data obtained from metrics descriptor is
*metrics/hbase/ipc/IPC/numOpenConnections*. If user then selects an aggregator
function *sum*, metric path prepared for the metric element in the metric Array
of the widget API definition should be saved as
*metrics/hbase/ipc/IPC/numOpenConnections._sum*.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)