Hello community!
We are looking for how to get IOPS per VM using powerCLI commands such as Get-Stat (Reads per second & Writes per second on vCops, I presume).
I've read some articles online describing how to do that but there are no available statistics to be harvested on each VM we handle. Can I do that in the following condition? We have more than a thousand VMs.
Please advise what the best way is!
> Get-PowerCLIVersion
PowerCLI Version
----------------
VMware vSphere PowerCLI 5.5 Release 2 build 1671586
---------------
Snapin Versions
---------------
VMWare AutoDeploy PowerCLI Component 5.5 build 1598391
VMWare ImageBuilder PowerCLI Component 5.5 build 1598391
VMware License PowerCLI Component 5.5 build 1265954
VMware VDS PowerCLI Component 5.5 build 1671576
VMware vSphere PowerCLI Component 5.5 build 1671576
> Get-StatType -Entity "one_of_our_VMs"
cpu.usage.average
cpu.usagemhz.average
cpu.ready.summation
mem.usage.average
mem.swapinRate.average
mem.swapoutRate.average
mem.vmmemctl.average
mem.consumed.average
mem.overhead.average
disk.usage.average
disk.maxTotalLatency.latest
net.usage.average
sys.uptime.latest
cpu.cpuentitlement.latest
mem.mementitlement.latest
disk.used.latest
disk.provisioned.latest
disk.unshared.latest
Can you do a
Get-StatType -Entity $vm -Realtime
That should show more metrics.
If you can't see the required metrics for the Historical Intervals, it could mean that the Statistic Level are not set to keep those metrics.
See my PowerCLI & vSphere statistics – Part 1 – The basics post for some more info on this.
The metrics I use to do IOPS calculations are only kept for Statistics Level 3.
That is why I only do this for Realtime data, not historical data.
See for example Get the maximum IOPS
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Can you do a
Get-StatType -Entity $vm -Realtime
That should show more metrics.
If you can't see the required metrics for the Historical Intervals, it could mean that the Statistic Level are not set to keep those metrics.
See my PowerCLI & vSphere statistics – Part 1 – The basics post for some more info on this.
The metrics I use to do IOPS calculations are only kept for Statistics Level 3.
That is why I only do this for Realtime data, not historical data.
See for example Get the maximum IOPS
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Master LucD!
Thank you so much for your advice!!
Yes as you mentioned '-RealTime' option shows more metrics but what we want doesn't show without that... Actually we are in need of collecting such data for about one month with smaller granularity, if possible.
Seems like we have to consider some alternative ways.
Your blog is amazing! Let me pass it on to our team so we can exactly learn how such data is kept
Yes, even if you increase the Statistics level to the required level, you will have to wait at least one month until the data is there.
Be warned that increasing the Statistics level will grow the vCenter DB quite substantially.
Thanks, glad you like the posts :smileyplus:
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference