|
19 | 19 | This readme defines operational commands for managing instances.
|
20 | 20 |
|
21 | 21 | ## Table of Contents
|
22 |
| - |
23 | 22 | - [Description](#description)
|
24 |
| -- [Managing](#managing-minifi) |
25 |
| - - [Commands](#commands) |
| 23 | +- [Managing MiNiFi](#managing-minifi) |
| 24 | +- [SSL](#ssl) |
| 25 | +- [Commands](#commands) |
| 26 | + - [Specifying connecting information](#specifying-connecting-information) |
| 27 | + - [Start Command](#start-command) |
| 28 | + - [Stop command](#stop-command) |
| 29 | + - [List connections command](#list-connections-command) |
| 30 | + - [List components command](#list-components-command) |
| 31 | + - [Clear connection command](#clear-connection-command) |
| 32 | + - [GetSize command](#getsize-command) |
| 33 | + - [Update flow](#update-flow) |
| 34 | + - [Get full connection command](#get-full-connection-command) |
| 35 | + - [Get manifest command](#get-manifest-command) |
| 36 | + - [Flowstatus command](#flowstatus-command) |
| 37 | + - [Processor](#processor) |
| 38 | + - [Connection](#connection) |
| 39 | + - [Instance](#instance) |
| 40 | + - [System Diagnostics](#system-diagnostics) |
26 | 41 |
|
27 | 42 | ## Description
|
28 | 43 |
|
@@ -109,3 +124,57 @@ Provides a list of full connections, if any.
|
109 | 124 | ./minificontroller --manifest
|
110 | 125 |
|
111 | 126 | Writes the agent manifest json to standard output
|
| 127 | + |
| 128 | +#### Flowstatus command |
| 129 | + ./minificontroller --flowstatus "processor:TailFile:health,stats,bulletins" |
| 130 | + |
| 131 | +The command returns the flow status for the specified query in JSON format. |
| 132 | +The query consists of the query type, the element identifier, and the query options. Each part is separated by the ':' colon character. Multiple query options are specified as a comma-separated list. In some query types the identifier is omitted, in this case only the query type and the query options are specified. Multiple queries can also be specified in a flowStatus command, in this case the queries are separated by the ';' semicolon character. For example: `./minificontroller --flowstatus "processor:TailFile:health,stats,bulletins;processor:LogAttribute:stats"` |
| 133 | + |
| 134 | +Supported query types: |
| 135 | + |
| 136 | +##### Processor |
| 137 | + |
| 138 | +To query the processors, use the `processor` flag and specify the processor (by ID, name or "all") followed by one of the processor options. The processor options are below: |
| 139 | + |
| 140 | +- health: The processor's run status, whether or not it has bulletins. |
| 141 | +- bulletins: A list of all the current bulletins (if there are any). |
| 142 | +- stats: The current stats of the processor. |
| 143 | + |
| 144 | +An example query to get the health and stats of the "GenerateFlowFile" processor is below. |
| 145 | + |
| 146 | +`./minificontroller --flowstatus "processor:GenerateFlowFile:health,stats"` |
| 147 | + |
| 148 | +##### Connection |
| 149 | + |
| 150 | +To query the connections, use the `connection` flag and specify the connection (by ID, name or "all") followed by one of the connection options. The connection options are below: |
| 151 | + |
| 152 | +- health: The processor's run status, whether or not it has bulletins. |
| 153 | + |
| 154 | +An example query to get the health and stats of the "Connection1" connection is below. |
| 155 | + |
| 156 | +`./minificontroller --flowstatus "connection:Connection1:health"` |
| 157 | + |
| 158 | +##### Instance |
| 159 | + |
| 160 | +To query the status of the MiNiFi instance, use the `instance` flag followed by one of the instance options. The instance options are below. |
| 161 | + |
| 162 | +- health: The instance reporting the aggregated state of the connections, and whether or not it has bulletins. |
| 163 | +- bulletins: A list of all the current bulletins (if there are any). |
| 164 | +- stats: The aggregated stats of all processors (bytes read, written, transferred, and flowfiles transferred). |
| 165 | + |
| 166 | +An example query to get the all the statuses of the instance is below. |
| 167 | + |
| 168 | +`./minificontroller --flowstatus "instance:health,stats,bulletins"` |
| 169 | + |
| 170 | +##### System Diagnostics |
| 171 | + |
| 172 | +To query the system diagnostics, use the `systemdiagnostics` flag followed by one of the system diagnostics options. The system diagnostics options are below. |
| 173 | + |
| 174 | +- processorstats: The system processor stats. This includes the available processors and load average. |
| 175 | +- contentrepositoryusage: Disk usage stats on the partition or volume where the content repository is located. |
| 176 | +- flowfilerepositoryusage: Disk usage stats on the partition or volume where the flowfile repository is located. |
| 177 | + |
| 178 | +An example query to get the processor stats, content repository usage and FlowFile repository usage from the system diagnostics is below. |
| 179 | + |
| 180 | +`./minificontroller --flowStatus "systemdiagnostics:processorstats,contentrepositoryusage,flowfilerepositoryusage"` |
0 commit comments