你好,
我正在尝试从Prism元素中收集一些VM性能数据。
我注意到某些统计数据不会在5分钟内保持历史记录。
例子:
controller_io_bandwidth_kbps vs.控制器_读/写_io_bandwidth_kbps
获取'https:// {ip}:9440/prismgateway/services/rest/v1/vms/{vmid}/stats/?metrics =controller_io_bandwidth_kbps&starttimeinusecs =1589462400000000&Intervalinsecs = 300'
“ Statsspefificresponses”:[
{
“成功”:是的,
“消息”:null,
“ starttimeinusecs”:1589462400000000,,,,
“ Intervalinsecs”:300,
“ metric”:“ controler_io_bandwidth_kbps”,
“值”:[
8106,
5500,
8404,
5618,
12793
这是给予的
}
这是给予的
}
获取'https:// {ip}:9440/prismgateway/services/rest/v1/vms/{vmid}/stats/?metrics =controller_read_io_bandwidth_kbps&starttimeinusecs =1589462400000000&Intervalinsecs = 300'
{
“ Statsspefificresponses”:[
{
“成功”:是的,
“消息”:null,
“ starttimeinusecs”:1589463510000000,,,,
“ Intervalinsecs”:300,
“ metric”:“ controller_read_io_bandwidth_kbps”,
“值”:[
2038
这是给予的
}
这是给予的
}
获取'https:// {ip}:9440/prismgateway/services/rest/v1/vms/{vmid}/stats/?metrics =controller_write_io_bandwidth_kbps&starttimeinusecs =1589462400000000&Intervalinsecs = 300'
{
“ Statsspefificresponses”:[
{
“成功”:是的,
“消息”:null,
“ starttimeinusecs”:1589463540000000,,,,
“ Intervalinsecs”:300,
“ metric”:“ controller_write_io_bandwidth_kbps”,
“值”:[
5891
这是给予的
}
这是给予的
}
我以为我可以从以下方式计算丢失的信息:
controller_avg_write_io_size_kbytes x Contrance_num_write_io
可悲的是,“ controller_avg_write_io_size_kbytes”也不保留历史记录。
这是故意的吗?
问候,
彼得