<?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 PrometheusReportingTask with same port and multiple nifi instances on same machine in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316075#M226705</link>
    <description>&lt;P&gt;I am using Nifi 1.12.1 version and configuring Prometheus for monitoring. I have multiple nifi instances running on the same machine. But I am not able to get metrics for all on the same port 9092 and getting below error in nifi log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From 3 nifi instances, only one nifi is able to start Prometheus reporting task properly others are saying &lt;EM&gt;Address already in use&lt;/EM&gt; as displayed in error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can't we change the Prometheus metrics endpoint from nifi?&lt;/STRONG&gt;&amp;nbsp;For example for each nifi instance, we should be able to use a different metric endpoint in below way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi-1 - 9092/metrics (default metric end point)&lt;/LI&gt;&lt;LI&gt;nifi-2 &amp;gt;&amp;gt;&amp;gt; 9092/nifi_2_metrics&lt;/LI&gt;&lt;LI&gt;nifi-3 &amp;gt;&amp;gt;&amp;gt; 9092/nifi_3_metrics&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-05-10 09:55:39,957 ERROR [Timer-Driven Process Thread-4] o.a.n.c.s.StandardProcessScheduler Failed to invoke the On-Scheduled Lifecycle methods of [PrometheusReportingTask[id=47b5aa61-0179-1000-ce9d-d59160596cdb], java.lang.reflect.InvocationTargetException, 30 sec] due to {}; administratively yielding this ReportingTask and will attempt to schedule it again after {}
java.lang.reflect.InvocationTargetException: null
	at jdk.internal.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
	at org.apache.nifi.controller.scheduling.StandardProcessScheduler$2.run(StandardProcessScheduler.java:222)
	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.nifi.processor.exception.ProcessException: Failed to start Jetty server
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:152)
	... 15 common frames omitted
Caused by: java.io.IOException: Failed to bind to /0.0.0.0:9092
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)
	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)
	at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
	at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.server.Server.doStart(Server.java:385)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.apache.nifi.reporting.prometheus.PrometheusServer.&amp;lt;init&amp;gt;(PrometheusServer.java:90)
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:115)
	... 15 common frames omitted
Caused by: java.net.BindException: Address already in use
	at java.base/sun.nio.ch.Net.bind0(Native Method)
	at java.base/sun.nio.ch.Net.bind(Net.java:455)
	at java.base/sun.nio.ch.Net.bind(Net.java:447)
	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
	... 23 common frames omitted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 12:44:32 GMT</pubDate>
    <dc:creator>kkau</dc:creator>
    <dc:date>2021-05-10T12:44:32Z</dc:date>
    <item>
      <title>PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316075#M226705</link>
      <description>&lt;P&gt;I am using Nifi 1.12.1 version and configuring Prometheus for monitoring. I have multiple nifi instances running on the same machine. But I am not able to get metrics for all on the same port 9092 and getting below error in nifi log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From 3 nifi instances, only one nifi is able to start Prometheus reporting task properly others are saying &lt;EM&gt;Address already in use&lt;/EM&gt; as displayed in error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can't we change the Prometheus metrics endpoint from nifi?&lt;/STRONG&gt;&amp;nbsp;For example for each nifi instance, we should be able to use a different metric endpoint in below way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi-1 - 9092/metrics (default metric end point)&lt;/LI&gt;&lt;LI&gt;nifi-2 &amp;gt;&amp;gt;&amp;gt; 9092/nifi_2_metrics&lt;/LI&gt;&lt;LI&gt;nifi-3 &amp;gt;&amp;gt;&amp;gt; 9092/nifi_3_metrics&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-05-10 09:55:39,957 ERROR [Timer-Driven Process Thread-4] o.a.n.c.s.StandardProcessScheduler Failed to invoke the On-Scheduled Lifecycle methods of [PrometheusReportingTask[id=47b5aa61-0179-1000-ce9d-d59160596cdb], java.lang.reflect.InvocationTargetException, 30 sec] due to {}; administratively yielding this ReportingTask and will attempt to schedule it again after {}
java.lang.reflect.InvocationTargetException: null
	at jdk.internal.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
	at org.apache.nifi.controller.scheduling.StandardProcessScheduler$2.run(StandardProcessScheduler.java:222)
	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.nifi.processor.exception.ProcessException: Failed to start Jetty server
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:152)
	... 15 common frames omitted
Caused by: java.io.IOException: Failed to bind to /0.0.0.0:9092
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)
	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)
	at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
	at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.server.Server.doStart(Server.java:385)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.apache.nifi.reporting.prometheus.PrometheusServer.&amp;lt;init&amp;gt;(PrometheusServer.java:90)
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:115)
	... 15 common frames omitted
