<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 </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"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></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 "samples" - 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 — "The end of the range returned will always correspond to the<br>
present", 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&lengths_age=600&lengths_incr=100*" target="_blank">http://localhost:15672/api/<u></u>overview?columns=node,queue_<u></u>totals&lengths_age=600&<u></u>lengths_incr=100*</a><br>
*response:*<br>
<br>
{<br>
"queue_totals": {<br>
"messages": 65,<br>
"messages_details": {<br>
"rate": -0.4,<br>
"samples": [{<br>
"sample": 65,<br>
"timestamp": 1377761000000<br>
},<br>
{<br>
"sample": 88,<br>
"timestamp": 1377760900000<br>
},<br>
{<br>
"sample": 108,<br>
"timestamp": 1377760800000<br>
},<br>
...<br>
}<br>
<br>
But last element in samples array doesn'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&lengths_age=600&lengths_incr=1*" target="_blank">http://localhost:15672/api/<u></u>overview?columns=node,queue_<u></u>totals&lengths_age=600&<u></u>lengths_incr=1*</a><br>
*response:*<br>
<br>
{<br>
"queue_totals": {<br>
"messages": 53,<br>
"messages_details": {<br>
"rate": 0.0,<br>
"samples": [{<br>
"sample": 53,<br>
"timestamp": 1377761059000<br>
},<br>
{<br>
"sample": 53,<br>
"timestamp": 1377761058000<br>
},<br>
{<br>
"sample": 53,<br>
"timestamp": 1377761057000<br>
},<br>
<br>
...<br>
<br>
}<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>