<div dir="ltr">Ovirt API doesn&#39;t provide the API to get all the disk statistics at once. We need to hit for each Disk. It is an overhead. <br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 20, 2018 at 11:43 AM, Yaniv Kaul <span dir="ltr">&lt;<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>May I ask what are you trying to achieve? Why not use the oVirt REST API? </div><div dir="auto"><span class="HOEnZb"><font color="#888888">Y. </font></span><div><div class="h5"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Fri, Apr 20, 2018, 8:57 AM Hari Prasanth Loganathan &lt;<a href="mailto:hariprasanth.l@msystechnologies.com" target="_blank">hariprasanth.l@<wbr>msystechnologies.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How frequently is the &#39;disk_all table&#39; is updated with new statistics? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 20, 2018 at 11:15 AM, Hari Prasanth Loganathan <span dir="ltr">&lt;<a href="mailto:hariprasanth.l@msystechnologies.com" rel="noreferrer" target="_blank">hariprasanth.l@<wbr>msystechnologies.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>How is the disk id mapped to this table : disk_image_dynamic table? <br><br></div>If I need statistics of all the disk, How can I get it?  <br></div><div class="m_-2894935410612639319m_-3050616178860949508HOEnZb"><div class="m_-2894935410612639319m_-3050616178860949508h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 19, 2018 at 10:15 PM, Benny Zlotnik <span dir="ltr">&lt;<a href="mailto:bzlotnik@redhat.com" rel="noreferrer" target="_blank">bzlotnik@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It is in the disk_image_dynamic table</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2894935410612639319m_-3050616178860949508m_5438800791559692562h5">On Thu, Apr 19, 2018 at 3:36 PM, Hari Prasanth Loganathan <span dir="ltr">&lt;<a href="mailto:hariprasanth.l@msystechnologies.com" rel="noreferrer" target="_blank">hariprasanth.l@<wbr>msystechnologies.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2894935410612639319m_-3050616178860949508m_5438800791559692562h5"><div dir="ltr"><div><div><div>Hi Team,<br><br></div>I am trying to get the disk level statistics using oVirt with the following API,<br><br><span style="color:rgb(80,80,80);font-family:OpenSans,Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(250,250,250);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font size="2">/ovirt-engine/api/disks/{<wbr>unique_disk_id}/statistics/</font><br><br></span></div><b>and I get this response : <br></b><br> {<br>    &quot;statistic&quot;: [<br>        {<br>            &quot;kind&quot;: &quot;gauge&quot;,<br>            &quot;type&quot;: &quot;decimal&quot;,<br>            &quot;unit&quot;: &quot;bytes_per_second&quot;,<br>            &quot;values&quot;: {<br>                &quot;value&quot;: [<br>                    {<br>                        &quot;datum&quot;: 0<br>                    }<br>                ]<br>            },<br>            &quot;disk&quot;: {<br>                &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;,<br>                &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;<br>            },<b><br>            &quot;name&quot;: &quot;data.current.read&quot;,</b><br>            &quot;description&quot;: &quot;Read data rate&quot;,<br>            &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statistics/<wbr>33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272&quot;,<br>            &quot;id&quot;: &quot;33b9212b-f9cb-3fd0-b364-<wbr>248fb61e1272&quot;<br>        },<br>        {<br>            &quot;kind&quot;: &quot;gauge&quot;,<br>            &quot;type&quot;: &quot;decimal&quot;,<br>            &quot;unit&quot;: &quot;bytes_per_second&quot;,<br>            &quot;values&quot;: {<br>                &quot;value&quot;: [<br>                    {<br>                        &quot;datum&quot;: 0<br>                    }<br>                ]<br>            },<br>            &quot;disk&quot;: {<br>                &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;,<br>                &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;<br>            },<br>       <b>     &quot;name&quot;: &quot;data.current.write&quot;,</b><br>            &quot;description&quot;: &quot;Write data rate&quot;,<br>            &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statistics/<wbr>2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb&quot;,<br>            &quot;id&quot;: &quot;2f23addd-4ebd-3d82-a449-<wbr>c28778bc33eb&quot;<br>        },<br>        {<br>            &quot;kind&quot;: &quot;gauge&quot;,<br>            &quot;type&quot;: &quot;decimal&quot;,<br>            &quot;unit&quot;: &quot;seconds&quot;,<br>            &quot;values&quot;: {<br>                &quot;value&quot;: [<br>                    {<br>                        &quot;datum&quot;: 0<br>                    }<br>                ]<br>            },<br>            &quot;disk&quot;: {<br>                &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;,<br>                &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;<br>            },<br>     <b>       &quot;name&quot;: &quot;disk.read.latency&quot;,</b><br>            &quot;description&quot;: &quot;Read latency&quot;,<br>            &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statistics/<wbr>3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993&quot;,<br>            &quot;id&quot;: &quot;3a7b3f72-d035-3bb9-b196-<wbr>e86a4eb34993&quot;<br>        },<br>        {<br>            &quot;kind&quot;: &quot;gauge&quot;,<br>            &quot;type&quot;: &quot;decimal&quot;,<br>            &quot;unit&quot;: &quot;seconds&quot;,<br>            &quot;values&quot;: {<br>                &quot;value&quot;: [<br>                    {<br>                        &quot;datum&quot;: 0<br>                    }<br>                ]<br>            },<br>            &quot;disk&quot;: {<br>                &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;,<br>                &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;<br></div>            }, <br><div>  <b>          &quot;name&quot;: &quot;disk.write.latency&quot;,</b><br>            &quot;description&quot;: &quot;Write latency&quot;,<br>            &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statistics/<wbr>b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3&quot;,<br>            &quot;id&quot;: &quot;b1e75c7b-cea4-37d2-8459-<wbr>f7d68efc69a3&quot;<br>        },<br>        {<br>            &quot;kind&quot;: &quot;gauge&quot;,<br>            &quot;type&quot;: &quot;decimal&quot;,<br>            &quot;unit&quot;: &quot;seconds&quot;,<br>            &quot;values&quot;: {<br>                &quot;value&quot;: [<br>                    {<br>                        &quot;datum&quot;: 0<br>                    }<br>                ]<br>            },<br>            &quot;disk&quot;: {<br>                &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;,<br>                &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c&quot;<br>            },<br>            &quot;name&quot;: &quot;disk.flush.latency&quot;,<br>            &quot;description&quot;: &quot;Flush latency&quot;,<br>            &quot;href&quot;: &quot;/ovirt-engine/api/disks/<wbr>a570a8a4-d4ff-4826-bc39-<wbr>50bb0b42785c/statistics/<wbr>9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0&quot;,<br>            &quot;id&quot;: &quot;9c17ad7b-9ef1-3e8d-ad0a-<wbr>ff8bee3925f0&quot;<br>        }<br>    ]<br>}<br><br></div><div>I am able to get the disk write and read latency, write and read bandwidth. <br><br></div><div><b>But I am not able to find the postgresql tables used for these statistics in oVirt? <br></b></div><div><b>Could somebody let me know the statistics table for the disk?</b><br><br></div><div>Any help is much Appreciated.<br><br></div><div>Thanks,    <br></div><div>Harry  <br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" rel="noreferrer" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" rel="noreferrer" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div></div></div></div></div>
</blockquote></div><br></div>