<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: extract processor monitoring data in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/extract-processor-monitoring-data/m-p/300157#M220064</link>
    <description>&lt;P&gt;The easiest way to grab monitoring data is via the NiFi REST API.&amp;nbsp; Also everything in the NiFi UI is done through REST calls which you can call programmatically.&amp;nbsp; &amp;nbsp;Please read the NiFi docs they are linked directly from your running NiFi application or on the web.&amp;nbsp; &amp;nbsp;They are very thorough and have all the information you could want:&amp;nbsp; &amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/&lt;/A&gt;.&amp;nbsp; &amp;nbsp;If you are not running NiFi 1.11.4, I recommend you please upgrade.&amp;nbsp; &amp;nbsp;This is supported by Cloudera on multiple platforms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NiFi Rest API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's also an awesome Python wrapper for that REST API:&amp;nbsp;&amp;nbsp;&lt;A href="https://pypi.org/project/nipyapi/" target="_blank"&gt;https://pypi.org/project/nipyapi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in NiFi flow programming, every time you produce data to Kafka you get metadata back in FlowFile Attributes.&amp;nbsp; &amp;nbsp;You can push those attributes directly to a kafka topic if you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So after your PublishKafkaRecord_2_0 1.11.4 so for success read the attributes on # of record and other data then AttributesToJson and push to another topic.&amp;nbsp; &amp;nbsp;you may want a mergerecord in there to aggregate a few of those together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are interested in Kafka metrics/record counts/monitoring then you must use Cloudera Streams Messaging Manager, it provides a full Web UI, Monitoring Tool, Alerts, REST API and everything you need for monitoring every producer, consumer, broker, cluster, topic, message, offset and Kafka component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best way to get NiFi stats is to use the NiFi Reporting Tasks, I like the SQL Reporting task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL Reporting Tasks are very powerful and use standard SELECT * FROM JVM_METRICS style reporting, see my article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/04/sql-reporting-task-for-cloudera-flow.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2020/04/sql-reporting-task-for-cloudera-flow.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Monitoring Articles&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/04/monitoring-number-of-of-flow-files.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/04/monitoring-number-of-of-flow-files.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/03/apache-nifi-operations-and-monitoring.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/03/apache-nifi-operations-and-monitoring.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Other Resources&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_9.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_9.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/08/using-cloudera-streams-messaging.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/08/using-cloudera-streams-messaging.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.to/tspannhw/apache-nifi-and-nifi-registry-administration-3c92" target="_blank" rel="noopener"&gt;https://dev.to/tspannhw/apache-nifi-and-nifi-registry-administration-3c92&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.to/tspannhw/using-nifi-cli-to-restore-nifi-flows-from-backups-18p9" target="_blank" rel="noopener"&gt;https://dev.to/tspannhw/using-nifi-cli-to-restore-nifi-flows-from-backups-18p9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/p/links.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/p/links.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/apache_nifi/apache_nifi_monitoring.htm" target="_blank" rel="noopener"&gt;https://www.tutorialspoint.com/apache_nifi/apache_nifi_monitoring.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Building-a-Custom-Apache-NiFi-Operations-Dashboard-Part-1/ta-p/249060" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/Building-a-Custom-Apache-NiFi-Operations-Dashboard-Part-1/ta-p/249060&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-metrics-reporting-nar/1.11.4/org.apache.nifi.metrics.reporting.task.MetricsReportingTask/" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-metrics-reporting-nar/1.11.4/org.apache.nifi.metrics.reporting.task.MetricsReportingTask/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.11.4/org.apache.nifi.reporting.script.ScriptedReportingTask/index.html" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.11.4/org.apache.nifi.reporting.script.ScriptedReportingTask/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 16:24:15 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2020-07-21T16:24:15Z</dc:date>
    <item>
      <title>extract processor monitoring data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/extract-processor-monitoring-data/m-p/300115#M220041</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;being pretty new to Nifi, I am strugeling to extract interface monitoring data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming a very simple ingest flow like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;HttpListener -&amp;gt; KafkaPublisher&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get throughput information, i.e. number of records put (e.g.) every minute to a topic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is NifiSummary -&amp;gt; Processors -&amp;gt; Status History, which might be useful. Can the statistics be accessed programatically and how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 11:08:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/extract-processor-monitoring-data/m-p/300115#M220041</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2020-07-21T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: extract processor monitoring data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/extract-processor-monitoring-data/m-p/300157#M220064</link>
      <description>&lt;P&gt;The easiest way to grab monitoring data is via the NiFi REST API.&amp;nbsp; Also everything in the NiFi UI is done through REST calls which you can call programmatically.&amp;nbsp; &amp;nbsp;Please read the NiFi docs they are linked directly from your running NiFi application or on the web.&amp;nbsp; &amp;nbsp;They are very thorough and have all the information you could want:&amp;nbsp; &amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/&lt;/A&gt;.&amp;nbsp; &amp;nbsp;If you are not running NiFi 1.11.4, I recommend you please upgrade.&amp;nbsp; &amp;nbsp;This is supported by Cloudera on multiple platforms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NiFi Rest API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's also an awesome Python wrapper for that REST API:&amp;nbsp;&amp;nbsp;&lt;A href="https://pypi.org/project/nipyapi/" target="_blank"&gt;https://pypi.org/project/nipyapi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in NiFi flow programming, every time you produce data to Kafka you get metadata back in FlowFile Attributes.&amp;nbsp; &amp;nbsp;You can push those attributes directly to a kafka topic if you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So after your PublishKafkaRecord_2_0 1.11.4 so for success read the attributes on # of record and other data then AttributesToJson and push to another topic.&amp;nbsp; &amp;nbsp;you may want a mergerecord in there to aggregate a few of those together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are interested in Kafka metrics/record counts/monitoring then you must use Cloudera Streams Messaging Manager, it provides a full Web UI, Monitoring Tool, Alerts, REST API and everything you need for monitoring every producer, consumer, broker, cluster, topic, message, offset and Kafka component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best way to get NiFi stats is to use the NiFi Reporting Tasks, I like the SQL Reporting task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL Reporting Tasks are very powerful and use standard SELECT * FROM JVM_METRICS style reporting, see my article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/04/sql-reporting-task-for-cloudera-flow.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2020/04/sql-reporting-task-for-cloudera-flow.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Monitoring Articles&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/04/monitoring-number-of-of-flow-files.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/04/monitoring-number-of-of-flow-files.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/03/apache-nifi-operations-and-monitoring.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/03/apache-nifi-operations-and-monitoring.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Other Resources&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_9.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_9.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/08/using-cloudera-streams-messaging.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/2019/08/using-cloudera-streams-messaging.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.to/tspannhw/apache-nifi-and-nifi-registry-administration-3c92" target="_blank" rel="noopener"&gt;https://dev.to/tspannhw/apache-nifi-and-nifi-registry-administration-3c92&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.to/tspannhw/using-nifi-cli-to-restore-nifi-flows-from-backups-18p9" target="_blank" rel="noopener"&gt;https://dev.to/tspannhw/using-nifi-cli-to-restore-nifi-flows-from-backups-18p9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/p/links.html" target="_blank" rel="noopener"&gt;https://www.datainmotion.dev/p/links.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/apache_nifi/apache_nifi_monitoring.htm" target="_blank" rel="noopener"&gt;https://www.tutorialspoint.com/apache_nifi/apache_nifi_monitoring.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Building-a-Custom-Apache-NiFi-Operations-Dashboard-Part-1/ta-p/249060" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/Building-a-Custom-Apache-NiFi-Operations-Dashboard-Part-1/ta-p/249060&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-metrics-reporting-nar/1.11.4/org.apache.nifi.metrics.reporting.task.MetricsReportingTask/" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-metrics-reporting-nar/1.11.4/org.apache.nifi.metrics.reporting.task.MetricsReportingTask/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.11.4/org.apache.nifi.reporting.script.ScriptedReportingTask/index.html" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.11.4/org.apache.nifi.reporting.script.ScriptedReportingTask/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 16:24:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/extract-processor-monitoring-data/m-p/300157#M220064</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2020-07-21T16:24:15Z</dc:date>
    </item>
  </channel>
</rss>

