Question

API vms stats history

  • 14 May 2020
  • 2 replies
  • 2882 views

Badge

Hello,

I am trying to collect some VM performance data from Prism element.

I have noticed that some stats do not keep history for more than 5 minutes.

 

Example:
controller_io_bandwidth_kBps vs. controller_read/write_io_bandwidth_kBps
 

GET 'https://{IP}:9440/PrismGateway/services/rest/v1/vms/{vmid}/stats/?metrics=controller_io_bandwidth_kBps&startTimeInUsecs=1589462400000000&intervalInSecs=300'
  "statsSpecificResponses": [
    {
      "successful": true,
      "message": null,
      "startTimeInUsecs": 1589462400000000,
      "intervalInSecs": 300,
      "metric": "controller_io_bandwidth_kBps",
      "values": [
        8106,
        5500,
        8404,
        5618,
        12793

      ]
    }
  ]
}

GET 'https://{IP}:9440/PrismGateway/services/rest/v1/vms/{vmid}/stats/?metrics=controller_read_io_bandwidth_kBps&startTimeInUsecs=1589462400000000&intervalInSecs=300'
{
  "statsSpecificResponses": [
    {
      "successful": true,
      "message": null,
      "startTimeInUsecs": 1589463510000000,
      "intervalInSecs": 300,
      "metric": "controller_read_io_bandwidth_kBps",
      "values": [
        2038

      ]
    }
  ]
}

GET 'https://{IP}:9440/PrismGateway/services/rest/v1/vms/{vmid}/stats/?metrics=controller_write_io_bandwidth_kBps&startTimeInUsecs=1589462400000000&intervalInSecs=300'
{
  "statsSpecificResponses": [
    {
      "successful": true,
      "message": null,
      "startTimeInUsecs": 1589463540000000,
      "intervalInSecs": 300,
      "metric": "controller_write_io_bandwidth_kBps",
      "values": [
        5891

      ]
    }
  ]
}

I thought I could calculate missing information from:

controller_avg_write_io_size_kbytes   x   controller_num_write_io

Sadly, “controller_avg_write_io_size_kbytes“  does not keep history either.

 

Is this intentional?

 

Regards,

 

Petr


2 replies

Userlevel 5
Badge +4

Hey @PeWu let me search on this and get back to you. :smile:

We are facing the same issue. Metrics “controller_read_io_bandwidth_kBps” and “controller_write_io_bandwidth_kBps” only return last 5 minutes records. However, “controller_io_bandwidth_kBps” is returning complete dataset for any duration. We are interested in fetching both Read and Write data separately for more than 5 minutes. In Prism Element we can see both Read and Write graphs of the selected Disk for the last 4 hours and so on.

What are we missing here.. Any help would be much appreciated. Thanks

Reply