Hi Yedidyah,

*I tried running the 'dd if=/dev/zero of=/root/hari/test' and I received
the following output in VM oVirt console and meanwhile I checked this API
https://172.30.60.42/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e/statistics
<https://172.30.60.42/ovirt-engine/api/disks/f78c8adf-23f9-4f52-a29b-0de3d844652e/statistics>
and the value is received as '0' always *


*where, *
* f78c8adf-23f9-4f52-a29b-0de3d844652e - disk ID attached to that VM*





*Anything wrong?  *

*Thanks,*

*Hari *






On Wed, Jun 13, 2018 at 11:56 AM, Yedidyah Bar David <d...@redhat.com>
wrote:

> On Wed, Jun 13, 2018 at 8:45 AM, Hari Prasanth Loganathan
> <hariprasant...@msystechnologies.com> wrote:
> > Hi Yedidyah,
> >
> > Thanks for your response. I also tried creating the file, writing some
> > content to the VM guest console. Still, I didn't see any increase in the
> > values, It is always 0.
>
> Not sure I understand. "Creating the file" - which one?
>
> Perhaps try something like:
>
> dd if=/dev/zero of=/root/myfile1
>
> In any case, please test that the OS sees your IO. Use e.g. vmstat, iostat
> or something like that. oVirt (and metrics) will only show what the OS
> reports - if you see there '0', that's what you should get in metrics.
>
> Best regards,
>
> >
> >
> >
> > On Wed, Jun 13, 2018 at 10:58 AM, Yedidyah Bar David <d...@redhat.com>
> > wrote:
> >>
> >> On Tue, Jun 12, 2018 at 1:24 PM, Hari Prasanth Loganathan
> >> <hariprasant...@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/statistics
> >> >
> >> >
> >> >
> >> > https://172.30.X.X/ovirt-engine/api/disks/f78c8adf-
> 23f9-4f52-a29b-0de3d844652e/statistics
> >> >
> >> >
> >> > {
> >> > "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@ovirt.org
> >> > To unsubscribe send an email to users-le...@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/
> 7TGIUQ2REOMSTJBGD3OPY5RE2KOSSFWM/
> >> >
> >>
> >>
> >>
> >> --
> >> Didi
> >
> >
>
>
>
> --
> Didi
>
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/KK2UW7NYYGGS5LYBESLPYSTM2QYVMUOP/

Reply via email to