Quantcast
Viewing all articles
Browse latest Browse all 4189

Azure VM performance metrics

Hi,

I am using below reference URL to get the perfomance metrics of virtula machine like percentage CPU, Network In etc.
https://msdn.microsoft.com/en-us/library/mt743622.aspx

How to specify the start and end time in the filter expression URL. Because

1) Created one new virtual machine on 2/11/2016 at 2.30 pm. I can view the performance metrics like percentage CPU, Network In etc. in new azure portal
2) But i was not able to view the metcis using REST API.
3) When i use power shell script i can get the values. But when i use my system time as start and end time for filter condition this will not giving output. But i can view this in Azure new portal (attached screenshot for reference)

https://management.azure.com/subscriptions/<sub_id>/resourceGroups/<res_grp>/providers/Microsoft.Compute/virtualMachines/<vm_name>/providers/microsoft.insights/metrics?api-version=2016-09-01&$filter=(name.value eq 'Percentage CPU') and aggregationType eq 'Total' and startTime eq 2016-11-02T10:40:00Z and endTime eq 2016-11-02T10:41:00Z and timeGrain eq duration'PT1M'"

Start time and end time is my system Time.

Please help to resolve this issue.

Thanks & Regards

RathideviImage may be NSFW.
Clik here to view.


rathidevi



Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>