Hi Team,
I use the following API to get the disk statistics as per the oVirt rest API documentation.
{
"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
2) During this time, I am trying to execute this API and receiving as 0 always.
Is this API useless?
Thanks,
Hari