Bug 1059783
| Summary: | [RFE] Export usage statistics through the REST API | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Petr Beňas <pbenas> |
| Component: | ovirt-engine-api | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | bugs <bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.3 | CC: | acathrow, bazulay, bdagan, gklein, iheim, oramraz, pstehlik, Rhev-m-bugs, s.kieske, talayan, yeylon |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 3.4.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-07 10:52:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Petr Beňas
2014-01-30 16:11:13 UTC
Moved to oVirt product, and targeted to 3.5.0 so that we consider it for inclusion when reviewing 3.5 features. The usage information is already available in the statistics subresources. For example, for a host:
GET /api/hosts/{host:id}/statistics
<statistics>
<statistic href="..." id="...">
<name>memory.total</name>
<description>Total memory</description>
<values type="INTEGER">
<value>
<datum>1969225728</datum>
</value>
</values>
<type>GAUGE</type>
<unit>BYTES</unit>
<host href="..." id="..."/>
</statistic>
<statistic href="..." id="...">
<name>memory.used</name>
<description>Used memory</description>
<values type="INTEGER">
<value>
<datum>334768373</datum>
</value>
</values>
<type>GAUGE</type>
<unit>BYTES</unit>
<host href="..." id="..."/>
</statistic>
...
</statistics>
And for a virtual machine:
GET /api/vms/{vm:id}/statistics
<statistics>
<statistic href="..." id="...">
<name>memory.installed</name>
<description>Total memory configured</description>
<values type="INTEGER">
<value>
<datum>1073741824</datum>
</value>
</values>
<type>GAUGE</type>
<unit>BYTES</unit>
<vm href="..." id="..."/>
</statistic>
<statistic href="..." id="...">
<name>memory.used</name>
<description>Memory used (agent)</description>
<values type="INTEGER">
<value>
<datum>0</datum>
</value>
</values>
<type>GAUGE</type>
<unit>BYTES</unit>
<vm href="..." id="..."/>
</statistic>
...
<statistics>
This information is also available in the Python and Java SDKs. I'm closing the bug, please reopen if there are specific statistics that aren't provided.
|