...
Element Name | Description | Type | Default Value | Mandatory/Optional |
---|---|---|---|---|
Enabled | This parameter specifies whether metrics is enabled for CSV or not. | Boolean | false | Mandatory |
Location | The location in which the CSV files are stored. | String | <ML_HOME>/repository/logs/metrics/ | Mandatory |
PollingPeriod | The 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. | Integer | 60 | Mandatory |
JDBC
The parameters that can be configured for JDBC are as follows.
Element Name | Description | Type | Default Value | Mandatory/Optional | Notes | |||
---|---|---|---|---|---|---|---|---|
Enabled | This parameter specifies whether metrics is enabled for JDBC or not. | Boolean | true | Mandatory | ||||
DataSourceName | The name of the datasource used. | String | jdbc/WSO2MetricsDB | Mandatory | ||||
PollingPeriod | The 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. | Integer | 60 | This value is specified in milliseconds. | Integer | 60 | Mandatory | |
ScheduledCleanup | This 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/A | N/A | Mandatory | ||||
ScheduledCleanup/Enabled | This parameter specifies whether scheduled cleanup is enabled or not. | Boolean | true | Mandatory | ||||
ScheduledCleanup/ScheduledCleanupPeriod | The number of milliseconds that should elapse after a clean-up task before the next clean-up task is carried out. | Integer | 86400 | Mandatory | ||||
ScheduledCleanup/DaysToKeep | The number of days during which the scheduled clean-up task should be run. | Integer | 7 | Mandatory |
Example
The following is an excerpt of the metrics.xml
file.
...