This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuring the Statistics Collector

Starting from WSO2 ESB version 2.1.3, the runtime behavior of the mediation statistics component can be customized to suit your actual data collection requirements. This is achieved by adding some entries to the carbon.xml file which can be found in the repository/conf directory of the ESB installation (In ESB version 2.1.3 this file is in the conf directory). The following sample XML snippet shows all the available settings:

<MediationStat>
	<ReportingInterval>5000</ReportingInterval>
	<Persistence>enabled</Persistence>
	<RegistryLocation>/stats/mediation</RegistryLocation>
	<Observers>com.test.data.Collector</Observers>
</MediationStat>

The following table describes each of the configurable parameters:

Parameter/Setting

Description

Default Value

ReportingInterval

The mediation statistics component uses a worker thread to collect data from the mediation engine. This thread runs continuously as long as there is data available in the bus. If there is no data to be collected, the worker thread goes to sleep for a specified amount of time. This parameter is used to specify the duration of the sleep, in milliseconds. Once the sleep duration has expired, the reporter thread will wake up and continue operations. A lower ReportingInterval value results in a proactive statistics collector and a very dynamic statistics user interface.

5000

Persistence

Set this parameter to enabled if you want the statistics component to save the collected data to the Governance Registry.

disabled

RegistryLocation

This parameter is required only if persistence is enabled for mediation statistics. It is used to specify the location in the Governance Registry, where the data should be saved.

 

Observers

Use this parameter to engage custom statistics consumers.

Â