pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

Resource pool metrics

Open tsorya opened this issue 6 years ago • 0 comments

I am using performance manager to get resource pool metrics with intervalId=300. After running the query: end_time = service_instance.CurrentTime() start_time = end_time - datetime.timedelta(seconds=300) query_spec = vim.PerformanceManager.QuerySpec() query_spec.format = "normal" query_spec.endTime = end_time query_spec.startTime = start_time query_spec.intervalId = 300 query_spec.entity = <resource_pool> query_specs.append(query_spec)

perf_entity_metrics = performance_manager.QueryPerf(query_specs)

i get some metrics that's are irrelevant for me right now but cpu.usagemhz and memory.active are missing though i see them in vpshere graphs and their interval is 5 minutes. I can get them only if setting interval for more than 25 minutes. Any reason why those counters are sent only every 25 minutes?

tsorya avatar Oct 08 '19 12:10 tsorya