We need to get performance counter(cpu,disk,memory usage) for all vm . So we are collecting performance counter at once to collect metric id for performance counter as like below
PropertySpec propertySpec = new PropertySpec();
propertySpec.setAll(Boolean.FALSE);
propertySpec.getPathSet().add("perfCounter");
propertySpec.setType("PerformanceManager");
List<PropertySpec> propertySpecs = new ArrayList<PropertySpec>();
propertySpecs.add(propertySpec);
Is it correct? Because we are getting wrong cpu.usage.average value like 340 . But needs to be below 100 rt?
Note, we are having 2vCPU for a vm which gets 340 as cpu usage.
Thanks,
Alex