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

You can customize the runtime behavior of mediation statistics to suit your actual data collection requirements. To do this, add the <MediationStat> element to the <ESB_HOME>/repository/conf/carbon.xml file. 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.

Â