kudawdev / nifi-monitoring-splunk

Nifi Monitoring Splunk
MIT License
5 stars 4 forks source link

Status History #27

Closed idglabs closed 1 year ago

idglabs commented 1 year ago

Hello

I'm wondering if is possible to have in spunk dashboard the Status History of some processors? using all information from NIFI API

avasquezkudaw commented 1 year ago

Hi, sorry for being offline for a while. It might be possible as long as the information is obtained from the API. Do you know which endpoint could be used to obtain it?

idglabs commented 1 year ago

Welcome back.

Thank you for your reply.

avasquezkudaw commented 1 year ago

Hi,

I found this endpoint in the nifi api (/nifi-api/flow/process-groups/root/status?recursive=true). Can you test if running it in your environment returns results? On my side it delivered results in json format.

The problem with this is the complexity of the query in splunk since it must search all processors recursively at multiple levels. I'm thinking of ideas to visually display these states.

idglabs commented 1 year ago

Hi ,

Thank you for your feedback.

I've tested your ENDPOINT -(/nifi-api/flow/process-groups/root/status?recursive=true

it's return huge data: Results in json format.

You are very right related to complexity of query splunk and for this I'm thinking to use the API ENDPOINT only for selected processor Group ,(which can be defined in CSV file example hows defined instances in splunk drop-down menu)

I've already start to work on some possible scenario (but still on paper work )

so if my thought it's right in order to have the API ENDPOINT for Status History of some Processor there are the steps

what do you think?

avasquezkudaw commented 1 year ago

I think it's a good idea. I checked that endpoint and it replies a lot of data too. My question is how often the endpoint should be consulted, and how the end user can set the processid list. I am going to check if setting in a csv or setting in the modular input may be the best alternative. If you have another idea, welcome. Regarding the information, I think this should be displayed as a line graph over time. You tell me your opinions. Greetings.

idglabs commented 1 year ago

Sorry for the late reply. I'm working on some script .python for API interrogation.

Thank you very much for your support.

One I have something I will let you know

avasquezkudaw commented 1 year ago

Hello,

Maybe it's a good idea to add a new endpoint in nifi_TA_monitoring script. I'm working in datainput page, and I added selectors for endpoints and list of process groups to monitor:

image

Tell me what do you think about it.

For other side, the event of this endpoint must be splitted in splunk, because one event have multiples timestams and values. So, i don't know if you have examples of splunk query to create a metric using this information.

image

Regards.

avasquezkudaw commented 1 year ago

In new version, we added status history monitoring.