November 2018
Beginner to intermediate
260 pages
6h 12m
English
The DataRegionMetrics interface is the gateway to Apache Ignite's memory region monitoring APIs. The first step to collect metrics is to enable it. The DataStorageMetrics interface provides methods to get metrics for data storage. The following Java code snippet enables metrics for a data region:
DataRegionConfiguration region1 = new DataRegionConfiguration(); region1.setName("region1"); region1.setMetricsEnabled(true);
It can also be enabled and disabled at runtime via JMX beans.
ignite.dataRegionMetrics() returns a collection of DataRegionMetrics. You can invokes methods on DataRegionMetrics to get different statistics.
ignite.dataStorageMetrics() returns a DataStorageMetrics instance to check the data storage metrics. ...
Read now
Unlock full access