Eu usei a API REST para coletar as estatísticas de um disco virtual usando a API REST oVirt e obtive a seguinte resposta,
https://1.1.1.1/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/statistics/
Resposta a esta API ,
{
"statistic": [{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [{
"datum": 0
}]
},
"disk": {
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996",
"id": "b14da816-37e3-46d7-8617-2e42e52db996"
},
"name": "data.current.read",
"description": "Read data rate",
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/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/b14da816-37e3-46d7-8617-2e42e52db996",
"id": "b14da816-37e3-46d7-8617-2e42e52db996"
},
"name": "data.current.write",
"description": "Write data rate",
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/statistics/2f23addd-4ebd-3d82-a449-c28778bc33eb",
"id": "2f23addd-4ebd-3d82-a449-c28778bc33eb"
}, {
"kind": "gauge",
"type": "decimal",
"unit": "seconds",
"values": {
"value": [{
"datum": 0
}]
},
"disk": {
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996",
"id": "b14da816-37e3-46d7-8617-2e42e52db996"
},
"name": "disk.read.latency",
"description": "Read latency",
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/statistics/3a7b3f72-d035-3bb9-b196-e86a4eb34993",
"id": "3a7b3f72-d035-3bb9-b196-e86a4eb34993"
}, {
"kind": "gauge",
"type": "decimal",
"unit": "seconds",
"values": {
"value": [{
"datum": 0
}]
},
"disk": {
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996",
"id": "b14da816-37e3-46d7-8617-2e42e52db996"
},
"name": "disk.write.latency",
"description": "Write latency",
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/statistics/b1e75c7b-cea4-37d2-8459-f7d68efc69a3",
"id": "b1e75c7b-cea4-37d2-8459-f7d68efc69a3"
}, {
"kind": "gauge",
"type": "decimal",
"unit": "seconds",
"values": {
"value": [{
"datum": 0
}]
},
"disk": {
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996",
"id": "b14da816-37e3-46d7-8617-2e42e52db996"
},
"name": "disk.flush.latency",
"description": "Flush latency",
"href": "/ovirt-engine/api/disks/b14da816-37e3-46d7-8617-2e42e52db996/statistics/9c17ad7b-9ef1-3e8d-ad0a-ff8bee3925f0",
"id": "9c17ad7b-9ef1-3e8d-ad0a-ff8bee3925f0"
}]
}
Então, de acordo com o meu entendimento, ele é capaz de recuperar 5 estatísticas ( i.e ) Ler e gravar largura de banda, ler, gravar e liberar latência.
A minha pergunta é, é possível obter o IOPS READ / WRITE do disco virtual / VM?
Obrigado,
Harry