Versions Compared

Key

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

...

Element NameDescriptionTypeDefault ValueMandatory/Optional
EnabledThis parameter specifies whether metrics is enabled for CSV or not.BooleanfalseMandatory
LocationThe location in which the CSV files are stored.String<ML_HOME>/repository/logs/metrics/ Mandatory
PollingPeriodThe time interval at which the a polling activity is carried out to update the metrics dashboard based on the latest information. e.g., if the polling period is 60 , polling would be carried out every 60 milliseconds.Integer60 Mandatory

 

JDBC

The parameters that can be configured for JDBC are as follows.

Element NameDescriptionTypeDefault ValueMandatory/OptionalNotes
EnabledThis parameter specifies whether metrics is enabled for JDBC or not.BooleantrueMandatory 
DataSourceNameThe name of the datasource used.String jdbc/WSO2MetricsDB   Mandatory
PollingPeriodThe time interval at which the a polling activity is carried out to update the metrics dashboard based on the latest information. e.g., if the polling period is 60, polling would be carried out every 60 milliseconds. Integer60  This value is specified in milliseconds.Integer60Mandatory
ScheduledCleanupThis element contains parameters relating to the scheduled clean-up which includes Enabled, ScheduledCleanupPeriod and DaysToKeep. Scheduled clean-up involves creating a scheduled task to clear metric data in the database after a specified time interval. This is done to avoid excessive memory usage.    N/AN/AMandatory
ScheduledCleanup/EnabledThis parameter specifies whether scheduled cleanup is enabled or not.Booleantrue  Mandatory
ScheduledCleanup/ScheduledCleanupPeriodThe number of milliseconds that should elapse after a clean-up task before the next clean-up task is carried out.Integer86400  Mandatory
ScheduledCleanup/DaysToKeepThe number of days during which the scheduled clean-up task should be run.Integer7  Mandatory

Example

The following is an excerpt of the metrics.xml file.

...