VMware Cloud Community
chadguiney
Contributor
Contributor
Jump to solution

Metric Counter Question

I am trying to get some performance stats from our VSphere environment. I am running a PowerCli command to get storage latency info and am getting an error....

"The metric counter "datastore.numberreadaveraged.average" doesn't exist for entity vmname"

Is there a way to add this metric counter to the VM so I can gather the info from the script? If I run the Get-Stattype -Entity vmname command I can see a couple disk counters listed but not the one I am looking for. I have done Google searching and having no luck finding an answer. Can someone shed some light on this form me?

Thanks in advance!

0 Kudos
1 Solution

Accepted Solutions
sjesse
Leadership
Leadership
Jump to solution

0 Kudos
5 Replies
sjesse
Leadership
Leadership
Jump to solution

You need to increase your statistics level

Configure Statistics Collection Intervals in the vSphere Client

0 Kudos
vmrale
Expert
Expert
Jump to solution

Yes. It should help.

Data Collection Levels

Data Counters

Regards
Radek

If you think your question have been answered correctly, please consider marking it as a solution or rewarding me with kudos.
0 Kudos
chadguiney
Contributor
Contributor
Jump to solution

Thank you sjesse​ that is what I am looking for. I appreciate your help!

0 Kudos
chadguiney
Contributor
Contributor
Jump to solution

One more quick question. I have increased the Statistics Level in VCenter to level 3 which should be enough. When I run the Get-Stattype -Entity I dont see the new stattype. Is there a period of time it has to be enabled before I see the datastore.numberWriteAveraged.average listed?

0 Kudos
chadguiney
Contributor
Contributor
Jump to solution

Nevermind I see it now. Just have to wait for settings to update.

0 Kudos