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

Host apps metadata is not synced to other collectors when multiple collectors are installed

    XMLWordPrintableJSON

Details

    Description

      Host apps metadata is not synced to other collectors when multiple metrics collectors are installed.

      Steps to reproduce the issue:

      1. Install ambari metrics with two collector C1 and C2
      2. Submit following metrics through collector C1
        {
          "metrics": [
            {
              "metricname": "cpu",
              "appid": "skywalking",
              "hostname": "hostXYZ",
              "starttime": 1687849289558,
              "metrics": {
                "1687849289558": 100,
                "1687849295558": 200
              }
            }
          ]
        }
        
      3. http://COLLECTOR_C1_HOST:6188/ws/v1/timeline/metrics/hosts API call returns 
        {
            "hostXYZ": [
                "datanode",
                "HOST",
                "namenode",
                "skywalking",
                "ams-hbase"
            ],
            ...
        }
        

        This is as expected.

      4. http://COLLECTOR_C2_HOST:6188/ws/v1/timeline/metrics/hosts API call returns 
        {
            "hostXYZ": [
                "datanode",
                "HOST",
                "namenode",
                "ams-hbase"
            ],
            ...
        }
        

        This output indicates that new appid skywalking is not getting synced to other collector C2. This new appid is not getting synced even after 5 minutes which is the default ambari metrics metadata sync interval.

       

       

      Attachments

        Activity

          People

            arshad.mohammad Mohammad Arshad
            arshad.mohammad Mohammad Arshad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h