Hi Team,
We are using the following API to collect the disk statistics,
https://X.X.X.2/ovirt-engine/api/
*disks/2331bad7-71ec-4fad-95bb-2b3449f3dbda/statistics*
<
https://X.X.X.2/ovirt-engine/api/disks/2331bad7-71ec-4fad-95bb-2b3449f3db...
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
--
DISCLAIMER - *MSysTechnologies LLC*
This email message, contents and
its attachments may contain confidential, proprietary or legally privileged
information and is intended solely for the use of the individual or entity
to whom it is actually intended. If you have erroneously received this
message, please permanently delete it immediately and notify the sender. If
you are not the intended recipient of the email message,you are notified
strictly not to disseminate,distribute or copy this e-mail.E-mail
transmission cannot be guaranteed to be secure or error-free as Information
could be intercepted, corrupted, lost, destroyed, incomplete or contain
viruses and MSysTechnologies LLC accepts no liability for the contents and
integrity of this mail or for any damage caused by the limitations of the
e-mail transmission.