<div dir="ltr"><font face="arial, sans-serif">The problem is that queue_totals.messages value always is identical with the last value in samples array.</font><br><div><font face="arial, sans-serif">It seems there is no way to get actual value with big&nbsp;</font><span style="font-family:arial,sans-serif;font-size:13px">lengths_incr values</span><span style="font-family:arial,sans-serif">.</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/29 Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hmm, possibly that documentation should be clarified. Really it will attempt to return samples up to (the_present modulo lengths_incr), so that the inter-sample spacing is consistent.<br>
<br>
For the latest value, check the value given outside &quot;samples&quot; - i.e. queue_totals.messages in your example.<br>
<br>
Cheers, Simon<br>
<br>
On 29/08/2013 8:35AM, ����� ������� wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, in documentation in section about historical samples there is<br>
sentence &mdash; &quot;The end of the range returned will always correspond to the<br>
present&quot;, but API does not return me actual information about message<br>
total count, for example:<br>
*<a href="http://localhost:15672/api/overview?columns=node,queue_totals&amp;lengths_age=600&amp;lengths_incr=100*" target="_blank">http://localhost:15672/api/<u></u>overview?columns=node,queue_<u></u>totals&amp;lengths_age=600&amp;<u></u>lengths_incr=100*</a><br>


*response:*<br>
<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;queue_totals&quot;: {<br>
&nbsp; &nbsp; &quot;messages&quot;: 65,<br>
&nbsp; &nbsp; &quot;messages_details&quot;: {<br>
&nbsp; &nbsp; &quot;rate&quot;: -0.4,<br>
&nbsp; &nbsp; &quot;samples&quot;: [{<br>
&nbsp; &nbsp; &quot;sample&quot;: 65,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377761000000<br>
&nbsp; &nbsp; },<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;sample&quot;: 88,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377760900000<br>
&nbsp; &nbsp; },<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;sample&quot;: 108,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377760800000<br>
&nbsp; &nbsp; },<br>
&nbsp; &nbsp; ...<br>
&nbsp; &nbsp; }<br>
<br>
But last element in samples array doesn&#39;t correspond to present, if i<br>
use less length increment, the information will be more accurate:<br>
*<a href="http://localhost:15672/api/overview?columns=node,queue_totals&amp;lengths_age=600&amp;lengths_incr=1*" target="_blank">http://localhost:15672/api/<u></u>overview?columns=node,queue_<u></u>totals&amp;lengths_age=600&amp;<u></u>lengths_incr=1*</a><br>


*response:*<br>
<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;queue_totals&quot;: {<br>
&nbsp; &nbsp; &quot;messages&quot;: 53,<br>
&nbsp; &nbsp; &quot;messages_details&quot;: {<br>
&nbsp; &nbsp; &quot;rate&quot;: 0.0,<br>
&nbsp; &nbsp; &quot;samples&quot;: [{<br>
&nbsp; &nbsp; &quot;sample&quot;: 53,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377761059000<br>
&nbsp; &nbsp; },<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;sample&quot;: 53,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377761058000<br>
&nbsp; &nbsp; },<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; &quot;sample&quot;: 53,<br>
&nbsp; &nbsp; &quot;timestamp&quot;: 1377761057000<br>
&nbsp; &nbsp; },<br>
<br>
&nbsp; &nbsp; ...<br>
<br>
&nbsp; &nbsp; }<br>
<br>
How I can get info about queues messages count for last N seconds<br>
including real-time information?<br>
<br>
<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>� ���������,</div><div>������� �����</div>
</div>