Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NIFI : summary data ingest

Highlighted

NIFI : summary data ingest

Explorer

Hi

Do you know if it is possible to use RESTFULL API to know how many data ingest/delete by a processor (deleteHDFS or putHDFS) ?

thanks

5 REPLIES 5

Re: NIFI : summary data ingest

Cloudera Employee
@mayki wogno

I'm not certain of the exact use case you describe but wanted to point you to the API docs section in case you were not aware. The link from the main docs page is easy to miss.

Here is a direct link to only that section: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

Re: NIFI : summary data ingest

Contributor

Just to elaborate on the answer of @Rob, consult the Counters section in the api docs: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html.

You will probably want to create a Counter that is incremented by the ingest/delete processor and then you can query the counter value via the REST API. See also this post: https://pierrevillard.com/2017/02/07/using-counters-in-apache-nifi/

Re: NIFI : summary data ingest

Explorer

Hi Thanks,

I know the link rest-api for nifi. But I would like construct a dashboard to know how many data are pass through a specific processor (exemple putHDFS, putSFTP)

Re: NIFI : summary data ingest

Contributor
@mayki wogno

I understand that you want to construct a dashboard, that is perfectly fine. If you need further help with that, then I recommend you to close this thread and ask a new, more specific question in a new thread. You see, your original question in this thread has already been answered: yes it is possible and you need to use the Counters API.

This community page can work out the best if the questions are specific and new questions are asked in new thread. So I kindly ask you to put some effort into implementing your dashboard and if you overcome an other problem, share it in a new thread.

Re: NIFI : summary data ingest

Explorer
@pbarna : thanks

i'll do it

Don't have an account?
Coming from Hortonworks? Activate your account here