Apache Nifi 简明教程
Apache NiFi - Reporting Task
Apache NiFi 报告任务类似于控制器服务,它们在后台运行并发送或记录 NiFi 实例的统计数据。还可以在与控制器设置相同的页面从 NiFi 报告任务进行访问,但位于不同的选项卡中。
Apache NiFi reporting tasks are similar to the controller services, which run in the background and send or log the statistics of NiFi instance. NiFi reporting task can also be accessed from the same page as controller settings, but in a different tab.
若要添加报告任务,开发人员需要单击报告任务页面右上角的加号按钮。这些报告任务主要用于监视 NiFi 实例的活动,无论是在公告中还是在来源中。主要而言,这些报告任务使用“站点对站点”将 NiFi 统计数据传输到其他节点或外部系统。
To add a reporting task, a developer needs to click on the plus button present at the top right hand side of the reporting tasks page. These reporting tasks are mainly used for monitoring the activities of a NiFi instance, in either the bulletins or the provenance. Mainly these reporting tasks uses Site-to-Site to transport the NiFi statistics data to other node or external system.
现在,让我们添加配置的报告任务以加深了解。
Let us now add a configured reporting task for more understanding.
MonitorMemory
当内存池超过指定百分比时,此报告任务会用于生成公告。按照以下步骤配置 MonitorMemory 报告任务:
This reporting task is used to generate bulletins, when a memory pool crosses specified percentage. Follow these steps to configure the MonitorMemory reporting task −
-
Add in the plus sign and search for MonitorMemory in the list.
-
Select MonitorMemory and click on ADD.
-
Once it is added in the main page of reporting tasks main page, click on the configure icon.
-
In the properties tab, select the memory pool, which you want to monitor.
-
Select the percentage after which you want bulletins to alert the users.
-
Start the reporting task.