[rabbitmq-discuss] RabbitMQ Management HTTP API historical samples question

Наиль Салихов aflaed at gmail.com
Thu Aug 29 11:35:15 BST 2013


The problem is that queue_totals.messages value always is identical with
the last value in samples array.
It seems there is no way to get actual value with big lengths_incr values.


2013/8/29 Simon MacMullen <simon at rabbitmq.com>

> 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.
>
> For the latest value, check the value given outside "samples" - i.e.
> queue_totals.messages in your example.
>
> Cheers, Simon
>
> On 29/08/2013 8:35AM, Наиль Салихов wrote:
>
>> Hello, in documentation in section about historical samples there is
>> sentence -- "The end of the range returned will always correspond to the
>> present", but API does not return me actual information about message
>> total count, for example:
>> *http://localhost:15672/api/**overview?columns=node,queue_**
>> totals&lengths_age=600&**lengths_incr=100*<http://localhost:15672/api/overview?columns=node,queue_totals&lengths_age=600&lengths_incr=100*>
>> *response:*
>>
>>     {
>>     "queue_totals": {
>>     "messages": 65,
>>     "messages_details": {
>>     "rate": -0.4,
>>     "samples": [{
>>     "sample": 65,
>>     "timestamp": 1377761000000
>>     },
>>     {
>>     "sample": 88,
>>     "timestamp": 1377760900000
>>     },
>>     {
>>     "sample": 108,
>>     "timestamp": 1377760800000
>>     },
>>     ...
>>     }
>>
>> But last element in samples array doesn't correspond to present, if i
>> use less length increment, the information will be more accurate:
>> *http://localhost:15672/api/**overview?columns=node,queue_**
>> totals&lengths_age=600&**lengths_incr=1*<http://localhost:15672/api/overview?columns=node,queue_totals&lengths_age=600&lengths_incr=1*>
>> *response:*
>>
>>     {
>>     "queue_totals": {
>>     "messages": 53,
>>     "messages_details": {
>>     "rate": 0.0,
>>     "samples": [{
>>     "sample": 53,
>>     "timestamp": 1377761059000
>>     },
>>     {
>>     "sample": 53,
>>     "timestamp": 1377761058000
>>     },
>>     {
>>     "sample": 53,
>>     "timestamp": 1377761057000
>>     },
>>
>>     ...
>>
>>     }
>>
>> How I can get info about queues messages count for last N seconds
>> including real-time information?
>>
>>
>> ______________________________**_________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>
>>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>



-- 
С уважением,
Салихов Наиль
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130829/fb5e6dac/attachment.htm>


More information about the rabbitmq-discuss mailing list