Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

PerformanceManager helper maps wrong counter #21

Open
toobulkeh opened this issue Jul 31, 2013 · 4 comments
Open

PerformanceManager helper maps wrong counter #21

toobulkeh opened this issue Jul 31, 2013 · 4 comments

Comments

@toobulkeh
Copy link

The 20s metrics return valid results, even for extended periods of time, but the 300s result sets are always empty:

irb(main):163:0> pm.retrieve_stats([hosts[2]], ['cpu.usagemhz'], {max_samples: 72, interval: '300', start_time: '2013-07-30 10:25:00PM'})
=> {HostSystem("host-254")=>{:sampleInfo=>[#<RbVmomi::VIM::PerfSampleInfo:0x00000004750540 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a83e48 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c32050 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003642f00 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a08b30 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000002f763e8 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 22:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000334bfe0 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003490220 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000037e4a70 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036c2b10 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000034d6ae0 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000034c0358 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bbbdd8 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bbe588 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000033b2f10 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000033b9810 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000033c6858 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000345b638 @props={:dynamicProperty=>[], :timestamp=>2013-07-30 23:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000346f958 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003475150 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039fde88 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a0b178 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000378b420 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000037a0eb0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a722b0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000034bd978 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039cb320 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003376cb8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038a9140 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003950850 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 00:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003990428 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038fc340 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003682420 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003718920 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b06690 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b0b028 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b204a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038543c0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000349c930 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000372eb80 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000037232d0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ad6530 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 01:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ad3628 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ad8d58 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039ed2b8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035cccb0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003980848 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039a8870 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039adbb8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039aa468 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036a6460 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036f0100 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003906188 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036082b0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 02:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036051f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000360a1a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000362a9c8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003386e38 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000338bfa0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003388f58 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036461c8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036431a8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a94428 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a99608 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c089a8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c05a50 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 03:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c0e0d8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000034319f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036946c0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003691380 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036962b8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035509a8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000355c0a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003669510 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036664a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003746d48 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000374c158 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035e79c0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 04:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035e4680 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035edc08 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b300f8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b3c150 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b69498 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b6f5a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b6c788 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a76428 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a7c580 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bdf378 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bdc560 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003be1e48 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 05:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bea5e8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003be7668 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003bf5240 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003518d78 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003520b40 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003528368 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000352cf80 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003529cb8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000037f52f8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000037fa168 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003807f70 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000380f270 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 06:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000380c070 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003814720 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038c3db0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038ca818 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038d9368 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038d6528 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038dcc48 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b8b2f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b90570 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b8d578 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003b94a58 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ba2608 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 07:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ba8c38 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ba5d80 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c1ae00 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c21b88 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c33ae0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c30bb0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c35e30 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c3da90 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c3ac28 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c484e0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c4e9d0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c605e0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 08:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c5d598 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c627f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c6a900 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c78668 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c758a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c886f8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c7e928 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ce4d90 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ce1d20 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003cea678 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003cf79b8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d004f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 09:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003cfd688 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d0abf8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d11700 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d0e910 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003793c60 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003790d30 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003f2c9e0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004096290 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000045d05a8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004581228 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003e18d10 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003e15d18 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 10:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035a78c0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004149480 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004323fd0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004320ee8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000039d8728 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ebc500 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000432b780 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004328788 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000045bd390 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d191a8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a849d8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a81490 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 11:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036add78 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000036aac40 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003a9dbe0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000467b200 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000041200f8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000411cca0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003c82398 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004aff678 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000035565d8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003553798 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000038e3660 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004a583c8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 12:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000040a4cf0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000040a1eb0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004ac7c78 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004334498 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004331590 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004ab4da8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000465c800 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000049365d0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004933790 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004855440 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004a9fb60 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000290a298 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 13:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000002907430 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004816f60 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000481c190 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000048194b8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ebf548 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ec47f0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004832df0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000048300c8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004835488 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d27050 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d24288 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003d29580 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 14:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003e9eed8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003e9c2c8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ea1548 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ea67a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003eccea0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003eca0b0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ecf3f8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ed4650 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000003ed1810 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004682848 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004687a78 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000468cde8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 15:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000468a0c0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000040705e0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:05:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000498c980 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:10:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004989b18 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:15:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000498ee60 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:20:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004994090 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:25:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004983da8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:30:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004980f18 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:35:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000494c0d8 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:40:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004951330 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:45:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x0000000494e4a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:50:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004953680 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 16:55:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x00000004751120 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 17:00:00 UTC, :interval=>300}>, #<RbVmomi::VIM::PerfSampleInfo:0x000000049cc8a0 @props={:dynamicProperty=>[], :timestamp=>2013-07-31 17:05:00 UTC, :interval=>300}>],
 :metrics=>{}}}

Is there a requirement on the vCenter side to pull these metrics properly?
The host's storage charts (built on the 5 min historic data) populates properly:
http://imgur.com/Cd1NPLM

Thanks

@toobulkeh
Copy link
Author

I tried it with a different vCenter and was able to get stats from the 300 intervalId. It must be a server side config.

irb(main):203:0> pm.retrieve_stats([hosts[0]], ['cpu.usagemhz'], {interval: '300', start_time: '2013-07-31 11:20:00AM'}).first[1][:metrics]
=> {"cpu.usagemhz"=>[2002, 2365, 2562, 2075, 2078, 2505, 2050, 2040, 2883, 2417, 1975, 2327, 2102, 2060, 2751, 2396, 2479, 2364, 2144, 2037, 2673, 2203, 1993, 2288, 2079, 2007, 2704, 2123, 3348, 2479, 2136, 2335, 3047, 2382, 2138, 2406, 2267, 2781, 3311, 2277, 2170, 2549, 2215, 2057, 2855, 2376, 2224, 2311, 2136, 2138, 2593, 2038, 2236, 2406, 2156, 2100, 2838, 2280, 2075, 2353, 2110, 2060, 2658, 2606, 2284, 2400, 2111, 2120, 2836, 2355, 2412, 2398]}
irb(main):204:0> pm.retrieve_stats([hosts[0]], ['cpu.usagemhz'], {interval: '300', start_time: '2013-07-31 11:20:00AM'}).first[1][:metrics]['cpu.usagemhz'].count
=> 72

one thing is it doesn't look like max_samples is working... debugging that now.

@cdickmann
Copy link
Contributor

There are different levels that govern which counter gets saved for how
long. Your counter is likely in a level where its real time only at this
point.
On Jul 31, 2013 10:36 AM, "Dan Moore" [email protected] wrote:

I tried it with a different vCenter and was able to get stats from the 300
intervalId. It must be a server side config.

irb(main):203:0> pm.retrieve_stats([hosts[0]], ['cpu.usagemhz'], {interval: '300', start_time: '2013-07-31 11:20:00AM'}).first[1][:metrics]=> {"cpu.usagemhz"=>[2002, 2365, 2562, 2075, 2078, 2505, 2050, 2040, 2883, 2417, 1975, 2327, 2102, 2060, 2751, 2396, 2479, 2364, 2144, 2037, 2673, 2203, 1993, 2288, 2079, 2007, 2704, 2123, 3348, 2479, 2136, 2335, 3047, 2382, 2138, 2406, 2267, 2781, 3311, 2277, 2170, 2549, 2215, 2057, 2855, 2376, 2224, 2311, 2136, 2138, 2593, 2038, 2236, 2406, 2156, 2100, 2838, 2280, 2075, 2353, 2110, 2060, 2658, 2606, 2284, 2400, 2111, 2120, 2836, 2355, 2412, 2398]}irb(main):204:0> pm.retrieve_stats([hosts[0]], ['cpu.usagemhz'], {interval: '300', start_time: '2013-07-31 11:20:00AM'}).first[1][:metrics]['cpu.usagemhz'].count=> 72

one thing is it doesn't look like max_samples is working... debugging that
now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-21880189
.

@toobulkeh
Copy link
Author

Right, but that's not the problem here.

The underlying problem here is calling the counter 'cpu.usagemhz' returns the first instance of cpu.usagemhz -- which is of rollup (none) - only at logging level 4. rollup 'average' counter is at level 1. The helper function doesn't allow you to specify.

Check this doc
http://pubs.vmware.com/vsphere-51/index.jsp#com.vmware.wssdk.apiref.doc/cpu_counters.html

And this gist I wrote on the issue:
https://gist.github.com/toobulkeh/6124975

Thanks so much for replying!

@atfujihara
Copy link

I also met the same problem. So I sent following PR:
#75

By this change, we can specify the target performance counter including RollupType like 'cpu.usagemhz.averate'. Unfortunately, it's not yet merged. It seems something verification or test is needed. But I don't know what can I do.

Anyway, I created custom gem and am using it. It's looks working well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants