This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Skip to end of metadata
Go to start of metadata

Apache NiFi 0.3.0 adds a ReportingTask to send metrics to Ambari, the ticket for this work is NIFI-790.

Sending metrics is somewhat independent of doing something useful with them in Ambari, so this page describes how you could configure Ambari to make use of these metrics.

Step-by-step guide

  1. Define a NIFI service in Ambari
    1. An example service definition can be downloaded here.
    2. The contents of this zip file are meant to be overlaid in the resources directory of the ambari-server installation, in many cases this would be /var/lib/ambari-server/resources.
  2. After placing the directories and files in the right location, restart ambari-server and ambari-agent
  3. Issue REST commands to tell Ambari to install the NIFI service:
    1. POST http://<host>:<port>/api/v1/clusters/<cluster-name>/services/NIFI
    2. POST http://<host>:<port>/api/v1/clusters/<cluster-name>/services/NIFI/components/NIFI_MASTER
    3. POST http://<host>:<port>/api/v1/clusters/<cluster-name>/hosts/<hostname>/host_components/NIFI_MASTER
  4. Go to Ambari and select to "Re-Install" the service
  5. Select to Start the service
  6. Assuming you have the AmbariReportingTask running on a NiFi instance somewhere pointing to the given Ambari instance, you should see metrics on the NIFI Service page with in a few minutes.