<div dir="ltr">Thanks Much. You solved all my problems.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 20, 2018 at 11:52 AM, Peter Hudec <span dir="ltr"><<a href="mailto:phudec@cnc.sk" target="_blank">phudec@cnc.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<br>
</span>Yes, it does, but you have to use follow=statistics on disks endpoint,<br>
see See<br>
<a href="http://ovirt.github.io/ovirt-engine-api-model/4.2/#documents/003_common_
concepts/follow" rel="noreferrer" target="_blank">http://ovirt.github.io/ovirt-<wbr>engine-api-model/4.2/#<wbr>documents/003_common_<br>
concepts/follow</a><br>
<br>
<br>
For all disks<br>
<a href="https://dipovirt-engine02.cnc.sk/ovirt-engine/api/disks?follow=statistic" rel="noreferrer" target="_blank">https://dipovirt-engine02.cnc.<wbr>sk/ovirt-engine/api/disks?<wbr>follow=statistic</a><br>
s<br>
<br>
For all disks of one VMS<br>
<a href="https://dipovirt-engine02.cnc.sk/ovirt-engine/api/vms/963d7540-619c-437d" rel="noreferrer" target="_blank">https://dipovirt-engine02.cnc.<wbr>sk/ovirt-engine/api/vms/<wbr>963d7540-619c-437d</a><br>
- -978a-86e550e5e571?follow=<wbr>disk_attachments.disk.<wbr>statistics<br>
<br>
<br>
<br>
Peter<br>
<span class=""><br>
On 20/04/2018 08:14, Hari Prasanth Loganathan wrote:<br>
> Ovirt API doesn't provide the API to get all the disk statistics<br>
> at once. We need to hit for each Disk. It is an overhead.<br>
> <br>
> <br>
> <br>
> On Fri, Apr 20, 2018 at 11:43 AM, Yaniv Kaul <<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a> <br>
</span><span class="">> <mailto:<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a>>> wrote:<br>
> <br>
> May I ask what are you trying to achieve? Why not use the oVirt<br>
> REST API? Y.<br>
> <br>
> <br>
> On Fri, Apr 20, 2018, 8:57 AM Hari Prasanth Loganathan <br>
> <<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">> <mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>>> wrote:<br>
> <br>
> How frequently is the 'disk_all table' is updated with new <br>
> statistics?<br>
> <br>
> On Fri, Apr 20, 2018 at 11:15 AM, Hari Prasanth Loganathan <br>
> <<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">> <mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>>> wrote:<br>
> <br>
> How is the disk id mapped to this table : disk_image_dynamic <br>
> table?<br>
> <br>
> If I need statistics of all the disk, How can I get it?<br>
> <br>
> On Thu, Apr 19, 2018 at 10:15 PM, Benny Zlotnik <br>
</span><span class="">> <<a href="mailto:bzlotnik@redhat.com">bzlotnik@redhat.com</a> <mailto:<a href="mailto:bzlotnik@redhat.com">bzlotnik@redhat.com</a>>> wrote:<br>
> <br>
> It is in the disk_image_dynamic table<br>
> <br>
> On Thu, Apr 19, 2018 at 3:36 PM, Hari Prasanth Loganathan<br>
> <<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">> <mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>>> wrote:<br>
> <br>
> Hi Team,<br>
> <br>
> I am trying to get the disk level statistics using oVirt with the<br>
> following API,<br>
> <br>
> /ovirt-engine/api/disks/{<wbr>unique_disk_id}/statistics/<br>
> <br>
</span>> *and I get this response : * { "statistic": [ { "kind": "gauge", <br>
<span class="">> "type": "decimal", "unit": "bytes_per_second", "values": { "value":<br>
> [ { "datum": 0 } ] }, "disk": { "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c", <br>
</span>> "id": "a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c" },* "name":<br>
> "data.current.read",* "description": "Read data rate", "href": <br>
<span class="">> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272",<br>
><br>
> <br>
"id": "33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272"<br>
> }, { "kind": "gauge", "type": "decimal", "unit":<br>
> "bytes_per_second", "values": { "value": [ { "datum": 0 } ] }, <br>
> "disk": { "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c", <br>
</span>> "id": "a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c" }, * "name":<br>
> "data.current.write",* "description": "Write data rate", "href": <br>
<span class="">> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb",<br>
><br>
> <br>
"id": "2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb"<br>
> }, { "kind": "gauge", "type": "decimal", "unit": "seconds", <br>
> "values": { "value": [ { "datum": 0 } ] }, "disk": { "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c", <br>
</span>> "id": "a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c" }, * "name":<br>
> "disk.read.latency",* "description": "Read latency", "href": <br>
<span class="">> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993",<br>
><br>
> <br>
"id": "3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993"<br>
> }, { "kind": "gauge", "type": "decimal", "unit": "seconds", <br>
> "values": { "value": [ { "datum": 0 } ] }, "disk": { "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c", <br>
</span>> "id": "a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c" }, * "name":<br>
> "disk.write.latency",* "description": "Write latency", "href": <br>
<span class="">> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3",<br>
><br>
> <br>
"id": "b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3"<br>
> }, { "kind": "gauge", "type": "decimal", "unit": "seconds", <br>
> "values": { "value": [ { "datum": 0 } ] }, "disk": { "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c", <br>
> "id": "a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c" }, "name":<br>
> "disk.flush.latency", "description": "Flush latency", "href": <br>
> "/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0",<br>
><br>
> <br>
"id": "9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0"<br>
> } ] }<br>
> <br>
> I am able to get the disk write and read latency, write and read<br>
> bandwidth.<br>
> <br>
</span>> *But I am not able to find the postgresql tables used for these<br>
> statistics in oVirt? * *Could somebody let me know the statistics<br>
> table for the disk?*<br>
<span class="">> <br>
> Any help is much Appreciated.<br>
> <br>
> Thanks, Harry<br>
> <br>
> ______________________________<wbr>_________________ Users mailing list <br>
</span>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>> <br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a> <br>
<span class="">> <<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>><br>
> <br>
> <br>
> <br>
> <br>
> ______________________________<wbr>_________________ Users mailing list <br>
</span>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>> <br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a> <br>
<span class="">> <<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>><br>
> <br>
> <br>
> <br>
> <br>
> ______________________________<wbr>_________________ Users mailing list <br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
> <br>
<br>
<br>
</span><span class="">- -- <br>
*Peter Hudec*<br>
Infraštruktúrny architekt<br>
<a href="mailto:phudec@cnc.sk">phudec@cnc.sk</a> <mailto:<a href="mailto:phudec@cnc.sk">phudec@cnc.sk</a>><br>
<br>
*CNC, a.s.*<br>
Borská 6, 841 04 Bratislava<br>
Recepcia: +421 2 35 000 100<br>
<br>
Mobil:+421 905 997 203<br>
*<a href="http://www.cnc.sk" rel="noreferrer" target="_blank">www.cnc.sk</a>* <http:///<a href="http://www.cnc.sk" rel="noreferrer" target="_blank">www.cnc.sk</a>><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
<br>
</span>iQIzBAEBCgAdFiEEqSUbhuEwhryifN<wbr>eVQnvVWOJ35BAFAlrZhxkACgkQQnvV<wbr>WOJ3<br>
5BA7+<wbr>hAAp194pPXA1q1kCC1lkXZBISrcJsu<wbr>bzgEjD6lwZX936tHDGFqWHAQY6QZJ<br>
xX9+3L7VXkpmk/<wbr>eGqvFvUOt7FQJUNGTV37KobdxmgtlJ<wbr>9lLXDBu62LN92RtVpb9L<br>
U7LYvh25UHYmCo5hD6YQgLFi45UnBq<wbr>oS8l8Js2CtjW5ZWQzOqlx5//<wbr>zdZtZjg+qy<br>
XVs82Ircx8S0Ue4e70YFhghN5y6UHP<wbr>iyo+<wbr>fq2QFLtsDIm0blOfGd1VfJ93QQZYEE<br>
pc4svxnGDZH9Nd5sTTqH7pbaTE5O52<wbr>AK1vud2Sn0PC8wK09xpuF2PdmBqBVw<wbr>at6A<br>
D0ikPl0m9GpNoaI/<wbr>hcGM70dNqoO6HfWnj4fio/67qloCX+<wbr>9j46qSYtRYw0KPk1dQ<br>
JNQwY7bdbwZfSutcxiswz3usglCgfl<wbr>0NgOKglzY2rLsqbwm52YhEZOH9IBMi<wbr>aisP<br>
RxRyF6AVasuYkp/<wbr>wAoEoZGF0yzJhYUWLzrZkMYCk2/<wbr>pAr/drCcpYefSKwLMOp2i7<br>
Wz1iAj5X2hf+CKJ2kP++cXVmhki6S+<wbr>K3B2+<wbr>IE3mazrSOGtY5os95NWGfxRzUUJSE<br>
+9B1mPorHJXCIWJkPUtnCegVSJ8/<wbr>Vsuom8p95GhJtvbqk3TheS1SfqeGKH<wbr>JtJWdj<br>
C15HfIZfb9VO6YMl7zzinJaB83P0bT<wbr>Ns4PwQwqj0lWMEPzVA1SM=<br>
=aqdJ<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>