Hi Team,
We are using the following API to collect the disk statistics,
I found one issue in the disk statistics. In case If the Virtual Machine has this disk (2331bad7-71ec-4fad-95bb-2b3449f3dbda) attached to it and I perform some read / write operation in the VM and it increases the corresponding disk level Read data rate / Write data rate / disk.read.latency / disk.write.latency.
Example, I received the following values for this disk, But the problem is even when I bring down the VM still the last known value is received continuously. Is it a known issue Or any workaround is available?
Expected : All values should go to Zero
Actual : All values retains the last known values when the VM was in UP state.
{
"statistic": [
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 2184
}
]
},
"disk": {
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda",
"id": "2331bad7-71ec-4fad-95bb-2b3449f3dbda"
},
"name": "data.current.read",
"description": "Read data rate",
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/statistics/33b9212b-f9cb-3fd0-b364-248fb61e1272",
"id": "33b9212b-f9cb-3fd0-b364-248fb61e1272"
},
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 41202005
}
]
},
"disk": {
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda",
"id": "2331bad7-71ec-4fad-95bb-2b3449f3dbda"
},
"name": "data.current.write",
"description": "Write data rate",
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/statistics/2f23addd-4ebd-3d82-a449-c28778bc33eb",
"id": "2f23addd-4ebd-3d82-a449-c28778bc33eb"
},
{
"kind": "gauge",
"type": "decimal",
"unit": "seconds",
"values": {
"value": [
{
"datum": 0.12
}
]
},
"disk": {
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda",
"id": "2331bad7-71ec-4fad-95bb-2b3449f3dbda"
},
"name": "disk.read.latency",
"description": "Read latency",
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/statistics/3a7b3f72-d035-3bb9-b196-e86a4eb34993",
"id": "3a7b3f72-d035-3bb9-b196-e86a4eb34993"
},
{
"kind": "gauge",
"type": "decimal",
"unit": "seconds",
"values": {
"value": [
{
"datum": 1.4
}
]
},
"disk": {
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda",
"id": "2331bad7-71ec-4fad-95bb-2b3449f3dbda"
},
"name": "disk.write.latency",
"description": "Write latency",
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/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/2331bad7-71ec-4fad-95bb-2b3449f3dbda",
"id": "2331bad7-71ec-4fad-95bb-2b3449f3dbda"
},
"name": "disk.flush.latency",
"description": "Flush latency",
"href": "/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/statistics/9c17ad7b-9ef1-3e8d-ad0a-ff8bee3925f0",
"id": "9c17ad7b-9ef1-3e8d-ad0a-ff8bee3925f0"
}
]
}
Thanks,
Hari