Analyzing Realtime Service Statistics
Introduction
This sample demonstrates an analysis of data collected on the realtime service statistics of a set of requests being sent to the WSO2 API Manager.
Prerequisites
Set up the general prerequisites required for WSO2 DAS, before you start.
Building the sample
Follow the steps below to build the sample.
Uploading the Carbon Application
Follow the steps below to upload the Carbon Application (cApp) file of this sample. For more information, see Carbon Application Deployment for DAS .
- Log in to the DAS management console using the following URL: https://<DAS_HOST>:<DAS_PORT>/carbon/
- Click Main , and then click Add in the Carbon Applications menu.
- Click Choose File, and upload the
<DAS_HOME>/samples/capps/APIM_Realtime_Analytics.car
file as shown below.
- Click Main , then click Carbon Applications, and then click List view to see the uploaded Carbon application as shown below.
Executing the sample
Follow the steps below to execute the sample.
Running the data publisher
Navigate to <DAS_HOME>/samples/apim-stats/
directory in a new CLI tab, and execute the following command to run the data publisher: ant
This sends randomly generated events to the event stream which is deployed through the above CApp.
Viewing the output
You view the output in the logs of the CLI in which you ran WSO2 DAS as shown below.