Quantcast
Channel: VMware Communities : Discussion List - vRealize Operations Manager
Viewing all articles
Browse latest Browse all 5932

vROps PowerCLI throughput peak

$
0
0

Hello,

 

I'm looking to get a throughput calculation from vROps PowerCLI as follows:

 

Get a group of VMs

Use the 'virtualDisk|Read_Average' metric

It has a measurement for every 5 minutes.

For each 5 minute interval over the last 90 days, get the sum of this 'virtualDisk|Read_average' metric for all VMs in the environment.

Create a list that shows in one column, the time stamp for the particular time interval, and in the other column the sum of 'virtuaDisk|Read_average' for all VMs at that particular time.

 

For example:

 

Time Sum of virtualDisk|Read_average for all VMs
1:00 PM 2/1/20172364856 KBps
1:05 PM 2/1/20172394824 KBps
1:10 PM 2/1/20171934895 KBps

 

 

I'm looking to do a get-omstat and then group the results by time, and then sum the metrics for each time stamp.

 

What I've got so far is below - any input on how I could get the output to look like above chart?

 

$From = (Get-Date).adddays(-90)

$To = get-date

 

#Get a list of  VMs

$vmlist = Get-VM | select -ExpandProperty name

$omVM = Get-OMResource -ResourceKind VirtualMachine -Name $vmList

 

# vROps metrics

$omStatNames = 'virtualDisk|Read_Average'

 

$omStat = Get-OMStatKey -Name $omStatNames -ResourceKind VirtualMachine

 

# Get the vROps statistics

$p1Stat = Get-OMStat -Resource $omVM -Key $omStat -From $From -To $To | select -expandproperty value | group-object -property time


Viewing all articles
Browse latest Browse all 5932


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