How to collect performance data from RHEV-Manager using REST API?
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
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
