WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
||
Skip to end of metadata
Go to start of metadata

Introduction

This sample demonstrates how to view and analyze real time statistics on the Analytics Dashboard.

Prerequisites

Set up the prerequisites required for all samples.

Building the sample

This sample configuration does the following.

  • Creates an event stream named realTimeStreamData.
  • Creates a UI publisher named realTimeDataUiPublisher.
  • Creates a dashboard named Real Time Analytics Dashboard.
  • Creates the following three gadgets.
    • POPULATIONPERCOUNTRY
    • EVENTRECORDS
    • NUMOFVEHICLESPERCOUNTRY

Executing the sample

Follow the steps below to execute this sample.

  1. Execute one of the following commands to start the WSO2 CEP server.
    • On Windows:  <CEP_HOME>\bin\wso2server.bat --run
    • On Linux/Solaris/Mac OS:  sh <CEP_HOME>/bin/wso2server.sh

  2. Copy the contents in the <CEP_HOME>/samples/cep/artifacts/1501/carbonapps directory to the <CEP_HOME>/repository/deployment/server/carbonapps directory.

    If the carbonapps directory does not already exist in the <CEP_HOME>/repository/deployment/server/carbonapps directory, create it and copy the required content to it.

  3. Copy the contents in the <CEP_HOME>/samples/cep/artifacts/1501/eventsimulatorfiles directory to the <CEP_HOME>/repository/deployment/server/eventsimulatorfiles directory.
  4. Log into the WSO2 CEP Management Console via the following URL.
    https://<CEP_HOST>:<CEP_PORT/carbon/
  5. In the Tools tab click Event Simulator to open the Event Stream Simulator page.
  6. Select realTimeStreamData:1.0.0 for the Event Stream Name field and click Play for the realTimeDashboardData.csv file.

  7. In the Main tab, click Analytics Dashboard, and log into the Analytics Dashboard using your credentials. The Real Time Analytics dashboard is displayed as follows.
  8. Click View. Real time statistics generated are displayed as follows.

 

  • No labels