There are 2 issues with CPU usage collection
- I was able to observe that that many times CPU usage got from pTree.getCpuUsagePercent() is ResourceCalculatorProcessTree.UNAVAILABLE(i.e. -1) but ContainersMonitor do the calculation i.e. cpuUsageTotalCoresPercentage = cpuUsagePercentPerCore /resourceCalculatorPlugin.getNumProcessors() because of which UNAVAILABLE check in NMTimelinePublisher.reportContainerResourceUsage is not encountered. so proper checks needs to be handled
- EntityColumnPrefix.METRIC uses always LongConverter but ContainerMonitor is publishing decimal values for the CPU usage.