Caused by: java.net.BindException: Address already in use
	at java.base/sun.nio.ch.Net.bind0(Native Method)
	at java.base/sun.nio.ch.Net.bind(Net.java:455)
	at java.base/sun.nio.ch.Net.bind(Net.java:447)
	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
	... 23 common frames omitted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:44:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316075#M226705</guid>
      <dc:creator>kkau</dc:creator>
      <dc:date>2021-05-10T12:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316085#M226709</link>
      <description>&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-prometheus-nar/1.11.1/org.apache.nifi.reporting.prometheus.PrometheusReportingTask/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-prometheus-nar/1.11.1/org.apache.nifi.reporting.prometheus.PrometheusReportingTask/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to open a JIRA.&lt;/P&gt;&lt;P&gt;You should not run 3 nifis on the same machine unless it's in K8.&amp;nbsp; &amp;nbsp;NiFi needs a lot of RAM and cores.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:42:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316085#M226709</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-05-10T16:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316092#M226712</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88462"&gt;@kkau&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The ERROR you see is because the&amp;nbsp;&lt;SPAN&gt;PrometheusRecordSink controller services when started binds to the configured port as a listener which allows Prometheus server to connect to that port for the purpose fo scraping data from NiFi.&lt;BR /&gt;&lt;BR /&gt;On a single host, only one service can bind to a port.&amp;nbsp; So any subsequent component on that server that attempts to bind to that same port will fail with "address already in use".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't know much of anything about Prometheus server, but if you can configure Prometheus to scrape from a unique port on each NiFi instance then you should be able use the variable registry to define a unique port number per host.&amp;nbsp; By using NiFi Expression Language (EL) you would still have matching flow.xmls on all your NiFi nodes.&amp;nbsp; You would simply have a unique variable registry&amp;nbsp;file configured for each instance in that instance's &lt;STRONG&gt;nifi.properties&lt;/STRONG&gt; file.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1620674811198.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31145i3AD74328707E03DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1620674811198.png" alt="MattWho_0-1620674811198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for your nodes you would have three files:&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;path to file&amp;gt;/node1-variables&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;path to file&amp;gt;/node2-variables&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;path to file&amp;gt;/node3-variables&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In inside each of those files you would have the same property but each with unique value&lt;BR /&gt;&lt;STRONG&gt;PrometheusPort=9092&lt;/STRONG&gt;&amp;nbsp; (written to&amp;nbsp;node1-variables file)&lt;BR /&gt;&lt;STRONG&gt;PrometheusPort=9093&lt;/STRONG&gt;&amp;nbsp; (written to&amp;nbsp;node2-variables file)&lt;BR /&gt;&lt;STRONG&gt;PrometheusPort=9094&lt;/STRONG&gt;&amp;nbsp; (written to&amp;nbsp;node3-variables file)&lt;BR /&gt;&lt;BR /&gt;Then when you start this reporting task, each node binds to a different port number.&amp;nbsp; Then you have your Prometheus server scrape from all three unique&amp;nbsp;endpoints.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_1-1620675228538.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31146iD1DEAE622047E13A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_1-1620675228538.png" alt="MattWho_1-1620675228538.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But I do agree with&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;that having multiple NiFi hosts run on the same server is not a recommended setup.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you found that any of the provided solutions helped with your query, please take a moment to login and click accept on the solution(s).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Matt&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316092#M226712</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-10T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316221#M226754</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the solution given by you that is to use variable registry and to use the variable defined there with EL in PrometheusReportingTask property as ${PrometheusPort}. But it is not evaluating it as an expression it shows the error that it's not an Integer and I got NumberFormatException in logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think nifi-1.12.1 version just shows in the UI that this property support EL but actually it is not supporting.&lt;/P&gt;&lt;P&gt;I checked the source code as well in the git repo there as well, No evaluation is done for the Port property Expression ${}. Code is also expecting a hard-coded value.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/nifi/blob/fdda3582e3f60da74d82713e8677a1560d04a008/nifi-nar-bundles/nifi-prometheus-bundle/nifi-prometheus-reporting-task/src/main/java/org/apache/nifi/reporting/prometheus/PrometheusReportingTask.java#L117" target="_blank" rel="noopener"&gt;Git source code for PrometheusReportingTask class.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Error in logs&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-05-12 17:00:27,122 ERROR [Timer-Driven Process Thread-2] o.a.n.c.s.StandardProcessScheduler Failed to invoke the On-Scheduled Lifecycle methods of [PrometheusReportingTask[id=47b53f71-0179-1000-c8a2-06939a325530], java.lang.reflect.InvocationTargetException, 30 sec] due to {}; administratively yielding this ReportingTask and will attempt to schedule it again after {}
java.lang.reflect.InvocationTargetException: null
	at jdk.internal.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
	at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
	at org.apache.nifi.controller.scheduling.StandardProcessScheduler$2.run(StandardProcessScheduler.java:222)
	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.nifi.processor.exception.ProcessException: Failed to start Jetty server
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:152)
	... 15 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: "${PrometheusPort}"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.base/java.lang.Integer.parseInt(Integer.java:638)
	at java.base/java.lang.Integer.parseInt(Integer.java:770)
	at org.apache.nifi.reporting.prometheus.PrometheusReportingTask.onScheduled(PrometheusReportingTask.java:115)
	... 15 common frames omitted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:18:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316221#M226754</guid>
      <dc:creator>kkau</dc:creator>
      <dc:date>2021-05-12T12:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316249#M226759</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88462"&gt;@kkau&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry to hear that the embedded documentation was not accurate for the port property.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I filed an apache jira to address that issue:&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-8536" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-8536&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best path forward is following NIFi recommended best practice where each NiFi node in your cluster is on a unique host.&amp;nbsp; This would allow each node to bind this reporting task to the same port.&lt;BR /&gt;&lt;BR /&gt;Having multiple hosts on same server will present issue/challenges with any component (processor, controller service, reporting tasks, etc) that create a listener port.&amp;nbsp; While some may you may be able to work around with Variable Registry suggestion I shared, others like this use case will not.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:02:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316249#M226759</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-12T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: PrometheusReportingTask with same port and multiple nifi instances on same machine</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316251#M226761</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, I will consider your suggestion to not running multiple nifi on the same machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the variable registry approach as well but the problem is the same with that as well that we can not use the EL parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:26:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PrometheusReportingTask-with-same-port-and-multiple-nifi/m-p/316251#M226761</guid>
      <dc:creator>kkau</dc:creator>
      <dc:date>2021-05-12T19:26:28Z</dc:date>
    </item>
  </channel>
</rss>

