<?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 Accessing NIFI Metrics endpoint for Prometheus without Authentication in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/399710#M250535</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are currently in the process of upgrading our NIFI version to 2.0.0. But as per the below NIFI jira task &lt;STRONG&gt;PrometheusReportingTask&lt;/STRONG&gt; has been completely removed from version 2.0.0 and added as a NIFI rest api endpoint.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-13507" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-13507&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The issue we are currently facing is that with old version 2.0.0-M2 metrics was exposed through&amp;nbsp;&lt;STRONG&gt;PrometheusReportingTask &lt;/STRONG&gt;which can be accessed without the need for any authentication and we were able to scrape the metrics to &lt;STRONG&gt;Prometheus.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But with the latest versions from &lt;STRONG&gt;2.0.0&lt;/STRONG&gt; we have to provide the Bearer Token(&lt;STRONG&gt;Using OIDC&lt;/STRONG&gt;) to access the metrics as it is a Rest API endpoint which is causing difficulties to integrate with Prometheus as we need to add an extra layer to get the token.&lt;/P&gt;&lt;P&gt;So my question here is, If there is any way to access the &lt;STRONG&gt;nifi-api/flow/metrics/prometheus&amp;nbsp;&lt;/STRONG&gt;without the need to provide any authentication which will solve our issue.&lt;/P&gt;&lt;P&gt;Any Suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 18:21:51 GMT</pubDate>
    <dc:creator>ravi_tadepally</dc:creator>
    <dc:date>2025-01-06T18:21:51Z</dc:date>
    <item>
      <title>Accessing NIFI Metrics endpoint for Prometheus without Authentication</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/399710#M250535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are currently in the process of upgrading our NIFI version to 2.0.0. But as per the below NIFI jira task &lt;STRONG&gt;PrometheusReportingTask&lt;/STRONG&gt; has been completely removed from version 2.0.0 and added as a NIFI rest api endpoint.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-13507" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-13507&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The issue we are currently facing is that with old version 2.0.0-M2 metrics was exposed through&amp;nbsp;&lt;STRONG&gt;PrometheusReportingTask &lt;/STRONG&gt;which can be accessed without the need for any authentication and we were able to scrape the metrics to &lt;STRONG&gt;Prometheus.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But with the latest versions from &lt;STRONG&gt;2.0.0&lt;/STRONG&gt; we have to provide the Bearer Token(&lt;STRONG&gt;Using OIDC&lt;/STRONG&gt;) to access the metrics as it is a Rest API endpoint which is causing difficulties to integrate with Prometheus as we need to add an extra layer to get the token.&lt;/P&gt;&lt;P&gt;So my question here is, If there is any way to access the &lt;STRONG&gt;nifi-api/flow/metrics/prometheus&amp;nbsp;&lt;/STRONG&gt;without the need to provide any authentication which will solve our issue.&lt;/P&gt;&lt;P&gt;Any Suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 18:21:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/399710#M250535</guid>
      <dc:creator>ravi_tadepally</dc:creator>
      <dc:date>2025-01-06T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing NIFI Metrics endpoint for Prometheus without Authentication</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/399739#M250538</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83067"&gt;@ravi_tadepally&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;A secured NiFi is always going to require successful authentication and authorization.&lt;BR /&gt;&lt;BR /&gt;I assume you are fetching a token because you have configured your secured NiFi to use OIDC based user authentication.&amp;nbsp; But keep in mind that a secured NiFi will always support Mutual TLS based authentication no matter what additional authentication methods have been configured.&amp;nbsp; &amp;nbsp;For Rest-api interactions it is often easier to generate a clientAuth certificate that is trusted by your NiFi's truststore and use that instead for authentication.&amp;nbsp; With mutual TLS based authentication there&amp;nbsp; is no need to fetch any token.&amp;nbsp; You simply include the clientAuth certificate in every rest-api call.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You could even handle this task via a NiFi dataflow that utilizes the invokeHTTP processor (configured with a SSL Context Service.&amp;nbsp; Could even just use NiFi's keystore and truststore) to make the rest-api call to fetch Prometheus data and then through that dataflow send it to the desired endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 13:57:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/399739#M250538</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-01-07T13:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing NIFI Metrics endpoint for Prometheus without Authentication</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/402717#M251756</link>
      <description>&lt;P&gt;Hi Matt,&lt;BR /&gt;Thank you this solution saved my day..&lt;BR /&gt;I am looking for Accept as Solution button but couldn't find that in this page.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 14:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/402717#M251756</guid>
      <dc:creator>sujith18</dc:creator>
      <dc:date>2025-02-21T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing NIFI Metrics endpoint for Prometheus without Authentication</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/402719#M251758</link>
      <description>&lt;P&gt;The original poster of the thread&amp;nbsp;has the ability to mark the solution&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/124280"&gt;@sujith18&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83067"&gt;@ravi_tadepally&lt;/a&gt;&amp;nbsp;has&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;'s response helped you overcome your issue? If so, please mark his reply as the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:13:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-NIFI-Metrics-endpoint-for-Prometheus-without/m-p/402719#M251758</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2025-02-21T15:13:35Z</dc:date>
    </item>
  </channel>
</rss>

