On Tue, Jun 12, 2018 at 1:24 PM, Hari Prasanth Loganathan
<hariprasanth.l(a)msystechnologies.com> wrote:
Hi Team,
I use the following API to get the disk statistics as per the oVirt rest API
documentation.
http://ovirt.github.io/ovirt-engine-api-model/4.2/#types/disk/links/stati...
https://172.30.X.X/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d84...
{
"statistic": [
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 0
}
]
},
"disk": {
"href":
"/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e",
"id": "f78c8adf-23f9-4f52-a29b-0de3d844652e"
},
"name": "data.current.read",
"description": "Read data rate",
"href":
"/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e/statistics/33b9212b-f9cb-3fd0-b364-248fb61e1272",
"id": "33b9212b-f9cb-3fd0-b364-248fb61e1272"
},
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 0
}
]
},
"disk": {
"href":
"/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e",
"id": "f78c8adf-23f9-4f52-a29b-0de3d844652e"
},
"name": "data.current.write",
"description": "Write data rate",
"href":
"/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e/statistics/2f23addd-4ebd-3d82-a449-c28778bc33eb",
"id": "2f23addd-4ebd-3d82-a449-c28778bc33eb"
}
]
}
Unfortunately, the values are always coming as '0'.
Steps to reproduce :
1) I logged into the VM console and run the following command to copy the
file and I see the write rate is 300mb/sec
dd if=/dev/zero of=/dev/null
This command does not access the disk. Perhaps try to read or write to
one, then check stats.
Best regards,
2) During this time, I am trying to execute this API and receiving as 0
always.
Is this API useless?
Thanks,
Hari
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/7TGIUQ2REOM...