Configuring your MiNiFi C++ Agent

After you have installed the MiNiFi C++ Agent, you need to update the configuration files for proper operation.

MiNiFi C++ relies on two configuration files: for general settings and config.yml for flow configuration.

Follow these steps to configure the MiNiFi C++ Agent:

  1. From the MiNiFi home directory, locate and open the configuration file.
  2. Configure the agent class to logically group MiNiFi C++ instances based on their functionality using the following setting:

    Replace [***AGENT_CLASS***] with your agent class name. For example: nifi.c2.agent.class=my_agent_class

  3. Configure the ID of the agent. If you do not specify an agent ID, MiNiFi generates a unique ID per agent instance.

    Replace [***AGENT_ID***] with your chosen ID. For example: nifi.c2.agent.identifier=minifi_cpp_13

  4. Enable MiNiFi to receive runtime flow instructions from EFM by setting the nifi.c2.enable property to true.
  5. Configure your EFM server endpoint.[***EFM SERVER_IP ADDRESS***]:10090/efm/api/c2-protocol/heartbeat[***EFM SERVER_IP ADDRESS***]:10090/efm/api/c2-protocol/acknowledge

    Replace [***EFM SERVER_IP ADDRESS***] with the IP address of the EFM server endpoint. For example with efm-host.corp.local

  6. Configure the heartbeat interval.

    Replace [***HEARTBEAT_INTERVAL***] with the time period you want to set as the frequency for the the agent to send a heartbeat to EFM. The format can be an integer in milliseconds, or an integer followed by a time period unit.

    For example: nifi.c2.agent.heartbeat.period=5000

    5 sec is also a valid value.

  7. Optional: Configure the metrics for your MiNiFi C++ Agent.

    For more information, see Metrics in the Apache NiFi - MiNiFi - C++ C2 Readme.

  8. Restart the agent to apply the changes.

    For the list of supported MiNiFi C++ processors, see MiNiFi C++ Agent processor support.