Monitors the average amount of time, or latency, it takes an event to pass through a specified path of the EPN of the specified application.
You specify the start and end stages of the path, and whether it should start or end at the entry or exit points of each respective stage. If you specify the same stage for the start and end of the path, you can monitor the latency of events flowing through a single stage.
Syntax
java wlevs.Admin [ Connection Arguments ] [ User Credentials Arguments ] [ Common Arguments ] MONITORAVGLATENCY -application application -startStage startStage -startStagePoint stagePoint -endStage endStage -endStagePoint stagePoint -avgInterval avgInterval -timeUnit timeUnit
Table A-31 MONITORAVGLATENCY Arguments
Argument | Definition |
---|---|
-application application
|
Specifies the name of the Oracle Stream Analytics application whose throughput and latency you want to monitor. To get the exact name of your application, you can:
|
-startStage startStage |
Specifies the name of the stage that starts the path for which you want to monitor latency. The stage is in the application specified by the |
-startStagePoint startStagePoint |
Specifies the specific starting point for monitoring latency of the specified start stage. You can start monitoring from the entry or exit point of the start stage. Valid values are |
-endStage endStage |
Specifies the name of the stage that ends the path for which you want to monitor latency. The stage is in the application specified by the |
-endStagePoint endStagePoint |
Specifies the specific ending point for monitoring latency of the specified end stage. You can end monitoring from the entry or exit point of the end stage. Valid values are |
-avgInterval avgInterval
|
Specifies the average interval across which average latency is calculated. Specify the units with the Default value is 100. |
Example
The following example shows how to monitor the average latency of events flowing through the cqlprocessor
component, from entry point to exit point, of the helloworld
application. Note that because the same stage is specified for both the start and end stages (cqlprocessor
), the latency monitoring is happening for just the events flowing through a single stage:
java wlevs.Admin -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password wlevs MONITORAVGLATENCY -application helloworld -startStage cqlprocessor -startStagePoint entry -endStage cqlprocessor -endStagePoint exit -avgInterval 100 -timeUnit MILLISECONDS