title: MiNiFi - How to get processors list and number of queued flowfiles?
body: <p>I'd like to monitor state of the running MiNiFi flow, especially get list of the processors and number of queued flowfiles for each processor. I'm trying to use <a href="https://nifi.apache.org/minifi/system-admin-guide.html" rel="nofollow noreferrer">FlowStatus Script Query</a>, eg.:</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ ./minifi.sh flowStatus systemdiagnostics:processorstats
  {"controllerServiceStatusList":null,"processorStatusList":null,"connectionStatusList":null,"remoteProcessGroupStatusList":null,"instanceStatus":null,"systemDiagnosticsStatus":{"garbageCollectionStatusList":null,"heapStatus":null,"contentRepositoryUsageList":null,"flowfileRepositoryUsage":null,"processorStatus":{"loadAverage":1.99,"availableProcessors":2}},"reportingTaskStatusList":null,"errorsGeneratingReport":[]}
  
  $ ./minifi.sh flowStatus processor:all:health,stats,bulletins
  {"controllerServiceStatusList":null,"processorStatusList":[],"connectionStatusList":null,"remoteProcessGroupStatusList":null,"instanceStatus":null,"systemDiagnosticsStatus":null,"reportingTaskStatusList":null,"errorsGeneratingReport":[]}
  
  $ /minifi.sh flowStatus processor:MyProcessorName:health,stats,bulletins
  {"controllerServiceStatusList":null,"processorStatusList":[],"connectionStatusList":null,"remoteProcessGroupStatusList":null,"instanceStatus":null,"systemDiagnosticsStatus":null,"reportingTaskStatusList":null,"errorsGeneratingReport":["Unable to get status for request 'processor:MyProcessorName:health,stats,bulletins' due to:org.apache.nifi.minifi.status.StatusRequestException: No processor with key MyProcessorName to report status on"]}
  
  </code></pre>
  
  <p>but I'm receiving only nulls. What should I do to be able retrieve data which I want (enable some option in config?)? Is it possible using flowStatus queries? My flow which is running contains several processors, so why <code>systemdiagnostics</code> shows only two <code>availableProcessors</code> and why I can't use <code>flowStatus processor</code> command to get any processor data? </p>
  
  <p>Unfortunately NiFi/MiNiFi documentation is very poor, so I'm not even sure if I can retrieve processors data (number of queued elements and processors list) in this way. If not, maybe do you know some other way to do it? </p>