for (Resource service : services) {
ResourceComponent serviceComponent = PluginContainer.getInstance().getInventoryManager()
.getResourceComponent(service);
if (serviceComponent instanceof MeasurementFacet) {
Set<MeasurementScheduleRequest> metricList = new HashSet<MeasurementScheduleRequest>();
metricList.add(new MeasurementScheduleRequest(1, "numbackends", 1000, true, DataType.MEASUREMENT));
MeasurementReport report = new MeasurementReport();
((MeasurementFacet) serviceComponent).getValues(report, metricList);
for (MeasurementData value : report.getNumericData()) {
System.out.println(value.getValue() + ":" + service.getName());
}