Andrew Grande created MINIFI-130:
------------------------------------

             Summary: Output readable and configurable reports for 'flowStatus'
                 Key: MINIFI-130
                 URL: https://issues.apache.org/jira/browse/MINIFI-130
             Project: Apache NiFi MiNiFi
          Issue Type: Improvement
          Components: Management
    Affects Versions: 0.1.0
            Reporter: Andrew Grande
            Priority: Minor


Consider the following command and its output:
{code}
./minifi.sh flowStatus processor:all:health
minifi.sh: JAVA_HOME not set; results may vary

Java home:
MiNiFi home: /home/minifi/minifi

Bootstrap Config File: /home/minifi/minifi/conf/bootstrap.conf

FlowStatusReport{controllerServiceStatusList=null, 
processorStatusList=[{name='Delete internal attributes', 
processorHealth={runStatus='Running', hasBulletins=false, 
validationErrorList=[]}, processorStats=null, bulletinList=null}, {name='Tag 
suspicious entries', processorHealth={runStatus='Running', hasBulletins=false, 
validationErrorList=[]}, processorStats=null, bulletinList=null}, 
{name='Normalize Date', processorHealth={runStatus='Running', 
hasBulletins=false, validationErrorList=[]}, processorStats=null, 
bulletinList=null}, {name='Tag the origin datacenter', 
processorHealth={runStatus='Running', hasBulletins=false, 
validationErrorList=[]}, processorStats=null, bulletinList=null}, 
{name='ListenSyslog', processorHealth={runStatus='Running', hasBulletins=false, 
validationErrorList=[]}, processorStats=null, bulletinList=null}], 
connectionStatusList=null, remoteProcessGroupStatusList=null, 
instanceStatus=null, systemDiagnosticsStatus=null, 
reportingTaskStatusList=null, errorsGeneratingReport=[]}
{code}

This is merely a result of a FlowStatusReport.toString(). Here's what we'd like 
to see improved:
# Configurable format (JSON or YAML). I personally would love a clean JSON 
output, as then it's easy to query with JQ processor on command line, for 
example.
# Clean output parseable by tools. I.e. don't print bootstrap output or provide 
a way to redirect a stream or save to a file. Again, mostly for CLI automation
# Update related status reporters to incorporate above changes (shell command 
handler and PeriodicStatusReporters)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to