Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Start DAS without a port offset.
  2. Download and unzip BPS.
  3. Configure the bps.xml file in the <BPS_HOME>/repository/conf directory by adding the DAS publishing extension mentioned in Configure the DAS publishing extension.
  4. Configure a port offset of 5 in the <BPS_HOME>/repository/conf/carbon.xml file.
  5. Upload the KPISamplethe KPISample.zip BPEL process found inside the <BPS_HOME>/repository/samples/bpel directory to BPS.
  6. Click on the services list and send a KPISampleProcess request as mentioned below using tryit editor.

    Code Block
    languagexml
    <p:KPISampleProcessRequest xmlns:p="http://samples.bps.wso2.org">
        <brand xmlns="http://samples.bps.wso2.org">samsung</brand>
        <quantity xmlns="http://samples.bps.wso2.org">1</quantity>
        <total xmlns="http://samples.bps.wso2.org">500</total>
        <user xmlns="http://samples.bps.wso2.org">test</user>
    </p:KPISampleProcessRequest>

     

  7. Send a few request to the BPS process. It would publish this data to DAS and deploy a new stream definition with id ‘org.wso2.bam.phone.retail.store.kpi:1.0.0’.

  8. Commence KPI Monitoring. To do this, do the following.

    1. Log into DAS. 
    2. Click on Streams under the Manage tab to check the created stream definition.
       
    3. Click Edit under the Actions column. This will show all the information of the event stream. Do not change anything here for this sample. It will change the stream.

    4. You need to persist the data received from the BPEL process in order to analyse it. Click on the ‘Next[Persist Event]’ button at the bottom.

    5. Select whatever data you need to persist from here and click Save Event Stream.
       

  9. You must add an event receiver to populate the table you created with data received from the BPEL process. To do this, do the following.

    1. Click on Receivers under the Manage tab. 

    2. Click on Add Event Receiver. The following form appears.

    3. Fill the form with following information.

      • Event Receiver Name: <proper name>

      • Adapter type: wso2event

      • Event stream: org.wso2.bam.phone.retail.store.kpi:1.0.0

      • Message format: wso2event

    4. Submit the form to create new event receiver from BPS.

  10. Now you have setup the infrastructure to receive and analyse event information from BPS. Create a dashboard to visualize the KPI data.

    1. Create a new Dashboard in DAS as instructed in Adding a Dashboard.

    2. Follow the instructions in the ‘Adding a gadget using the gadget generation wizard’ section in the Adding Gadgets to a Dashboard topic. Select ‘ORG_WSO2_BAM_PHONE_STORE_KPI’ as the datasource here. You can create different types of charts and use different data combinations here.

    3. Add the new gadget to your dashboard.

...