You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Siddharth Wagle (JIRA)" <ji...@apache.org> on 2016/01/19 22:47:39 UTC

[jira] [Created] (AMBARI-14729) API does not return host component metrics (except for one host)

Siddharth Wagle created AMBARI-14729:
----------------------------------------

             Summary: API does not return host component metrics (except for one host)
                 Key: AMBARI-14729
                 URL: https://issues.apache.org/jira/browse/AMBARI-14729
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 2.1.2
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
            Priority: Critical
             Fix For: 2.2.1


API does not return metrics at the host component level (except for one host).

STR.
Make a metrics API against various hosts for a specific metric.
Example on a 3-node cluster:
Call 1: http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-3.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]

This returns the metrics on sid-ams-3.

Call 2: http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-2.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]

This returns no metrics data.

Call 3: http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-1.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]

This returns no metrics data.

The example above is for a system metric, but the same behavior is exhibited for service metrics.

For any given host component metric, only one of the hosts returns any metric.  The *first host that you make a query against* will return the metrics data, but none of the other hosts.
This is because of the cache implementation.



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