This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

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.

 

  • No labels