<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">&lt;<a href="mailto:phudec@cnc.sk" target="_blank">phudec@cnc.sk</a>&gt;</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>
&gt; Ovirt API doesn&#39;t provide the API to get all the disk statistics<br>
&gt; at once. We need to hit for each Disk. It is an overhead.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Fri, Apr 20, 2018 at 11:43 AM, Yaniv Kaul &lt;<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a> <br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; May I ask what are you trying to achieve? Why not use the oVirt<br>
&gt; REST API? Y.<br>
&gt; <br>
&gt; <br>
&gt; On Fri, Apr 20, 2018, 8:57 AM Hari Prasanth Loganathan <br>
&gt; &lt;<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; How frequently is the &#39;disk_all table&#39; is updated with new <br>
&gt; statistics?<br>
&gt; <br>
&gt; On Fri, Apr 20, 2018 at 11:15 AM, Hari Prasanth Loganathan <br>
&gt; &lt;<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; How is the disk id mapped to this table : disk_image_dynamic <br>
&gt; table?<br>
&gt; <br>
&gt; If I need statistics of all the disk, How can I get it?<br>
&gt; <br>
&gt; On Thu, Apr 19, 2018 at 10:15 PM, Benny Zlotnik <br>
</span><span class="">&gt; &lt;<a href="mailto:bzlotnik@redhat.com">bzlotnik@redhat.com</a> &lt;mailto:<a href="mailto:bzlotnik@redhat.com">bzlotnik@redhat.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; It is in the disk_image_dynamic table<br>
&gt; <br>
&gt; On Thu, Apr 19, 2018 at 3:36 PM, Hari Prasanth Loganathan<br>
&gt; &lt;<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a> <br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:hariprasanth.l@msystechnologies.com">hariprasanth.l@<wbr>msystechnologies.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; Hi Team,<br>
&gt; <br>
&gt; I am trying to get the disk level statistics using oVirt with the<br>
&gt; following API,<br>
&gt; <br>
&gt; /ovirt-engine/api/disks/{<wbr>unique_disk_id}/statistics/<br>
&gt; <br>
</span>&gt; *and I get this response : * { &quot;statistic&quot;: [ { &quot;kind&quot;: &quot;gauge&quot;, <br>
<span class="">&gt; &quot;type&quot;: &quot;decimal&quot;, &quot;unit&quot;: &quot;bytes_per_second&quot;, &quot;values&quot;: { &quot;value&quot;:<br>
&gt; [ { &quot;datum&quot;: 0 } ] }, &quot;disk&quot;: { &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;, <br>
</span>&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot; },* &quot;name&quot;:<br>
&gt; &quot;data.current.read&quot;,* &quot;description&quot;: &quot;Read data rate&quot;, &quot;href&quot;: <br>
<span class="">&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272&quot;<br>
&gt; }, { &quot;kind&quot;: &quot;gauge&quot;, &quot;type&quot;: &quot;decimal&quot;, &quot;unit&quot;:<br>
&gt; &quot;bytes_per_second&quot;, &quot;values&quot;: { &quot;value&quot;: [ { &quot;datum&quot;: 0 } ] }, <br>
&gt; &quot;disk&quot;: { &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;, <br>
</span>&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot; }, *     &quot;name&quot;:<br>
&gt; &quot;data.current.write&quot;,* &quot;description&quot;: &quot;Write data rate&quot;, &quot;href&quot;: <br>
<span class="">&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb&quot;<br>
&gt; }, { &quot;kind&quot;: &quot;gauge&quot;, &quot;type&quot;: &quot;decimal&quot;, &quot;unit&quot;: &quot;seconds&quot;, <br>
&gt; &quot;values&quot;: { &quot;value&quot;: [ { &quot;datum&quot;: 0 } ] }, &quot;disk&quot;: { &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;, <br>
</span>&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot; }, *       &quot;name&quot;:<br>
&gt; &quot;disk.read.latency&quot;,* &quot;description&quot;: &quot;Read latency&quot;, &quot;href&quot;: <br>
<span class="">&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993&quot;<br>
&gt; }, { &quot;kind&quot;: &quot;gauge&quot;, &quot;type&quot;: &quot;decimal&quot;, &quot;unit&quot;: &quot;seconds&quot;, <br>
&gt; &quot;values&quot;: { &quot;value&quot;: [ { &quot;datum&quot;: 0 } ] }, &quot;disk&quot;: { &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;, <br>
</span>&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot; }, *          &quot;name&quot;:<br>
&gt; &quot;disk.write.latency&quot;,* &quot;description&quot;: &quot;Write latency&quot;, &quot;href&quot;: <br>
<span class="">&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3&quot;<br>
&gt; }, { &quot;kind&quot;: &quot;gauge&quot;, &quot;type&quot;: &quot;decimal&quot;, &quot;unit&quot;: &quot;seconds&quot;, <br>
&gt; &quot;values&quot;: { &quot;value&quot;: [ { &quot;datum&quot;: 0 } ] }, &quot;disk&quot;: { &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot; }, &quot;name&quot;:<br>
&gt; &quot;disk.flush.latency&quot;, &quot;description&quot;: &quot;Flush latency&quot;, &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statisti<br>
cs/9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0&quot;<br>
&gt; } ] }<br>
&gt; <br>
&gt; I am able to get the disk write and read latency, write and read<br>
&gt; bandwidth.<br>
&gt; <br>
</span>&gt; *But I am not able to find the postgresql tables used for these<br>
&gt; statistics in oVirt? * *Could somebody let me know the statistics<br>
&gt; table for the disk?*<br>
<span class="">&gt; <br>
&gt; Any help is much Appreciated.<br>
&gt; <br>
&gt; Thanks, Harry<br>
&gt; <br>
&gt; ______________________________<wbr>_________________ Users mailing list <br>
</span>&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt; <br>
&gt; <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="">&gt; &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; ______________________________<wbr>_________________ Users mailing list <br>
</span>&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt; <br>
&gt; <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="">&gt; &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; ______________________________<wbr>_________________ Users mailing list <br>
&gt; <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>
&gt; <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> &lt;mailto:<a href="mailto:phudec@cnc.sk">phudec@cnc.sk</a>&gt;<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>* &lt;http:///<a href="http://www.cnc.sk" rel="noreferrer" target="_blank">www.cnc.sk</a>&gt;<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>