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

ASF GitHub Bot commented on NIFI-4809:
--------------------------------------

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?


> Implement a SiteToSiteMetricsReportingTask
> ------------------------------------------
>
>                 Key: NIFI-4809
>                 URL: https://issues.apache.org/jira/browse/NIFI-4809
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Major
>
> At the moment there is an AmbariReportingTask to send the NiFi-related 
> metrics of the host to the Ambari Metrics Service. In a multi-cluster 
> configuration, or when working with MiNiFi (Java) agents, it might not be 
> possible for all the NiFi instances (NiFi and/or MiNiFi) to access the AMS 
> REST API.
> To solve this problem, a solution would be to implement a 
> SiteToSiteMetricsReportingTask to send the data via S2S to the "main" NiFi 
> instance/cluster that will be able to publish the metrics into AMS (using 
> InvokeHTTP). This way, it is possible to have the metrics of all the 
> instances exposed in one AMS instance.
> I propose to send the data formatted as we are doing right now in the Ambari 
> reporting task. If needed, it can be easily converted into another schema 
> using the record processors once received via S2S.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to