I am using Azure Java SDK. Is there a way to find out a VM's usage metrics using the SDK like CPU and Memory?
I have already tried
ComputeUsages computeUsages = this.azure.computeUsages();
PagedList<ComputeUsage> listByRegion = computeUsages.listByRegion(Region.US_EAST);
for(ComputeUsage cmp : listByRegion) {
System.out.println("Compute usage " + cmp.name().localizedValue() + " == " + cmp.currentValue());
}
But this gets me the metric information for the region as a whole. Is there a way to get metrics on a VM basis ?