I am hoping to periodically print some Ignite metrics to Grafana. I tried 
printing various DataRegionMetrics and DataStorageMetrics method results and 
they were not what I expected. For the default DataRegionMetrics (the only one 
we are using), getName, getOffHeapUsedSize, and getPhysicalMemorySize all 
return 0, while getOffHeapSize and getTotalAllocatedSize return values that 
make more sense (200 MB for off heap (what we allocated on start up), and 1.7 
GB for total allocated). For DataStorageMetrics, getCheckpointBufferSize, 
getOffHeapSize, getOffHeapUsedSize, getTotalAllocatedSize, and getWalTotalSize 
all return 0, which doesn't make sense given we have 1.7 GB data in the cache. 
Any idea why I am getting 0 for these various metrics? Is there a more reliable 
way to grab Ignite metrics so that I can publish them to a 3rd party platform?

Reply via email to