You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetResourcePoolSummary() method returns a pointer to types.ResourcePoolSummary. In our clusters I've found that the pointer is always non-nil. Others have tested and in their environment have found that the pointer to types.ResourcePoolSummaryis nil.
What can be done to ensure that the quickStats property for the ResourcePoolSummary data object is populated?
The documentation indicates that the field need not be set. I take this to mean that one or more settings need to be adjusted in vSphere to collect those stats and expose them.
Thanks in advance for your help.
EDIT:
Others have tested and in their environment have found that the pointer to types.ResourcePoolSummaryis nil.
Turns out that they tested directly against an ESXi host instead of a vCenter instance. Is the quickStats property not populated for resource pools on a standalone ESXi host?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
mo.ResourcePool
value that I've namedrp
.I'm attempting to retrieve the
QuickStats.HostMemoryUsage
struct field value like so:fmt.Println(rp.Summary.GetResourcePoolSummary().QuickStats.HostMemoryUsage)
The
GetResourcePoolSummary()
method returns a pointer totypes.ResourcePoolSummary
. In our clusters I've found that the pointer is always non-nil. Others have tested and in their environment have found that the pointer totypes.ResourcePoolSummary
is nil.What can be done to ensure that the
quickStats
property for theResourcePoolSummary
data object is populated?The documentation indicates that the field need not be set. I take this to mean that one or more settings need to be adjusted in vSphere to collect those stats and expose them.
Thanks in advance for your help.
EDIT:
Turns out that they tested directly against an ESXi host instead of a vCenter instance. Is the quickStats property not populated for resource pools on a standalone ESXi host?
References:
Beta Was this translation helpful? Give feedback.
All reactions