How to collect performance data from RHEV-Manager using REST API?

Latest response

Hi All,

 

I am in the process of developing an application which collects performance data of Cluster, Host, Guest, Storage from RHEV-Manager. I am preferring to use REST API instead of Database. REST API document doesnot give clear picture on how to collect data, available performance counters, rollup, etc.

Please let me know whether REST API is sufficient means to collect performance data. Also share documents related to it.

 

Regards,

Vijay

Responses

Hi Vijay,

Looks like this might be a difficult topic for the community. I'll follow up and see if I can find someone to assist you.

Can you give me some examples on what specific performance data are you looking for so that I can see how I can help?

 

Are you looking for something like  memory utilization, cpu utilization and etc?

Hi,

 

Yes. Performance data such as cpu utilization , memory utilization of a Host, Guest etc. I see some statistics in REST API guide and are very minimal and not sure whether they are summarised.

 

Regards,

Vijay

Most objects have "statistics" for example for a VM: https://My-RHEVM/api/vms/787210b5-6bbc-4086-9907-1e1a62f1fc17/statistics

 

However, for real monitoring you probably need to use the built in reports

You can also use the information provided via the Administration guide to do SQL queries to history information... of course, that's not REST API, but could give you more information as Dan suggested

 

For the host/guest utilization I'll recommend installing the rhev-agent on all guest (to have better measurements), and use api to query both host status and vm's.

 

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.