You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Ben .T.George" <be...@gmail.com> on 2023/02/15 10:20:08 UTC

How to configure PrometheusReportingTask

Hello,

My Nifi instance runs on a virtual machine, and I wish to configure
Prometheus Reporting, which runs on another virtual machine.

*Server1:*
Nifi 1.19.1

*Server2:*
Prometheus - running on port 9090
Prometheus - Pushgateway -  port 9091
Grafana - running on port 3000

All Above running on docker,

I am getting the following error when I try to configure
PrometheusReportingTask

[image: image.png]

[image: image.png]

How can I configure it correctly?

Regards,
Ben

Re: How to configure PrometheusReportingTask

Posted by "Ben .T.George" <be...@gmail.com>.
Hello,

Thanks  a lot for pointing it out. Current status is that I am able to see
metrics in prometheus.

Could please tell me how can i plot this into grafana, which is
also running in  a container(same prometheus server)

Regards,
Ben

On Wed, Feb 15, 2023 at 1:52 PM Pierre Villard <pi...@gmail.com>
wrote:

> Hi,
>
> The property is expecting a port number. When started the reporting
> task will expose the metrics on that port. You then need to configure
> Prometheus with a job that will fetch the data from that endpoint. In other
> words, NiFi is not pushing the metrics, it's making the metrics available
> via HTTP(S).
>
> HTH,
> Pierre
>
> Le mer. 15 févr. 2023 à 05:21, Ben .T.George <be...@gmail.com> a
> écrit :
>
>> Hello,
>>
>> My Nifi instance runs on a virtual machine, and I wish to configure
>> Prometheus Reporting, which runs on another virtual machine.
>>
>> *Server1:*
>> Nifi 1.19.1
>>
>> *Server2:*
>> Prometheus - running on port 9090
>> Prometheus - Pushgateway -  port 9091
>> Grafana - running on port 3000
>>
>> All Above running on docker,
>>
>> I am getting the following error when I try to configure
>> PrometheusReportingTask
>>
>> [image: image.png]
>>
>> [image: image.png]
>>
>> How can I configure it correctly?
>>
>> Regards,
>> Ben
>>
>>

Re: How to configure PrometheusReportingTask

Posted by Pierre Villard <pi...@gmail.com>.
Hi,

The property is expecting a port number. When started the reporting
task will expose the metrics on that port. You then need to configure
Prometheus with a job that will fetch the data from that endpoint. In other
words, NiFi is not pushing the metrics, it's making the metrics available
via HTTP(S).

HTH,
Pierre

Le mer. 15 févr. 2023 à 05:21, Ben .T.George <be...@gmail.com> a
écrit :

> Hello,
>
> My Nifi instance runs on a virtual machine, and I wish to configure
> Prometheus Reporting, which runs on another virtual machine.
>
> *Server1:*
> Nifi 1.19.1
>
> *Server2:*
> Prometheus - running on port 9090
> Prometheus - Pushgateway -  port 9091
> Grafana - running on port 3000
>
> All Above running on docker,
>
> I am getting the following error when I try to configure
> PrometheusReportingTask
>
> [image: image.png]
>
> [image: image.png]
>
> How can I configure it correctly?
>
> Regards,
> Ben
>
>