You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2015/04/07 12:48:13 UTC

[jira] [Commented] (AMBARI-10373) Create widget wizard: Implement metrics selection and expression formation on "Metrics and Expression" page

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

Hadoop QA commented on AMBARI-10373:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12723586/AMBARI-10373.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/2262//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/2262//console

This message is automatically generated.

> Create widget wizard: Implement metrics selection and expression formation on "Metrics and Expression" page
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-10373
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10373
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Andrii Tkach
>            Assignee: Andrii Tkach
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-10373.patch
>
>
> Tasks that needs to be done as part of this ticket:
> # Create model for Metrics. Attributes to capture in the model is name, widget_id, service_name, component_name, type, temporal, pointInTime and level. All of these are available from API response 
> {code}
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/services?artifacts/Artifacts/artifact_name=metrics_descriptor&StackServices/service_name.in(HDFS,HBASE,YARN)&fields=artifacts/*",
>   "items" : [
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/services/HBASE",
>       "StackServices" : {
>         "service_name" : "HBASE",
>         "stack_name" : "HDP",
>         "stack_version" : "2.2"
>       },
>       "artifacts" : [
>         {
>           "href" : "http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/services/HBASE/artifacts/metrics_descriptor",
>           "Artifacts" : {
>             "artifact_name" : "metrics_descriptor",
>             "service_name" : "HBASE",
>             "stack_name" : "HDP",
>             "stack_version" : "2.2"
>           },
>           "artifact_data" : {
>             "HBASE" : {
>               "HBASE_CLIENT" : {
>                 "Component" : [
>                   {
>                     "type" : "ganglia",
>                     "properties" : null,
>                     "metrics" : {
>                       "default" : {
>                         "metrics/rpc/closeRegion_num_ops" : {
>                           "pointInTime" : true,
>                           "temporal" : true,
>                           "name" : "rpc.rpc.closeRegion_num_ops"
>                         },
> {code}
> {code}App.Metrics = DS.Model.extend({
> widget_id: DS.attr('string'), //example: "metrics/rpc/closeRegion_num_ops",
> name: DS.attr('string'),       //example: "rpc.rpc.closeRegion_num_ops",
> pointInTime: true,
> temporal: true,
> category: DS.attr('string'),                 //example: default
> serviceName: DS.attr('string'),          //example: HBASE
> componentName: DS.attr('string'),    //example: HBASE_CLIENT
> type: DS.attr('string'),                        //options: GANGLIA | JMX
> level: DS.attr('string'),                       //options: COMPONENT | HOSTCOMPONENT
> }){code}
> #  On transition from step-1 "Choose Type" to "Metrics & Expression" page, map Metrics model from API response of following call {code}/api/v1/stacks/HDP/versions/2.2/services?artifacts/Artifacts/artifact_name=metrics_descriptor&StackServices/service_name.in(HDFS,HBASE,YARN)&fields=artifacts/*{code}. *NOTE: Replace HDFS,HBASE, YARN in the above call with the names of all installed services in the cluster. This API call is implemented in the backend and is currently working on the current trunk bits.
> NOTE: This task needs to be implemented for GAUGE, NUMBER and GRAPH widget type. Achieving this for TEMPLATE widget type will be achieved in a seperate task



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