JVM Metrics
JVM Metrics provides an API for WSO2 Carbon Components to use Metrics library.
Using JVM Metrics
To enable JVM Metrics for your product, set the Enabled
parameter under the Metrics
element to true
in the <Ml_HOME>/repository/conf/metrics.xml
file. For more information, see Configuring metrics.xml.Â
Alternatively, you can enable metrics at the time of starting the ML server by using the following command.
-Dmetrics.enabled=true
Once metrics are enabled, metrics are updated for WSO2 ML in the Metrics Dashboard as shown below. The extent to which each gauge in this dashboard is updated is determined by specifying the level for the relevant property for each gauge in the metrics.properties file.
By default, JVM Metrics are stored in a H2 database. If you want to point WSO2 ML to store it in another database you need to change the configuration properties of the metrics-datasources.xml accordingly.Â