Github user pvillard31 commented on the issue:

    https://github.com/apache/nifi/pull/2430
  
    Thanks for your comments @mattyb149 - I just pushed a commit that should 
address everything.
    
    Regarding the record approach you suggested. Even though I really like the 
idea, I'm not sure to see how to define a valid avro schema for the 
specification used by the Ambari collector API 
(https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification):
    
    ````json
    {
      "metrics": [
        {
          "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric",
          "appid": "amssmoketestfake",
          "hostname": "ambari20-5.c.pramod-thangali.internal",
          "timestamp": 1432075898000,
          "starttime": 1432075898000,
          "metrics": {
            "1432075898000": 0.963781711428,
            "1432075899000": 1432075898000
          }
        }
      ]
    }
    ````
    
    How would we manage the 'metrics' part where field names are timestamps?


---

Reply via email to