Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14729

API does not return host component metrics (except for one host)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.2.1
    • None
    • None

    Description

      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.

      Attachments

        1. AMBARI-14729.patch
          11 kB
          Siddharth Wagle
        2. AMBARI-14729-2.patch
          11 kB
          Aravindan Vijayan

        Issue Links

          Activity

            People

              swagle Siddharth Wagle
              swagle Siddharth Wagle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: