Is there a NiFi API to read the Processor History?

829 views Asked by At

I am using NiFi API to build a custom application. I am unable to find an API that captures the processor history in a format as shown below. Does anyone know if this API exists?

NiFi Processor Summary

I have tried many of the API's here, but it's not obvious any of these can do the trick. NiFi REST Api documentation

1

There are 1 answers

3
Fudgy On BEST ANSWER

You can use the GET/processors/{id} to get back this information in the form of a ProcessorEntity. This contains all fields as shown in your screenshot: name, type, status, counters of last 5 minutes...

Inside the ProcessorEntity object, you can find the ProcessorStatus object which contains the name, type, status, 5min snapshot information per node and aggregated etc...

I included some links as examples to these objects from the NiFi python client, but you can also find some examples on the NiFi REST API docs you linked yourself.