<div dir="auto">Thanks I will look into vdsm client.</div><div dir="auto"><br></div><div dir="auto">1) In PostgreSQL how frequently the disk statitsitics are updated ? </div><div dir="auto">2) Where can I find the history of disk statitsitcs?</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div>On Fri, 20 Apr 2018 at 3:57 AM, Peter Hudec &lt;<a href="mailto:phudec@cnc.sk">phudec@cnc.sk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<br>
Hi Hari,<br>
<br>
there are also another way how to get VM stats.<br>
<br>
You could hook into VDSM, see<br>
<a href="https://www.ovirt.org/develop/developer-guide/vdsm/vdsm-client/" rel="noreferrer" target="_blank">https://www.ovirt.org/develop/developer-guide/vdsm/vdsm-client/</a>,<br>
command vdsm-client Host getAllVmStats<br>
<br>
        Peter<br>
<br>
On 19/04/2018 18:48, Hari Prasanth Loganathan wrote:<br>
&gt; Appreciated for your help. Could you tell me how frequently the <br>
&gt; statistics are updated in this table ?<br>
&gt; <br>
&gt; I also found one more way to get the statistics, which is the <br>
&gt; recommended way?<br>
&gt; <br>
&gt; select * from <br>
&gt; getdiskbydiskid(&#39;a570a8a4-d4ff-4826-bc39-50bb0b42785c&#39;,&#39;27e73630-3688-<br>
11e8-8432-000c29cc7b80&#39;,&#39;f&#39;);<br>
&gt;<br>
&gt;  Thanks, Hari<br>
&gt; <br>
&gt; On Thu, Apr 19, 2018 at 10:15 PM, Benny Zlotnik<br>
&gt; &lt;<a href="mailto:bzlotnik@redhat.com" target="_blank">bzlotnik@redhat.com</a> &lt;mailto:<a href="mailto:bzlotnik@redhat.com" target="_blank">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" target="_blank">hariprasanth.l@msystechnologies.com</a> <br>
&gt; &lt;mailto:<a href="mailto:hariprasanth.l@msystechnologies.com" target="_blank">hariprasanth.l@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/{unique_disk_id}/statistics/<br>
&gt; <br>
&gt; *and I get this response : * { &quot;statistic&quot;: [ { &quot;kind&quot;: &quot;gauge&quot;, <br>
&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/a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot; },* &quot;name&quot;:<br>
&gt; &quot;data.current.read&quot;,* &quot;description&quot;: &quot;Read data rate&quot;, &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/a570a8a4-d4ff-4826-bc39-50bb0b42785c/statisti<br>
cs/33b9212b-f9cb-3fd0-b364-248fb61e1272&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;33b9212b-f9cb-3fd0-b364-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/a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot; }, *     &quot;name&quot;:<br>
&gt; &quot;data.current.write&quot;,* &quot;description&quot;: &quot;Write data rate&quot;, &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/a570a8a4-d4ff-4826-bc39-50bb0b42785c/statisti<br>
cs/2f23addd-4ebd-3d82-a449-c28778bc33eb&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;2f23addd-4ebd-3d82-a449-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/a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot; }, *       &quot;name&quot;:<br>
&gt; &quot;disk.read.latency&quot;,* &quot;description&quot;: &quot;Read latency&quot;, &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/a570a8a4-d4ff-4826-bc39-50bb0b42785c/statisti<br>
cs/3a7b3f72-d035-3bb9-b196-e86a4eb34993&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;3a7b3f72-d035-3bb9-b196-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/a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot; }, *          &quot;name&quot;:<br>
&gt; &quot;disk.write.latency&quot;,* &quot;description&quot;: &quot;Write latency&quot;, &quot;href&quot;: <br>
&gt; &quot;/ovirt-engine/api/disks/a570a8a4-d4ff-4826-bc39-50bb0b42785c/statisti<br>
cs/b1e75c7b-cea4-37d2-8459-f7d68efc69a3&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;b1e75c7b-cea4-37d2-8459-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/a570a8a4-d4ff-4826-bc39-50bb0b42785c&quot;, <br>
&gt; &quot;id&quot;: &quot;a570a8a4-d4ff-4826-bc39-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/a570a8a4-d4ff-4826-bc39-50bb0b42785c/statisti<br>
cs/9c17ad7b-9ef1-3e8d-ad0a-ff8bee3925f0&quot;,<br>
&gt;<br>
&gt; <br>
&quot;id&quot;: &quot;9c17ad7b-9ef1-3e8d-ad0a-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>
&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>
&gt; <br>
&gt; Any help is much Appreciated.<br>
&gt; <br>
&gt; Thanks, Harry<br>
&gt; <br>
&gt; _______________________________________________ Users mailing list <br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt; <br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a> <br>
&gt; &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>&gt;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________ Users mailing list <br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt; <br>
<br>
<br>
- -- <br>
*Peter Hudec*<br>
Infraštruktúrny architekt<br>
<a href="mailto:phudec@cnc.sk" target="_blank">phudec@cnc.sk</a> &lt;mailto:<a href="mailto:phudec@cnc.sk" target="_blank">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>
iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlrZF8gACgkQQnvVWOJ3<br>
5BBESw//dlAMwvj7MeI+6I4404tVS7peSsWkaxP0QKytw2ng11ilS9P+MsASDRVN<br>
ZJxbnwxK26kR58uh3If1S8DJQ4/l/mTYZkncd/BVrwWr/gR4KwLPN4HE0KPOarSW<br>
aqf5G2RPHHTxjko7NM9wTHxpck0bpRhBJU/iBnpGz9hJ3mkjxLruBaN0ZztXwS6P<br>
j42lJxIrVfcANl/5KGrndZYqPtqBtc2rlAmmO0IfHiTvbQb4tvUQyc5v05+UUsZa<br>
vCddamDDJAMn93locGykt6ySA9ZMhrQsx0sax3oKoa3vJ3NP03r+9fX8J906jRcX<br>
GN6k5iDG+yXcxCAHEctW2e6iyysBvysoML3ejmPLwD9+W0pG87xo6GH5Cv41CYYn<br>
dP0OSoQkZLOOJdchkfbce/mytIJHHdTOHPzjSMMBaDLgNWD3Qa2HeeTUMO9e6tao<br>
x3pfJUOxz2DSjOdHX7lo1IOsl4ctez3+I8nJxwjNYhcZF/Pttb529SoYp+s+ZCx6<br>
bpKIVatUZhuBpjoayIxy1/HTbTyVuaBy59ogXvYOb+HotmdwQYBo9ydp9lh+1NF6<br>
FRTRsoYuKHzf2/wOCri9mk6w2MNdSOZILWp7gxmxUWAtFtMoqNoWPoqreszQgp+d<br>
sGoVlUFwrXgbPab0dZvfje0qKsSbKZ1g4eyZvsbehcRw6C1ChHI=<br>
=9IA+<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div></div>